using DS.Module.Core; using DS.Module.Core.Data; using DS.WMS.Core.Code.Dtos; using DS.WMS.Core.Code.Interface; using DS.WMS.Core.Sys.Dtos; using DS.WMS.Core.Sys.Interface; using Microsoft.AspNetCore.Mvc; namespace DS.WMS.MainApi.Controllers; /// /// 基础数据权限模块 /// public class CodeDataRuleController : ApiController { private readonly ICodeDataRuleService _invokeService; /// /// 构造函数 /// /// public CodeDataRuleController(ICodeDataRuleService invokeService) { _invokeService = invokeService; } /// /// 列表 /// /// /// [HttpPost] [Route("GetCodeDataRuleList")] public async Task>> GetCodeDataRuleList([FromBody] GetOrCreateCodeDataRuleReq req) { var res =await _invokeService.GetCodeDataRuleList(req); return res; } /// /// 数据权限指定范围 /// /// /// [HttpPost] [Route("AssignDataRuleScope")] public async Task AssignDataRuleScope([FromBody] AssignDataRuleScopeReq req) { var res = await _invokeService.AssignDataRuleScope(req); return res; } ///// ///// 编辑 ///// ///// ///// //[HttpPost] //[Route("EditCodeDataRule")] //public async Task EditCodeDataRule([FromBody] CodeDataRuleReq req) //{ // var res = await _invokeService.EditCodeDataRule(req); // return res; //} ///// ///// 详情 ///// ///// ///// //[HttpGet] //[Route("GetCodeDataRuleInfo")] //public async Task> GetCodeDataRuleInfo([FromQuery] string id) //{ // var res = await _invokeService.GetCodeDataRuleInfo(id); // return res; //} ///// ///// 批量删除 ///// ///// req ///// //[HttpPost] //[Route("BatchDelCodeDataRule")] //public async Task BatchDelCodeDataRule([FromBody] IdModel req) //{ // var res =await _invokeService.BatchDelCodeDataRule(req); // return res; //} }