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.Mvc; namespace DS.WMS.WebApi.Controllers; public class CompanyController : ApiController { private readonly ICompanyService _invokeService; /// /// 构造函数 /// /// public CompanyController(ICompanyService invokeService) { _invokeService = invokeService; } /// /// 获取客户信息 /// /// [HttpGet] [Route("GetClientInfo")] public DataResult GetClientInfo() { var res = _invokeService.GetClientInfo(); return res; } /// /// 维护客户公司信息 /// /// /// [HttpPost] [Route("EditClientCompany")] public DataResult EditClientCompany([FromBody] CompanyInput model) { var res = _invokeService.EditClientCompany(model); return res; } /// /// 提交 /// /// /// [HttpGet] [Route("SubmitCompany")] public DataResult SubmitCompany([FromQuery] string id) { var res = _invokeService.SubmitCompany(id); return res; } }