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#
74 lines
2.0 KiB
C#
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.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>
|
|
/// 企业用户审批-驳回
|
|
/// </summary>
|
|
/// <param name="model"></param>
|
|
/// <returns></returns>
|
|
[HttpPost]
|
|
[Route("RejectTenantApply")]
|
|
public DataResult RejectTenantApply([FromBody] CommonAuditInput model)
|
|
{
|
|
var res = _invokeService.RejectTenantApply(model);
|
|
return res;
|
|
}
|
|
/// <summary>
|
|
/// 企业用户审批-审核通过
|
|
/// </summary>
|
|
/// <param name="model"></param>
|
|
/// <returns></returns>
|
|
[HttpPost]
|
|
[Route("TenantApplyAudit")]
|
|
public async Task<DataResult> TenantApplyAudit([FromBody] TenantApplyAuditReq model)
|
|
{
|
|
return await _invokeService.TenantApplyAudit(model);
|
|
}
|
|
|
|
} |