using DS.Module.Core; using DS.WMS.Core.System.Dtos; using DS.WMS.Core.System.Entity; using DS.WMS.Core.System.Interface; using Microsoft.AspNetCore.Mvc; namespace DS.WMS.WebApi.Controllers; /// /// 租户模块 /// public class TenantController : ApiController { private readonly ITenantService _invokeService; /// /// 构造函数 /// /// public TenantController(ITenantService invokeService) { _invokeService = invokeService; } /// /// 列表 /// /// /// [HttpPost] [Route("GetTenantList")] public DataResult> GetTenantList([FromBody] PageRequest request) { var res = _invokeService.GetListByPage(request); return res; } /// /// 编辑 /// /// /// [HttpPost] [Route("EditTenant")] public DataResult EditRole([FromBody] TenantInput model) { var res = _invokeService.EditTenant(model); return res; } /// /// 详情 /// /// /// [HttpGet] [Route("GetTenantInfo")] public DataResult GetTenantInfo([FromQuery] string id) { var res = _invokeService.GetTenantInfo(id); return res; } }