using DS.Module.Core; using DS.WMS.Core.Info.Dtos; using DS.WMS.Core.Info.Interface; using DS.WMS.Core.Sys.Dtos; using DS.WMS.Core.Sys.Interface; using Microsoft.AspNetCore.Mvc; namespace DS.WMS.MainApi.Controllers; /// /// 客户合同信息-模块 /// public class ClientContractController : ApiController { private readonly IClientContractService _invokeService; /// /// 构造函数 /// /// public ClientContractController(IClientContractService invokeService) { _invokeService = invokeService; } /// /// 列表 /// /// /// [HttpPost] [Route("GetClientContractList")] public DataResult> GetClientContractList([FromBody] PageRequest request) { var res = _invokeService.GetListByPage(request); return res; } /// /// 编辑 /// /// /// [HttpPost] [Route("EditClientContract")] public DataResult EditClientContract([FromBody] ClientContractReq req) { var res = _invokeService.EditClientContract(req); return res; } /// /// 详情 /// /// /// [HttpGet] [Route("GetClientContractInfo")] public DataResult GetClientContractInfo([FromQuery] string id) { var res = _invokeService.GetClientContractInfo(id); return res; } }