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
  | package cn.lihu.jh.module.system.api.tenant; 
 |    
 |  import java.util.List; 
 |    
 |  /** 
 |   * 多租户的 API 接口 
 |   * 
 |   * @author 芋道源码 
 |   */ 
 |  public interface TenantApi { 
 |    
 |      /** 
 |       * 获得所有租户 
 |       * 
 |       * @return 租户编号数组 
 |       */ 
 |      List<Long> getTenantIdList(); 
 |    
 |      /** 
 |       * 校验租户是否合法 
 |       * 
 |       * @param id 租户编号 
 |       */ 
 |      void validateTenant(Long id); 
 |    
 |  } 
 |  
  |