添加项目文件。

This commit is contained in:
zgf committed 2023-07-25 19:20:18 +08:00
1 parent 05e131ca4e
commit 514d6f5255
1162 files changed
+81255

No files matched your search

+19
View File
@@ -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 });
}
}
}