eight
2024-08-13 7660fe12273a6b132256a2fa83ca1b11d6b2381f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
package cn.lihu.jh.module.system.api.tenant;
 
import cn.lihu.jh.module.system.service.tenant.TenantService;
import org.springframework.stereotype.Service;
 
import javax.annotation.Resource;
import java.util.List;
 
/**
 * 多租户的 API 实现类
 *
 * @author 芋道源码
 */
@Service
public class TenantApiImpl implements TenantApi {
 
    @Resource
    private TenantService tenantService;
 
    @Override
    public List<Long> getTenantIdList() {
        return tenantService.getTenantIdList();
    }
 
    @Override
    public void validateTenant(Long id) {
        tenantService.validTenant(id);
    }
 
}