Files
zhougf b4632cfc33 力阔现场出入库流程
agv任务下发
修改部分实体类错误和页面字段等
layout 添加条码库
添加容器逻辑修改
2024-04-21 22:03:15 +08:00

20 lines
602 B
C#

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, Success = true, Msg = msg });
}
protected JsonResult ApiResultError(object data = null, string msg = "failed")
{
return new JsonResult(new ApiJsonResult<object> { Data = data, Success = false, Msg = msg });
}
}
}