using DS.Module.Core; using DS.Module.Core.Data; using DS.WMS.Core.System.Dtos; using DS.WMS.Core.System.Interface; using Microsoft.AspNetCore.Mvc; namespace DS.WMS.MainApi.Controllers; /// /// 企业用户申请模块 /// public class TenantApplyController : ApiController { private readonly ITenantApplyService _invokeService; /// /// 构造函数 /// /// public TenantApplyController(ITenantApplyService invokeService) { _invokeService = invokeService; } /// /// 获取注册企业申请信息 /// /// [HttpGet] [Route("GetTenantApplyInfo")] public DataResult GetTenantApplyInfo() { var res = _invokeService.GetTenantApplyInfo(); return res; } /// /// 编辑 /// /// /// [HttpPost] [Route("EditTenantApplyInfo")] public DataResult EditTenantApplyInfo([FromBody] TenantApplyReq model) { var res = _invokeService.EditTenantApplyInfo(model); return res; } /// /// 提交审核 /// /// /// [HttpGet] [Route("SubmitTenantApply")] public DataResult SubmitTenantApply([FromQuery] string id) { var res = _invokeService.SubmitTenantApply(id); return res; } /// /// 企业注册用户列表 /// /// /// [HttpPost] [Route("GetTenantApplyList")] public DataResult> GetTenantApplyList([FromBody] PageRequest request) { var res = _invokeService.GetListByPage(request); return res; } /// /// 获取注册企业审批信息 /// /// /// [HttpGet] [Route("GetTenantAuditInfo")] public DataResult GetTenantAuditInfo([FromQuery] string id) { var res = _invokeService.GetTenantAuditInfo(id); return res; } /// /// 企业用户审批 /// /// /// [HttpPost] [Route("AuditTenantApply")] public DataResult AuditTenantApply([FromBody] CommonAuditInput model) { var res = _invokeService.AuditTenantApply(model); return res; } }