wsj
5 days ago be8c526a454aa9081000d15f26bebdef8c183aea
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/** 角色类型。 */
export type RoleType = 'PRESET' | 'CUSTOM';
 
/** 角色状态。 */
export type RoleStatus = 'ENABLED' | 'DISABLED' | 'DELETED';
 
/** 角色响应体(RoleVO)。 */
export interface RoleVO {
  id: number;
  roleName: string;
  roleCode: string;
  description?: string;
  roleType: RoleType;
  status: RoleStatus;
}
 
/** GET /tenant/roles 请求参数:该接口未定义查询参数。 */
export type TenantRoleListRequest = Record<string, never>;
 
/** GET /tenant/roles 响应数据(ResultListRoleVO 的 data)。 */
export type TenantRoleListResponse = RoleVO[];
 
/** GET /tenant/roles/{id} 请求参数。 */
export interface TenantRoleDetailRequest {
  /** 角色 ID(路径参数)。 */
  id: number;
}
 
/** GET /tenant/roles/{id} 响应数据(ResultRoleVO 的 data)。 */
export type TenantRoleDetailResponse = RoleVO;
 
/** PUT /tenant/roles/{id}/toggle-status 请求参数。 */
export interface TenantRoleToggleStatusRequest {
  /** 角色 ID(路径参数)。 */
  id: number;
}
 
/** PUT /tenant/roles/{id}/toggle-status 响应数据(ResultVoid 的 data)。 */
export type TenantRoleToggleStatusResponse = void;
 
/** ProTable 筛选参数。列表接口没有查询参数,这些字段仅用于前端本地筛选。 */
export interface RoleListQuery {
  roleName?: string;
  status?: RoleStatus;
}