using DS.Module.Core;
using DS.WMS.Core.Sys.Dtos;
using DS.WMS.Core.Sys.Entity;
using DS.WMS.Core.Sys.Interface;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
namespace DS.WMS.AdminApi.Controllers;
///
/// 租户参数模块
///
public class TenantParamController : ApiController
{
private readonly ITenantParamService _invokeService;
///
/// 构造函数
///
///
public TenantParamController(ITenantParamService invokeService)
{
_invokeService = invokeService;
}
///
/// 租户参数列表
///
///
///
[HttpPost]
[Route("GetTenantParamList")]
public DataResult> GetTenantParamList([FromBody] PageRequest request)
{
var res = _invokeService.GetListByPage(request);
return res;
}
///
/// 编辑租户参数
///
///
///
[HttpPost]
[Route("EditTenantParam")]
public DataResult EditTenantParam([FromBody] TenantParamReq model)
{
var res = _invokeService.EditTenantParam(model);
return res;
}
///
/// 租户参数明细列表
///
///
///
[HttpPost]
[Route("GetTenantParamDataList")]
public DataResult> GetTenantParamDataList([FromBody] PageRequest request)
{
var res = _invokeService.GetTenantParamDataList(request);
return res;
}
///
/// 编辑字典明细
///
///
///
[HttpPost]
[Route("EditTenantParmData")]
public DataResult EditTenantParmData([FromBody] TenantParamDataReq model)
{
var res = _invokeService.EditTenantParamData(model);
return res;
}
///
/// 租户参数详情
///
///
///
[HttpGet]
[Route("GetTenantParamInfo")]
public DataResult GetTenantParamInfo([FromQuery] string id)
{
var res = _invokeService.GetTenantParamInfo(id);
return res;
}
///
/// 租户参数明细详情
///
///
///
[HttpGet]
[Route("GetTenantParamDataInfo")]
public DataResult GetTenantParamDataInfo([FromQuery] string id)
{
var res = _invokeService.GetTenantParamDataInfo(id);
return res;
}
}