开发代码生成功能

This commit is contained in:
izory
2021-09-06 18:35:36 +08:00
parent 23187ed8c5
commit c1e014a5d0
14 changed files with 738 additions and 5 deletions

View File

@@ -22,6 +22,12 @@ namespace ZR.Admin.WebApi.Controllers
return Content(jsonStr, "application/json");
}
protected IActionResult ToRespose(ResultCode resultCode, object data = null)
{
string jsonStr = GetJsonStr(GetApiResult(resultCode, data), "");
return Content(jsonStr, "application/json");
}
/// <summary>
/// json输出带时间格式的
/// </summary>
@@ -40,10 +46,6 @@ namespace ZR.Admin.WebApi.Controllers
return Content(jsonStr, "application/json");
}
protected string SerializeObject(object obj)
{
return JsonConvert.SerializeObject(obj);
}
/// <summary>
/// 响应返回结果