|
|
|
@ -28,7 +28,7 @@ namespace DS.WMS.OpApi.Controllers
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="info">服务项目详情</param>
|
|
|
|
|
/// <returns>返回回执</returns>
|
|
|
|
|
[HttpPost("/ServiceProject/Save")]
|
|
|
|
|
[HttpPost("Save")]
|
|
|
|
|
public async Task<DataResult<string>> Save([FromBody] ServiceProjectBaseDto info)
|
|
|
|
|
{
|
|
|
|
|
return await _serviceProjectService.Save(info);
|
|
|
|
@ -41,7 +41,7 @@ namespace DS.WMS.OpApi.Controllers
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="info">服务项目详情</param>
|
|
|
|
|
/// <returns>返回回执</returns>
|
|
|
|
|
[HttpPost("/ServiceProject/SaveAndEnable")]
|
|
|
|
|
[HttpPost("SaveAndEnable")]
|
|
|
|
|
public async Task<DataResult<string>> SaveAndEnable([FromBody] ServiceProjectBaseDto info)
|
|
|
|
|
{
|
|
|
|
|
return await _serviceProjectService.SaveAndEnable(info);
|
|
|
|
@ -54,7 +54,7 @@ namespace DS.WMS.OpApi.Controllers
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="pkIds">服务项目主键数组</param>
|
|
|
|
|
/// <returns>返回回执</returns>
|
|
|
|
|
[HttpPost("/ServiceProject/SetEnable")]
|
|
|
|
|
[HttpPost("SetEnable")]
|
|
|
|
|
public async Task<DataResult<string>> SetEnable([FromBody] string[] pkIds)
|
|
|
|
|
{
|
|
|
|
|
return await _serviceProjectService.SetEnable(pkIds);
|
|
|
|
@ -67,7 +67,7 @@ namespace DS.WMS.OpApi.Controllers
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="pkIds">服务项目主键数组</param>
|
|
|
|
|
/// <returns>返回回执</returns>
|
|
|
|
|
[HttpPost("/ServiceProject/SetUnEnable")]
|
|
|
|
|
[HttpPost("SetUnEnable")]
|
|
|
|
|
public async Task<DataResult<string>> SetUnEnable([FromBody] string[] pkIds)
|
|
|
|
|
{
|
|
|
|
|
return await _serviceProjectService.SetUnEnable(pkIds);
|
|
|
|
@ -80,7 +80,7 @@ namespace DS.WMS.OpApi.Controllers
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="pkIds">服务项目主键数组</param>
|
|
|
|
|
/// <returns>返回回执</returns>
|
|
|
|
|
[HttpPost("/ServiceProject/Delete")]
|
|
|
|
|
[HttpPost("Delete")]
|
|
|
|
|
public async Task<DataResult<string>> Delete([FromBody] string[] pkIds)
|
|
|
|
|
{
|
|
|
|
|
return await _serviceProjectService.Delete(pkIds);
|
|
|
|
@ -93,7 +93,7 @@ namespace DS.WMS.OpApi.Controllers
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="pkId">服务项目主键</param>
|
|
|
|
|
/// <returns>返回回执</returns>
|
|
|
|
|
[HttpGet("/ServiceProject/GetInfo")]
|
|
|
|
|
[HttpGet("GetInfo")]
|
|
|
|
|
public async Task<DataResult<ServiceProjectBaseShowDto>> GetInfo([FromQuery] string pkId)
|
|
|
|
|
{
|
|
|
|
|
return await _serviceProjectService.GetInfo(pkId);
|
|
|
|
@ -107,7 +107,7 @@ namespace DS.WMS.OpApi.Controllers
|
|
|
|
|
/// <param name="queryItem">检索值</param>
|
|
|
|
|
/// <param name="topNum">最大返回行数(默认15)</param>
|
|
|
|
|
/// <returns>返回回执</returns>
|
|
|
|
|
[HttpGet("/ServiceProject/QueryList")]
|
|
|
|
|
[HttpGet("QueryList")]
|
|
|
|
|
public async Task<DataResult<List<ServiceProjectBaseDto>>> QueryList([FromQuery] string queryItem, [FromQuery] int topNum = 15)
|
|
|
|
|
{
|
|
|
|
|
return await _serviceProjectService.QueryList(queryItem, topNum);
|
|
|
|
@ -120,7 +120,7 @@ namespace DS.WMS.OpApi.Controllers
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="querySearch">服务项目台账查询请求</param>
|
|
|
|
|
/// <returns>返回结果</returns>
|
|
|
|
|
[HttpPost("/ServiceProject/GetPage")]
|
|
|
|
|
[HttpPost("GetPage")]
|
|
|
|
|
public async Task<DataResult<List<ServiceProjectBasePageDto>>> GetPageAsync([FromBody] PageRequest querySearch)
|
|
|
|
|
{
|
|
|
|
|
return await _serviceProjectService.GetPageAsync(querySearch);
|
|
|
|
|