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.

57 lines
1.4 KiB
C#

2 years ago
using DS.Module.Core;
using DS.WMS.Core.System.Dtos;
using DS.WMS.Core.System.Entity;
using DS.WMS.Core.System.Interface;
using Microsoft.AspNetCore.Mvc;
namespace DS.WMS.WebApi.Controllers;
public class CompanyController : ApiController
{
private readonly ICompanyService _invokeService;
/// <summary>
/// 构造函数
/// </summary>
/// <param name="invokeService"></param>
public CompanyController(ICompanyService invokeService)
{
_invokeService = invokeService;
}
/// <summary>
/// 获取客户信息
/// </summary>
/// <returns></returns>
[HttpGet]
[Route("GetClientInfo")]
public DataResult GetClientInfo()
{
var res = _invokeService.GetClientInfo();
return res;
}
/// <summary>
/// 维护客户公司信息
/// </summary>
/// <param name="model"></param>
/// <returns></returns>
[HttpPost]
[Route("EditClientCompany")]
public DataResult EditClientCompany([FromBody] CompanyInput model)
{
var res = _invokeService.EditClientCompany(model);
return res;
}
/// <summary>
/// 提交
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
[HttpGet]
[Route("SubmitCompany")]
public DataResult SubmitCompany([FromQuery] string id)
{
var res = _invokeService.SubmitCompany(id);
return res;
}
}