using DS.Module.Core; using DS.WMS.Core.BaseInfo.Dtos; using DS.WMS.Core.BaseInfo.Interface; using DS.WMS.Core.System.Entity; using Microsoft.AspNetCore.Mvc; namespace DS.WMS.WebApi.Controllers; /// /// 企业用户审批 /// public class ClientAuditController : ApiController { private readonly IClientAuditService _invokeService; /// /// 构造函数 /// /// public ClientAuditController(IClientAuditService invokeService) { _invokeService = invokeService; } /// /// 审批列表 /// /// /// [HttpPost] [Route("GetClientAuditList")] public DataResult> GetClientAuditList([FromBody] PageRequest request) { var res = _invokeService.GetListByPage(request); return res; } /// /// 获取企业用户信息 /// /// /// [HttpGet] [Route("GetClientInfo")] public DataResult GetClientInfo([FromQuery]string id) { var res = _invokeService.GetClientInfo(id); return res; } /// /// 企业用户审批 /// /// /// [HttpPost] [Route("AuditClient")] public DataResult AuditClient([FromBody] CommonAuditInput model) { var res = _invokeService.AuditClient(model); return res; } }