35 lines
788 B
C#
35 lines
788 B
C#
using DOAN.Service;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
using DOAN.Service.IService;
|
|
using SqlSugar;
|
|
namespace DOAN.Admin.WebApi.Controllers
|
|
{
|
|
/// <summary>
|
|
/// 公共模块
|
|
/// </summary>
|
|
[Route("tenant")]
|
|
|
|
public class TenantController : BaseController
|
|
{
|
|
private ITenantService tenantService;
|
|
public TenantController(ITenantService tenantService)
|
|
{
|
|
this.tenantService = tenantService;
|
|
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// 获取租户
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
[HttpGet("getlist")]
|
|
public IActionResult GetALLList([FromBody] TenantList tenant)
|
|
{
|
|
var response = tenantService.GetALLList(tenant);
|
|
|
|
return SUCCESS(response);
|
|
|
|
}
|
|
}
|
|
} |