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 BankController : ApiController
{
private readonly IBankService _invokeService;
///
/// 构造函数
///
///
public BankController(IBankService invokeService)
{
_invokeService = invokeService;
}
///
/// 列表
///
///
///
[HttpPost]
[Route("GetBankList")]
public DataResult> GetBankList([FromBody] PageRequest request)
{
var res = _invokeService.GetListByPage(request);
return res;
}
///
/// 编辑
///
///
///
[HttpPost]
[Route("EditBank")]
public DataResult EditBank([FromBody] BankReq req)
{
var res = _invokeService.EditBank(req);
return res;
}
///
/// 详情
///
///
///
[HttpGet]
[Route("GetBankInfo")]
public DataResult GetBankInfo([FromQuery] string id)
{
var res = _invokeService.GetBankInfo(id);
return res;
}
///
/// 批量删除
///
///
///
[HttpPost]
[Route("BatchDelBank")]
public DataResult BatchDelBank([FromBody] IdModel req)
{
var res = _invokeService.BatchDelBank(req);
return res;
}
}