using DS.Module.Core; using DS.WMS.Core.Code.Dtos; using DS.WMS.Core.Code.Interface; using DS.WMS.Core.System.Dtos; using Microsoft.AspNetCore.Mvc; namespace DS.WMS.AdminApi.Controllers; /// /// 付费方式服务 /// public class CodeFrtController : ApiController { private readonly ICodeFrtService _invokeService; /// /// 构造函数 /// /// public CodeFrtController(ICodeFrtService invokeService) { _invokeService = invokeService; } /// /// 列表 /// /// /// [HttpPost] [Route("GetCodeFrtList")] public DataResult> GetCodeFrtList([FromBody] PageRequest request) { var res = _invokeService.GetListByPage(request); return res; } /// /// 编辑 /// /// /// [HttpPost] [Route("EditCodeFrt")] public DataResult EditCodeFrt([FromBody] CodeFrtReq model) { var res = _invokeService.EditCodeFrt(model); return res; } /// /// 详情 /// /// /// [HttpGet] [Route("GetCodeFrtInfo")] public DataResult GetCodeFrtInfo([FromQuery] string id) { var res = _invokeService.GetCodeFrtInfo(id); return res; } }