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 DataResult EditClientBank([FromBody] ClientBankReq req)
{
var res = _invokeService.EditClientBank(req);
return res;
}
///
/// 详情
///
///
///
[HttpGet]
[Route("GetClientBankInfo")]
public DataResult GetClientBankInfo([FromQuery] string id)
{
var res = _invokeService.GetClientBankInfo(id);
return res;
}
///
/// 批量删除
///
///
///
[HttpPost, Route("Delete")]
public async Task DeleteAsync(IdModel req)
{
return await _invokeService.DeleteAsync(req);
}
}