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 CodeCountryController : ApiController
{
private readonly ICodeCountryService _invokeService;
///
/// 构造函数
///
///
public CodeCountryController(ICodeCountryService invokeService)
{
_invokeService = invokeService;
}
///
/// 列表
///
///
///
[HttpPost]
[Route("GetCodeCountryList")]
public DataResult> GetCodeCountryList([FromBody] PageRequest request)
{
var res = _invokeService.GetListByPage(request);
return res;
}
///
/// 编辑
///
///
///
[HttpPost]
[Route("EditCodeCountry")]
public DataResult EditCodeCountry([FromBody] CodeCountryReq model)
{
var res = _invokeService.EditCodeCountry(model);
return res;
}
///
/// 详情
///
///
///
[HttpGet]
[Route("GetCodeCountryInfo")]
public DataResult GetCodeCountryInfo([FromQuery] string id)
{
var res = _invokeService.GetCodeCountryInfo(id);
return res;
}
}