| | |
| | | [key: string]: any; |
| | | } |
| | | |
| | | interface APIgetAliyunOSSAcsParams { |
| | | query?: GetAliyunOSSAcsQuery; |
| | | } |
| | | |
| | | interface APIgetMenuParams { |
| | | /** Id */ |
| | | id?: string; |
| | | /** 角色Id */ |
| | | roleId?: string; |
| | | } |
| | | |
| | | interface APIgetMenusParams { |
| | | /** 用户类型 */ |
| | | userType?: EnumUserType; |
| | | /** 客户端类型 */ |
| | | clientType?: EnumClientType; |
| | | /** 角色Id */ |
| | | roleId?: string; |
| | | } |
| | | |
| | | interface APIgetResourceFieldsParams { |
| | | /** Id */ |
| | | id?: string; |
| | | } |
| | | |
| | | interface APIgetResourcesParams { |
| | | /** 微服务 */ |
| | | service?: string; |
| | | /** 请求方式 */ |
| | | method?: EnumWebApiMethod; |
| | | /** 关键字 */ |
| | | keywords?: string; |
| | | /** 角色Id */ |
| | | roleId?: string; |
| | | } |
| | | |
| | | interface APIgetRoleParams { |
| | | /** Id */ |
| | | id?: string; |
| | | } |
| | | |
| | | interface DeleteMenuCommand { |
| | | ids: string[]; |
| | | } |
| | | |
| | | interface DeleteRoleCommand { |
| | | ids: string[]; |
| | | } |
| | | |
| | |
| | | Descending = 1, |
| | | } |
| | | |
| | | enum EnumRoleWebApiDataPower { |
| | | /**自定义 */ |
| | | Custom = 1, |
| | | /**查询个人创建数据 */ |
| | | Creator = 10, |
| | | /**查询当前部门数据 */ |
| | | CurrentDepartment = 20, |
| | | /**查询当前及下级部门数据 */ |
| | | NestingDepartment = 21, |
| | | /**查询当前企业所有数据 */ |
| | | CurrentEnterprise = 30, |
| | | /**查询所有 */ |
| | | All = 999, |
| | | } |
| | | |
| | | enum EnumUserType { |
| | | /**个人 */ |
| | | Personal = 10, |
| | |
| | | Delete = 40, |
| | | } |
| | | |
| | | interface FriendlyResultGetAliyunOSSAcsQueryResult { |
| | | /** 跟踪Id */ |
| | | traceId?: string; |
| | | /** 状态码 */ |
| | | code?: number; |
| | | /** 错误码 */ |
| | | errorCode?: string; |
| | | data?: GetAliyunOSSAcsQueryResult; |
| | | /** 执行成功 */ |
| | | success?: boolean; |
| | | /** 错误信息 */ |
| | | msg?: any; |
| | | /** 附加数据 */ |
| | | extras?: any; |
| | | /** 时间戳 */ |
| | | timestamp?: number; |
| | | } |
| | | |
| | | interface FriendlyResultGetDictionaryDatasQueryResult { |
| | | /** 跟踪Id */ |
| | | traceId?: string; |
| | | /** 状态码 */ |
| | | code?: number; |
| | | /** 错误码 */ |
| | | errorCode?: string; |
| | | data?: GetDictionaryDatasQueryResult; |
| | | /** 执行成功 */ |
| | | success?: boolean; |
| | | /** 错误信息 */ |
| | | errors?: any; |
| | | msg?: any; |
| | | /** 附加数据 */ |
| | | extras?: any; |
| | | /** 时间戳 */ |
| | |
| | | traceId?: string; |
| | | /** 状态码 */ |
| | | code?: number; |
| | | /** 错误码 */ |
| | | errorCode?: string; |
| | | data?: GetMenuQueryResult; |
| | | /** 执行成功 */ |
| | | success?: boolean; |
| | | /** 错误信息 */ |
| | | errors?: any; |
| | | msg?: any; |
| | | /** 附加数据 */ |
| | | extras?: any; |
| | | /** 时间戳 */ |
| | | timestamp?: number; |
| | | } |
| | | |
| | | interface FriendlyResultGetRoleQueryResult { |
| | | /** 跟踪Id */ |
| | | traceId?: string; |
| | | /** 状态码 */ |
| | | code?: number; |
| | | /** 错误码 */ |
| | | errorCode?: string; |
| | | data?: GetRoleQueryResult; |
| | | /** 执行成功 */ |
| | | success?: boolean; |
| | | /** 错误信息 */ |
| | | msg?: any; |
| | | /** 附加数据 */ |
| | | extras?: any; |
| | | /** 时间戳 */ |
| | |
| | | traceId?: string; |
| | | /** 状态码 */ |
| | | code?: number; |
| | | /** 错误码 */ |
| | | errorCode?: string; |
| | | /** 数据 */ |
| | | data?: string; |
| | | /** 执行成功 */ |
| | | success?: boolean; |
| | | /** 错误信息 */ |
| | | errors?: any; |
| | | msg?: any; |
| | | /** 附加数据 */ |
| | | extras?: any; |
| | | /** 时间戳 */ |
| | |
| | | traceId?: string; |
| | | /** 状态码 */ |
| | | code?: number; |
| | | /** 错误码 */ |
| | | errorCode?: string; |
| | | /** 数据 */ |
| | | data?: number; |
| | | /** 执行成功 */ |
| | | success?: boolean; |
| | | /** 错误信息 */ |
| | | errors?: any; |
| | | msg?: any; |
| | | /** 附加数据 */ |
| | | extras?: any; |
| | | /** 时间戳 */ |
| | |
| | | traceId?: string; |
| | | /** 状态码 */ |
| | | code?: number; |
| | | /** 错误码 */ |
| | | errorCode?: string; |
| | | /** 数据 */ |
| | | data?: GetMenusQueryResultItem[]; |
| | | /** 执行成功 */ |
| | | success?: boolean; |
| | | /** 错误信息 */ |
| | | errors?: any; |
| | | msg?: any; |
| | | /** 附加数据 */ |
| | | extras?: any; |
| | | /** 时间戳 */ |
| | |
| | | traceId?: string; |
| | | /** 状态码 */ |
| | | code?: number; |
| | | /** 错误码 */ |
| | | errorCode?: string; |
| | | /** 数据 */ |
| | | data?: GetResourceFieldsQueryResultItem[]; |
| | | /** 执行成功 */ |
| | | success?: boolean; |
| | | /** 错误信息 */ |
| | | errors?: any; |
| | | msg?: any; |
| | | /** 附加数据 */ |
| | | extras?: any; |
| | | /** 时间戳 */ |
| | |
| | | traceId?: string; |
| | | /** 状态码 */ |
| | | code?: number; |
| | | /** 错误码 */ |
| | | errorCode?: string; |
| | | /** 数据 */ |
| | | data?: GetResourcesQueryResultItem[]; |
| | | /** 执行成功 */ |
| | | success?: boolean; |
| | | /** 错误信息 */ |
| | | errors?: any; |
| | | msg?: any; |
| | | /** 附加数据 */ |
| | | extras?: any; |
| | | /** 时间戳 */ |
| | | timestamp?: number; |
| | | } |
| | | |
| | | interface FriendlyResultPagedListQueryResultGetRolesQueryResultItem { |
| | | /** 跟踪Id */ |
| | | traceId?: string; |
| | | /** 状态码 */ |
| | | code?: number; |
| | | /** 错误码 */ |
| | | errorCode?: string; |
| | | data?: PagedListQueryResultGetRolesQueryResultItem; |
| | | /** 执行成功 */ |
| | | success?: boolean; |
| | | /** 错误信息 */ |
| | | msg?: any; |
| | | /** 附加数据 */ |
| | | extras?: any; |
| | | /** 时间戳 */ |
| | |
| | | traceId?: string; |
| | | /** 状态码 */ |
| | | code?: number; |
| | | /** 错误码 */ |
| | | errorCode?: string; |
| | | data?: PasswordLoginCommandCallback; |
| | | /** 执行成功 */ |
| | | success?: boolean; |
| | | /** 错误信息 */ |
| | | errors?: any; |
| | | msg?: any; |
| | | /** 附加数据 */ |
| | | extras?: any; |
| | | /** 时间戳 */ |
| | | timestamp?: number; |
| | | } |
| | | |
| | | type GetAliyunOSSAcsQuery = Record<string, any>; |
| | | |
| | | interface GetAliyunOSSAcsQueryResult { |
| | | expiration?: string; |
| | | ossAccessSecret?: string; |
| | | ossAccessKeyId?: string; |
| | | securityToken?: string; |
| | | requestId?: string; |
| | | } |
| | | |
| | | interface GetDictionaryDatasQuery { |
| | |
| | | data?: GetDictionaryDatasQueryResultItem[]; |
| | | } |
| | | |
| | | type GetDictionaryDatasQueryResultItem = true; |
| | | |
| | | interface GetMenuQuery { |
| | | /** Id */ |
| | | id?: string; |
| | | } |
| | | type GetDictionaryDatasQueryResultItem = Record<string, any>; |
| | | |
| | | interface GetMenuQueryResult { |
| | | /** Id */ |
| | | id?: string; |
| | | /** 是否选择(用户角色授权) */ |
| | | isChecked?: boolean; |
| | | userType?: EnumUserType; |
| | | clientType?: EnumClientType; |
| | | /** 上级Id */ |
| | |
| | | interface GetMenuQueryResultButton { |
| | | /** Id */ |
| | | id?: string; |
| | | /** 是否选择(用户角色授权) */ |
| | | isChecked?: boolean; |
| | | /** 编号 */ |
| | | code?: string; |
| | | /** 名称 */ |
| | |
| | | interface GetMenuQueryResultField { |
| | | /** Id */ |
| | | id?: string; |
| | | /** 是否选择(用户角色授权) */ |
| | | isChecked?: boolean; |
| | | /** 编号 */ |
| | | code?: string; |
| | | /** 名称 */ |
| | |
| | | fields?: GetMenuQueryResultField[]; |
| | | } |
| | | |
| | | interface GetMenusQuery { |
| | | userType?: EnumUserType; |
| | | clientType?: EnumClientType; |
| | | } |
| | | |
| | | interface GetMenusQueryResultItem { |
| | | /** Id */ |
| | | id?: string; |
| | | /** 是否选择(用户角色授权) */ |
| | | isChecked?: boolean; |
| | | /** 上级Id */ |
| | | parentId?: string; |
| | | /** 下级 */ |
| | | childrens?: GetMenusQueryResultItem[]; |
| | | children?: GetMenusQueryResultItem[]; |
| | | /** 编号 */ |
| | | code?: string; |
| | | /** 名称 */ |
| | |
| | | remark?: string; |
| | | } |
| | | |
| | | interface GetResourceFieldsQuery { |
| | | /** Id */ |
| | | id?: string; |
| | | } |
| | | |
| | | interface GetResourceFieldsQueryResultItem { |
| | | /** 编号 */ |
| | | code?: string; |
| | |
| | | name?: string; |
| | | } |
| | | |
| | | interface GetResourcesQuery { |
| | | /** 微服务 */ |
| | | service?: string; |
| | | method?: EnumWebApiMethod; |
| | | /** 关键字 */ |
| | | keywords?: string; |
| | | } |
| | | |
| | | interface GetResourcesQueryResultItem { |
| | | /** Id */ |
| | | id?: string; |
| | | /** 是否选中(用于角色授权) */ |
| | | isChecked?: boolean; |
| | | /** 微服务 */ |
| | | service?: string; |
| | | /** 编号 */ |
| | |
| | | responseTypeName?: string; |
| | | } |
| | | |
| | | interface GetRoleQueryResult { |
| | | /** Id */ |
| | | id?: string; |
| | | /** 名称 */ |
| | | name?: string; |
| | | userType?: EnumUserType; |
| | | clientType?: EnumClientType; |
| | | /** 最低级别 */ |
| | | minLevel?: number; |
| | | /** 菜单Id */ |
| | | menuIds?: string[]; |
| | | /** 资源 */ |
| | | resources?: GetRoleQueryResultResource[]; |
| | | } |
| | | |
| | | interface GetRoleQueryResultResource { |
| | | /** 资源Id */ |
| | | resourceId?: string; |
| | | dataPower?: EnumRoleWebApiDataPower; |
| | | } |
| | | |
| | | interface GetRolesQuery { |
| | | pageModel?: PagedListQueryPageModel; |
| | | userType?: EnumUserType; |
| | | clientType?: EnumClientType; |
| | | } |
| | | |
| | | interface GetRolesQueryResultItem { |
| | | /** Id */ |
| | | id?: string; |
| | | /** 名称 */ |
| | | name?: string; |
| | | userType?: EnumUserType; |
| | | clientType?: EnumClientType; |
| | | /** 最低级别 */ |
| | | minLevel?: number; |
| | | } |
| | | |
| | | interface PagedListQueryPageModel { |
| | | /** 行数 */ |
| | | rows?: number; |
| | |
| | | /** 属性 */ |
| | | property?: string; |
| | | order?: EnumPagedListOrder; |
| | | } |
| | | |
| | | interface PagedListQueryResultGetRolesQueryResultItem { |
| | | pageModel?: PagedListQueryResultPageModel; |
| | | /** 数据 */ |
| | | data?: GetRolesQueryResultItem[]; |
| | | } |
| | | |
| | | interface PagedListQueryResultPageModel { |
| | |
| | | /** 字段 */ |
| | | fields?: SaveMenuCommandField[]; |
| | | } |
| | | |
| | | interface SaveRoleCommand { |
| | | /** Id */ |
| | | id?: string; |
| | | /** 名称 */ |
| | | name?: string; |
| | | userType?: EnumUserType; |
| | | clientType?: EnumClientType; |
| | | /** 最低级别 */ |
| | | minLevel?: number; |
| | | /** 菜单Id */ |
| | | menuIds?: string[]; |
| | | /** 资源 */ |
| | | resources?: GetRoleQueryResultResource[]; |
| | | } |
| | | } |