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.

61 lines
1.6 KiB
C#

using DS.Module.Core;
using DS.WMS.Core.BaseInfo.Dtos;
using DS.WMS.Core.BaseInfo.Interface;
using DS.WMS.Core.System.Entity;
using Microsoft.AspNetCore.Mvc;
namespace DS.WMS.WebApi.Controllers;
/// <summary>
/// 企业用户审批
/// </summary>
public class ClientAuditController : ApiController
{
private readonly IClientAuditService _invokeService;
/// <summary>
/// 构造函数
/// </summary>
/// <param name="invokeService"></param>
public ClientAuditController(IClientAuditService invokeService)
{
_invokeService = invokeService;
}
/// <summary>
/// 审批列表
/// </summary>
/// <param name="request"></param>
/// <returns></returns>
[HttpPost]
[Route("GetClientAuditList")]
public DataResult<List<OP_YARD_COMPANY>> GetClientAuditList([FromBody] PageRequest request)
{
var res = _invokeService.GetListByPage(request);
return res;
}
/// <summary>
/// 获取企业用户信息
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
[HttpGet]
[Route("GetClientInfo")]
public DataResult GetClientInfo([FromQuery]string id)
{
var res = _invokeService.GetClientInfo(id);
return res;
}
/// <summary>
/// 企业用户审批
/// </summary>
/// <param name="model"></param>
/// <returns></returns>
[HttpPost]
[Route("AuditClient")]
public DataResult AuditClient([FromBody] CommonAuditInput model)
{
var res = _invokeService.AuditClient(model);
return res;
}
}