mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-09-18 17:48:01 +08:00
fix issue #I3ODI5 swagger增加分组的功能
fix issue #I3PE3R 会签节点异常,提示'-1' was not present in ... fix CodeSmith生成的后端代码报错 https://gitee.com/yubaolee/OpenAuth.Core/issues/I3OXJZ
This commit is contained in:
@@ -28,7 +28,9 @@ namespace OpenAuth.WebApi.Controllers
|
||||
{
|
||||
private readonly <%=ModuleName%>App _app;
|
||||
|
||||
//获取详情
|
||||
/// <summary>
|
||||
/// //获取详情
|
||||
/// </summary>
|
||||
[HttpGet]
|
||||
public Response<<%=ModuleName%>> Get(string id)
|
||||
{
|
||||
@@ -46,7 +48,9 @@ namespace OpenAuth.WebApi.Controllers
|
||||
return result;
|
||||
}
|
||||
|
||||
//添加
|
||||
/// <summary>
|
||||
/// 添加
|
||||
/// </summary>
|
||||
[HttpPost]
|
||||
public Response Add(AddOrUpdate<%=ModuleName%>Req obj)
|
||||
{
|
||||
@@ -65,7 +69,9 @@ namespace OpenAuth.WebApi.Controllers
|
||||
return result;
|
||||
}
|
||||
|
||||
//修改
|
||||
/// <summary>
|
||||
/// 修改
|
||||
/// </summary>
|
||||
[HttpPost]
|
||||
public Response Update(AddOrUpdate<%=ModuleName%>Req obj)
|
||||
{
|
||||
|
@@ -36,9 +36,13 @@ namespace OpenAuth.Mvc.Controllers
|
||||
return View();
|
||||
}
|
||||
|
||||
//添加或修改
|
||||
/// <summary>
|
||||
/// MVC界面添加
|
||||
/// </summary>
|
||||
/// <param name="obj"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPost]
|
||||
public string Add(<%=ModuleName%> obj)
|
||||
public string Add(AddOrUpdate<%=ModuleName%>Req obj)
|
||||
{
|
||||
try
|
||||
{
|
||||
@@ -53,9 +57,13 @@ namespace OpenAuth.Mvc.Controllers
|
||||
return JsonHelper.Instance.Serialize(Result);
|
||||
}
|
||||
|
||||
//添加或修改
|
||||
/// <summary>
|
||||
/// MVC界面修改
|
||||
/// </summary>
|
||||
/// <param name="obj"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPost]
|
||||
public string Update(<%=ModuleName%> obj)
|
||||
public string Update(AddOrUpdate<%=ModuleName%>Req obj)
|
||||
{
|
||||
try
|
||||
{
|
||||
|
Reference in New Issue
Block a user