新增物料分类查询接口及相关结构调整

在 MmMaterialController.cs 中新增 MmMaterialCategoryController,实现物料分类列表查询接口。IMmMaterialService 接口增加 GetMmMaterialCategoryList 方法声明。DOAN.Service.csproj 新增接口文件夹引用。同时优化了 using 引用顺序。为后续物料分类功能扩展提供支持。
This commit is contained in:
2025-12-26 14:39:45 +08:00
parent 1eee715d60
commit ce56838fd7
3 changed files with 28 additions and 4 deletions

View File

@@ -1,8 +1,9 @@
using Microsoft.AspNetCore.Mvc;
using DOAN.Model.BZFM.Dto;
using DOAN.Model.BZFM;
using DOAN.Service.BZFM.IBZFMService;
using DOAN.Admin.WebApi.Filters;
using DOAN.Model.BZFM;
using DOAN.Model.BZFM.Dto;
using DOAN.Service.BZFM;
using DOAN.Service.BZFM.IBZFMService;
using Microsoft.AspNetCore.Mvc;
//创建时间2025-12-25
namespace DOAN.Admin.WebApi.Controllers.BZFM
@@ -98,5 +99,22 @@ namespace DOAN.Admin.WebApi.Controllers.BZFM
return ToResponse(_MmMaterialService.Delete(idArr));
}
[ApiController]
[Route("api/mm-material-category")]
public class MmMaterialCategoryController : ControllerBase
{
private readonly IMmMaterialService _service;
public MmMaterialCategoryController(IMmMaterialService service)
{
_service = service;
}
[HttpGet("list")]
public IActionResult GetCategoryList([FromQuery] MmMaterialCategoryQueryDto parm)
{
var response = _service.GetMmMaterialCategoryList(parm);
return Ok(response);
}
}
}
}