using DS.Module.Core; using DS.Module.Core.Data; using DS.WMS.Core.Sys.Dtos; using DS.WMS.Core.Sys.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; } }