全面修改Id为Guid类型,为2.0版做准备

This commit is contained in:
yubaolee
2016-09-02 18:05:17 +08:00
parent a8fd59e247
commit 574f5f9e1f
327 changed files with 10071 additions and 18206 deletions

View File

@@ -20,12 +20,11 @@ namespace OpenAuth.Mvc.Controllers
}
[HttpPost]
public string Assign(string type, int firstId, string secIds)
public string Assign(string type, Guid firstId, Guid[] secIds)
{
try
{
var secIdList = JsonHelper.Instance.Deserialize<int[]>(secIds);
_app.Assign(type, firstId, secIdList);
_app.Assign(type, firstId, secIds);
}
catch (Exception ex)
{
@@ -35,12 +34,11 @@ namespace OpenAuth.Mvc.Controllers
return JsonHelper.Instance.Serialize(BjuiResponse);
}
[HttpPost]
public string UnAssign(string type, int firstId, string secIds)
public string UnAssign(string type, Guid firstId, Guid[] secIds)
{
try
{
var secIdList = JsonHelper.Instance.Deserialize<int[]>(secIds);
_app.UnAssign(type, firstId, secIdList);
_app.UnAssign(type, firstId, secIds);
}
catch (Exception ex)
{