You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

74 lines
2.0 KiB
C#

11 months ago
using DS.Module.Core;
using DS.Module.Core.Data;
using DS.WMS.Core.Sys.Dtos;
using DS.WMS.Core.Sys.Interface;
11 months ago
using Microsoft.AspNetCore.Mvc;
namespace DS.WMS.AdminApi.Controllers;
/// <summary>
/// 企业用户申请模块
/// </summary>
public class TenantApplyController : ApiController
{
private readonly ITenantApplyService _invokeService;
/// <summary>
/// 构造函数
/// </summary>
/// <param name="invokeService"></param>
public TenantApplyController(ITenantApplyService invokeService)
{
_invokeService = invokeService;
}
/// <summary>
/// 企业注册用户列表
/// </summary>
/// <param name="request"></param>
/// <returns></returns>
[HttpPost]
[Route("GetTenantApplyList")]
public DataResult<List<TenantApplyListRes>> GetTenantApplyList([FromBody] PageRequest request)
{
var res = _invokeService.GetListByPage(request);
return res;
}
/// <summary>
/// 获取注册企业审批信息
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
[HttpGet]
[Route("GetTenantAuditInfo")]
public DataResult<TenantApplyInfoRes> GetTenantAuditInfo([FromQuery] string id)
{
var res = _invokeService.GetTenantAuditInfo(id);
return res;
}
/// <summary>
11 months ago
/// 企业用户审批-驳回
11 months ago
/// </summary>
/// <param name="model"></param>
/// <returns></returns>
[HttpPost]
11 months ago
[Route("RejectTenantApply")]
11 months ago
public DataResult RejectTenantApply([FromBody] CommonAuditInput model)
11 months ago
{
11 months ago
var res = _invokeService.RejectTenantApply(model);
11 months ago
return res;
}
11 months ago
/// <summary>
/// 企业用户审批-审核通过
/// </summary>
/// <param name="model"></param>
/// <returns></returns>
[HttpPost]
[Route("TenantApplyAudit")]
public async Task<DataResult> TenantApplyAudit([FromBody] TenantApplyAuditReq model)
11 months ago
{
return await _invokeService.TenantApplyAudit(model);
}
11 months ago
}