using DS.Module.Core; using DS.WMS.Core.System.Dtos; using DS.WMS.Core.System.Entity; using DS.WMS.Core.System.Interface; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; namespace DS.WMS.WebApi.Controllers; /// /// /// public class CommonController : ApiController { private readonly ICommonService _invokeService; /// /// 构造函数 /// /// public CommonController(ICommonService invokeService) { _invokeService = invokeService; } /// /// 列表 /// /// /// [HttpPost] [Route("GetTrainList")] public DataResult> GetTrainList([FromBody] PageRequest request) { var res = _invokeService.GetTrainList(request); return res; } /// /// /// /// [HttpGet] [AllowAnonymous] [Route("GetCompanyList")] public DataResult> GetCompanyList() { var res = _invokeService.GetCompanyList(); return res; } /// /// 获取客户箱号库位信息 /// /// [HttpGet] [Route("GetCustBoxAreaInfo")] public DataResult GetCustBoxAreaInfo() { var res = _invokeService.GetCustBoxAreaInfo(); return res; } /// /// 获取客户库位箱号列表 /// /// /// [HttpGet] [Route("GetCustAreaBoxList")] public DataResult> GetCustAreaBoxList([FromQuery]string code) { var res = _invokeService.GetCustAreaBoxList(code); return res; } /// /// 修改密码 /// /// /// [HttpPost] [Route("ChangePassword")] public DataResult ChangePassword([FromBody] ChangePasswordInput model) { var res = _invokeService.ChangePassword(model); return res; } }