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.

103 lines
2.6 KiB
C#

using DS.Module.Core;
11 months ago
using DS.Module.Core.Data;
using DS.WMS.Core.System.Dtos;
using DS.WMS.Core.System.Interface;
using Microsoft.AspNetCore.Mvc;
namespace DS.WMS.MainApi.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>
/// <returns></returns>
[HttpGet]
[Route("GetTenantApplyInfo")]
11 months ago
public DataResult<TenantApplyInfoRes> GetTenantApplyInfo()
{
var res = _invokeService.GetTenantApplyInfo();
return res;
}
/// <summary>
/// 编辑
/// </summary>
/// <param name="model"></param>
/// <returns></returns>
[HttpPost]
[Route("EditTenantApplyInfo")]
public DataResult EditTenantApplyInfo([FromBody] TenantApplyReq model)
{
var res = _invokeService.EditTenantApplyInfo(model);
return res;
}
/// <summary>
/// 提交审核
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
[HttpGet]
[Route("SubmitTenantApply")]
public DataResult SubmitTenantApply([FromQuery] string id)
{
11 months ago
var res = _invokeService.SubmitTenantApply(id);
return res;
}
11 months ago
/// <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;
}
11 months ago
}