using DS.Module.Core; using DS.Module.Core.Data; using DS.WMS.Core.Info.Dtos; using DS.WMS.Core.Info.Interface; using Microsoft.AspNetCore.Mvc; namespace DS.WMS.MainApi.Controllers; /// /// 往来单位银行信息-模块 /// public class ClientBankController : ApiController { private readonly IClientBankService _invokeService; /// /// 构造函数 /// /// public ClientBankController(IClientBankService invokeService) { _invokeService = invokeService; } /// /// 列表 /// /// /// [HttpPost] [Route("GetClientBankList")] public DataResult> GetClientBankList([FromBody] PageRequest request) { var res = _invokeService.GetListByPage(request); return res; } /// /// 编辑 /// /// /// [HttpPost] [Route("EditClientBank")] public async Task EditClientBankAsync([FromBody] ClientBankReq req) { return await _invokeService.EditClientBankAsync(req); } /// /// 详情 /// /// /// [HttpGet] [Route("GetClientBankInfo")] public async Task> GetClientBankInfoAsync([FromQuery] long id) { return await _invokeService.GetClientBankInfoAsync(id); } /// /// 批量删除 /// /// /// [HttpPost, Route("Delete")] public async Task DeleteAsync(IdModel req) { return await _invokeService.DeleteAsync(req); } }