提交代码

This commit is contained in:
hehaibing-1996
2024-04-23 08:31:37 +08:00
parent d40c3f253a
commit aaf7c17562
43 changed files with 2196 additions and 71 deletions

View File

@ -0,0 +1,47 @@
using Microsoft.AspNetCore.Mvc;
using SqlSugar;
using WCS.BLL.DbModels;
using WCS.BLL.Manager;
using WCS.BLL.Services.IService;
using WCS.BLL.Services.Service;
using WCS.DAL.Db;
using WCS.Model;
using WCS.Model.ApiModel.Home;
using WCS.Model.ApiModel.SelfCheck;
namespace WCS.WebApi.Controllers
{
/// <summary>
/// 自检
/// </summary>
[ApiController]
[Route("[controller]")]
public class SelfCheckController : ControllerBase
{
public ISelfCheckService _selfCheckService { get; set; }
public SelfCheckController(ISelfCheckService selfCheckService)
{
_selfCheckService = selfCheckService;
}
[Route("startSelfCheckByShelfCode")]
[HttpPost(Name = "startSelfCheckByShelfCode")]
public async Task<ResponseBase> startSelfCheckByShelfCode(StartSelfCheckByShelfCodeRequest request)
{
try
{
return await _selfCheckService.StartSelfCheckByShelfCode(request);
}
catch (Exception ex)
{
return new ResponseBase()
{
Code = 300,
Message = "开始自检失败:" + ex.Message,
};
}
}
}
}