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.AdminApi.Controllers;
///
/// 企业用户申请模块
///
public class TenantApplyController : ApiController
{
private readonly ITenantApplyService _invokeService;
///
/// 构造函数
///
///
public TenantApplyController(ITenantApplyService invokeService)
{
_invokeService = invokeService;
}
///
/// 企业注册用户列表
///
///
///
[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("RejectTenantApply")]
public DataResult RejectTenantApply([FromBody] CommonAuditInput model)
{
var res = _invokeService.RejectTenantApply(model);
return res;
}
///
/// 企业用户审批-审核通过
///
///
///
[HttpPost]
[Route("TenantApplyAudit")]
public async Task TenantApplyAudit([FromBody] TenantApplyAuditReq model)
{
return await _invokeService.TenantApplyAudit(model);
}
}