提交代码
This commit is contained in:
@ -24,9 +24,12 @@ namespace WCS.WebApi.Controllers
|
||||
{
|
||||
public IMatBaseInfoService _matBaseInfoService { get; set; }
|
||||
|
||||
public MatBaseInfoController(IMatBaseInfoService matBaseInfoService)
|
||||
public IGenerateService _generateMatInfoService { get; set; }
|
||||
|
||||
public MatBaseInfoController(IMatBaseInfoService matBaseInfoService, IGenerateService generateMatInfoService)
|
||||
{
|
||||
_matBaseInfoService = matBaseInfoService;
|
||||
_generateMatInfoService = generateMatInfoService;
|
||||
}
|
||||
|
||||
[Route("getMatBaseInfo")]
|
||||
@ -100,5 +103,12 @@ namespace WCS.WebApi.Controllers
|
||||
{
|
||||
return await _matBaseInfoService.getMatCodeList(request);
|
||||
}
|
||||
|
||||
|
||||
[HttpPost("generateMatInfo")]
|
||||
public async Task<ResponseCommon<List<MatInfo>>> generateMatInfo(GenerateMatInfoRequest request)
|
||||
{
|
||||
return await _generateMatInfoService.generateMatInfo(request);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user