| | |
| | | } |
| | | |
| | | interface APIgetAliyunOSSAcsParams { |
| | | query?: GetAliyunOSSAcsQuery; |
| | | /** 获取阿里云OSS授权信息 */ |
| | | request?: GetAliyunOSSAcsQuery; |
| | | } |
| | | |
| | | interface APIgetMenuParams { |
| | |
| | | } |
| | | |
| | | interface APIgetResourcesParams { |
| | | /** 微服务 */ |
| | | service?: string; |
| | | /** 请求方式 */ |
| | | method?: EnumWebApiMethod; |
| | | method?: EnumResourceMethod; |
| | | /** 关键字 */ |
| | | keywords?: string; |
| | | /** 角色Id */ |
| | |
| | | Descending = 1, |
| | | } |
| | | |
| | | enum EnumResourceController { |
| | | /**数据字典 */ |
| | | Dictionary = 0, |
| | | /**用户认证 */ |
| | | Auth = 1, |
| | | /**用户菜单 */ |
| | | Menu = 2, |
| | | /**用户资源 */ |
| | | Resource = 3, |
| | | /**用户角色 */ |
| | | Role = 4, |
| | | } |
| | | |
| | | enum EnumResourceMethod { |
| | | /**查询 */ |
| | | Get = 10, |
| | | /**提交 */ |
| | | Post = 20, |
| | | /**修改 */ |
| | | Put = 30, |
| | | /**删除 */ |
| | | Delete = 40, |
| | | } |
| | | |
| | | enum EnumRoleWebApiDataPower { |
| | | /**自定义 */ |
| | | Custom = 1, |
| | |
| | | Operation = 100, |
| | | } |
| | | |
| | | enum EnumWebApiMethod { |
| | | /**查询 */ |
| | | Get = 10, |
| | | /**提交 */ |
| | | Post = 20, |
| | | /**修改 */ |
| | | Put = 30, |
| | | /**删除 */ |
| | | Delete = 40, |
| | | } |
| | | |
| | | interface FriendlyResultGetAliyunOSSAcsQueryResult { |
| | | /** 跟踪Id */ |
| | | traceId?: string; |
| | |
| | | /** 错误码 */ |
| | | 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; |
| | | /** 错误信息 */ |
| | |
| | | timestamp?: number; |
| | | } |
| | | |
| | | interface FriendlyResultPagedListQueryResultGetDictionaryDatasQueryResultItem { |
| | | /** 跟踪Id */ |
| | | traceId?: string; |
| | | /** 状态码 */ |
| | | code?: number; |
| | | /** 错误码 */ |
| | | errorCode?: string; |
| | | data?: PagedListQueryResultGetDictionaryDatasQueryResultItem; |
| | | /** 执行成功 */ |
| | | success?: boolean; |
| | | /** 错误信息 */ |
| | | msg?: any; |
| | | /** 附加数据 */ |
| | | extras?: any; |
| | | /** 时间戳 */ |
| | | timestamp?: number; |
| | | } |
| | | |
| | | interface FriendlyResultPagedListQueryResultGetRolesQueryResultItem { |
| | | /** 跟踪Id */ |
| | | traceId?: string; |
| | |
| | | |
| | | interface GetDictionaryDatasQuery { |
| | | pageModel?: PagedListQueryPageModel; |
| | | } |
| | | |
| | | interface GetDictionaryDatasQueryResult { |
| | | pageModel?: PagedListQueryResultPageModel; |
| | | /** 数据 */ |
| | | data?: GetDictionaryDatasQueryResultItem[]; |
| | | } |
| | | |
| | | type GetDictionaryDatasQueryResultItem = Record<string, any>; |
| | |
| | | id?: string; |
| | | /** 是否选中(用于角色授权) */ |
| | | isChecked?: boolean; |
| | | /** 微服务 */ |
| | | service?: string; |
| | | controller?: EnumResourceController; |
| | | /** 委托名称 */ |
| | | actionName?: string; |
| | | /** 编号 */ |
| | | code?: string; |
| | | /** 名称 */ |
| | | name?: string; |
| | | method?: EnumWebApiMethod; |
| | | method?: EnumResourceMethod; |
| | | /** 路由 */ |
| | | route?: string; |
| | | /** 请求类型名称 */ |
| | | requestTypeName?: string; |
| | | /** 请求类型全名 */ |
| | | requestTypeFullName?: string; |
| | | /** 响应类型名称 */ |
| | | responseTypeName?: string; |
| | | /** 响应类型全名 */ |
| | | responseTypeFullName?: string; |
| | | } |
| | | |
| | | interface GetRoleQueryResult { |
| | |
| | | order?: EnumPagedListOrder; |
| | | } |
| | | |
| | | interface PagedListQueryResultGetDictionaryDatasQueryResultItem { |
| | | pageModel?: PagedListQueryResultPageModel; |
| | | /** 数据 */ |
| | | data?: GetDictionaryDatasQueryResultItem[]; |
| | | } |
| | | |
| | | interface PagedListQueryResultGetRolesQueryResultItem { |
| | | pageModel?: PagedListQueryResultPageModel; |
| | | /** 数据 */ |
| | |
| | | accessToken?: string; |
| | | /** 刷新令牌 */ |
| | | refreshToken?: string; |
| | | } |
| | | |
| | | interface SaveMenuButtonCommand { |
| | | /** Id */ |
| | | id?: string; |
| | | /** 菜单Id */ |
| | | parentId?: string; |
| | | /** 编号 */ |
| | | code?: string; |
| | | /** 名称 */ |
| | | name?: string; |
| | | /** 分组名称(用于按钮/字段) */ |
| | | group?: string; |
| | | /** 位置(用于按钮) */ |
| | | location?: string; |
| | | /** 图标 */ |
| | | icon?: string; |
| | | /** 宽度(用于按钮/列/元素) */ |
| | | width?: string; |
| | | /** 排序 */ |
| | | sort?: number; |
| | | /** 备注 */ |
| | | remark?: string; |
| | | } |
| | | |
| | | interface SaveMenuCommand { |
| | |
| | | fields?: SaveMenuCommandField[]; |
| | | } |
| | | |
| | | interface SaveMenuFieldCommand { |
| | | /** Id */ |
| | | id?: string; |
| | | /** 菜单Id */ |
| | | parentId?: string; |
| | | /** 编号 */ |
| | | code?: string; |
| | | /** 名称 */ |
| | | name?: string; |
| | | /** 分组名称(用于按钮/字段) */ |
| | | group?: string; |
| | | /** 位置(用于按钮) */ |
| | | location?: string; |
| | | /** 图标 */ |
| | | icon?: string; |
| | | /** 宽度(用于按钮/列/元素) */ |
| | | width?: string; |
| | | /** 排序 */ |
| | | sort?: number; |
| | | /** 备注 */ |
| | | remark?: string; |
| | | } |
| | | |
| | | interface SaveRoleCommand { |
| | | /** Id */ |
| | | id?: string; |
| | |
| | | /** 资源 */ |
| | | resources?: GetRoleQueryResultResource[]; |
| | | } |
| | | |
| | | interface SetMenuSwitchCommand { |
| | | /** Id */ |
| | | ids?: string[]; |
| | | type?: EnumMenuType; |
| | | /** 是否禁用(null时不更新) */ |
| | | isDisabled?: boolean; |
| | | /** 是否缓存(null时不更新) */ |
| | | isCache?: boolean; |
| | | } |
| | | } |