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.

63 lines
1.6 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("AuditTenantApply")]
public DataResult AuditTenantApply([FromBody] CommonAuditInput model)
{
var res = _invokeService.AuditTenantApply(model);
return res;
}
}