|
|
|
|
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.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")]
|
|
|
|
|
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)
|
|
|
|
|
{
|
|
|
|
|
var res = _invokeService.SubmitTenantApply(id);
|
|
|
|
|
return res;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|