添加项目文件。
This commit is contained in:
1 parent
05e131ca4e
commit
514d6f5255
1162 files changed
+81255
No files matched your search
@@ -0,0 +1,19 @@
|
||||
using HHWMS.Web.Models;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using WalkingTec.Mvvm.Mvc;
|
||||
|
||||
namespace HHWMS.Web
|
||||
{
|
||||
public abstract class ApiController : BaseApiController
|
||||
{
|
||||
protected JsonResult ApiResult(object data = null, string msg = "success")
|
||||
{
|
||||
return new JsonResult(new ApiJsonResult<object> { Data = data, State = true, Status = true, Message = msg });
|
||||
}
|
||||
|
||||
protected JsonResult ApiResultError(object data = null, string msg = "faield")
|
||||
{
|
||||
return new JsonResult(new ApiJsonResult<object> { Data = data, State = false, Status = false, Message = msg });
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user