| | |
| | | [key: string]: any; |
| | | } |
| | | |
| | | type AuthPasswordLoginCallback = true; |
| | | |
| | | interface AuthPasswordLoginCommand { |
| | | /** 账号 */ |
| | | userName: string; |
| | | /** 密码 */ |
| | | password: string; |
| | | type?: EnumUserType; |
| | | clientType?: EnumClientType; |
| | | interface DeleteMenuCommand { |
| | | ids: string[]; |
| | | } |
| | | |
| | | enum EnumClientType { |
| | |
| | | NeedPower = 30, |
| | | } |
| | | |
| | | enum EnumPagedListOrder { |
| | | /**升序 */ |
| | | Ascending = 0, |
| | | /**降序 */ |
| | | Descending = 1, |
| | | } |
| | | |
| | | enum EnumUserType { |
| | | /**个人 */ |
| | | Personal = 10, |
| | |
| | | Operation = 100, |
| | | } |
| | | |
| | | interface FriendlyResultAuthPasswordLoginCallback { |
| | | enum EnumWebApiMethod { |
| | | /**查询 */ |
| | | Get = 10, |
| | | /**提交 */ |
| | | Post = 20, |
| | | /**修改 */ |
| | | Put = 30, |
| | | /**删除 */ |
| | | Delete = 40, |
| | | } |
| | | |
| | | interface FriendlyResultGetDictionaryDatasQueryResult { |
| | | /** 跟踪Id */ |
| | | traceId?: string; |
| | | /** 状态码 */ |
| | | code?: number; |
| | | data?: AuthPasswordLoginCallback; |
| | | data?: GetDictionaryDatasQueryResult; |
| | | /** 执行成功 */ |
| | | success?: boolean; |
| | | /** 错误信息 */ |
| | | errors?: any; |
| | | /** 附加数据 */ |
| | | extras?: any; |
| | | /** 时间戳 */ |
| | | timestamp?: number; |
| | | } |
| | | |
| | | interface FriendlyResultGetMenuQueryResult { |
| | | /** 跟踪Id */ |
| | | traceId?: string; |
| | | /** 状态码 */ |
| | | code?: number; |
| | | data?: GetMenuQueryResult; |
| | | /** 执行成功 */ |
| | | success?: boolean; |
| | | /** 错误信息 */ |
| | |
| | | timestamp?: number; |
| | | } |
| | | |
| | | interface FriendlyResultMenuListCallback { |
| | | interface FriendlyResultInt32 { |
| | | /** 跟踪Id */ |
| | | traceId?: string; |
| | | /** 状态码 */ |
| | | code?: number; |
| | | data?: MenuListCallback; |
| | | /** 数据 */ |
| | | data?: number; |
| | | /** 执行成功 */ |
| | | success?: boolean; |
| | | /** 错误信息 */ |
| | |
| | | timestamp?: number; |
| | | } |
| | | |
| | | interface FriendlyResultMenuSubListCallback { |
| | | interface FriendlyResultListGetMenusQueryResultItem { |
| | | /** 跟踪Id */ |
| | | traceId?: string; |
| | | /** 状态码 */ |
| | | code?: number; |
| | | data?: MenuSubListCallback; |
| | | /** 数据 */ |
| | | data?: GetMenusQueryResultItem[]; |
| | | /** 执行成功 */ |
| | | success?: boolean; |
| | | /** 错误信息 */ |
| | |
| | | timestamp?: number; |
| | | } |
| | | |
| | | interface MenuListCallback { |
| | | items?: MenuListCallbackItem[]; |
| | | interface FriendlyResultListGetResourceFieldsQueryResultItem { |
| | | /** 跟踪Id */ |
| | | traceId?: string; |
| | | /** 状态码 */ |
| | | code?: number; |
| | | /** 数据 */ |
| | | data?: GetResourceFieldsQueryResultItem[]; |
| | | /** 执行成功 */ |
| | | success?: boolean; |
| | | /** 错误信息 */ |
| | | errors?: any; |
| | | /** 附加数据 */ |
| | | extras?: any; |
| | | /** 时间戳 */ |
| | | timestamp?: number; |
| | | } |
| | | |
| | | interface MenuListCallbackItem { |
| | | interface FriendlyResultListGetResourcesQueryResultItem { |
| | | /** 跟踪Id */ |
| | | traceId?: string; |
| | | /** 状态码 */ |
| | | code?: number; |
| | | /** 数据 */ |
| | | data?: GetResourcesQueryResultItem[]; |
| | | /** 执行成功 */ |
| | | success?: boolean; |
| | | /** 错误信息 */ |
| | | errors?: any; |
| | | /** 附加数据 */ |
| | | extras?: any; |
| | | /** 时间戳 */ |
| | | timestamp?: number; |
| | | } |
| | | |
| | | interface FriendlyResultPasswordLoginCommandCallback { |
| | | /** 跟踪Id */ |
| | | traceId?: string; |
| | | /** 状态码 */ |
| | | code?: number; |
| | | data?: PasswordLoginCommandCallback; |
| | | /** 执行成功 */ |
| | | success?: boolean; |
| | | /** 错误信息 */ |
| | | errors?: any; |
| | | /** 附加数据 */ |
| | | extras?: any; |
| | | /** 时间戳 */ |
| | | timestamp?: number; |
| | | } |
| | | |
| | | interface GetDictionaryDatasQuery { |
| | | pageModel?: PagedListQueryPageModel; |
| | | } |
| | | |
| | | interface GetDictionaryDatasQueryResult { |
| | | pageModel?: PagedListQueryResultPageModel; |
| | | /** 数据 */ |
| | | data?: GetDictionaryDatasQueryResultItem[]; |
| | | } |
| | | |
| | | type GetDictionaryDatasQueryResultItem = true; |
| | | |
| | | interface GetMenuQuery { |
| | | /** Id */ |
| | | id?: string; |
| | | } |
| | | |
| | | interface GetMenuQueryResult { |
| | | /** Id */ |
| | | id?: string; |
| | | userType?: EnumUserType; |
| | | clientType?: EnumClientType; |
| | | /** 上级Id */ |
| | | parentId?: string; |
| | | /** 菜单路径 */ |
| | |
| | | url?: string; |
| | | /** 是否禁用 */ |
| | | isDisabled?: boolean; |
| | | /** 是否隐藏 */ |
| | | isHidden?: boolean; |
| | | /** 是否缓存 */ |
| | | isCache?: boolean; |
| | | /** 排序 */ |
| | | sort?: number; |
| | | /** 备注 */ |
| | | remark?: string; |
| | | /** 分组 */ |
| | | groups?: GetMenuQueryResultGroup[]; |
| | | } |
| | | |
| | | interface GetMenuQueryResultButton { |
| | | /** Id */ |
| | | id?: string; |
| | | /** 编号 */ |
| | | code?: string; |
| | | /** 名称 */ |
| | | name?: string; |
| | | /** 图标 */ |
| | | icon?: string; |
| | | /** 宽度(用于按钮/列/元素) */ |
| | | width?: string; |
| | | /** 排序 */ |
| | | sort?: number; |
| | | /** 备注 */ |
| | | remark?: string; |
| | | } |
| | | |
| | | interface GetMenuQueryResultButtonLocation { |
| | | /** 位置(用于按钮) */ |
| | | location?: string; |
| | | /** 按钮 */ |
| | | buttons?: GetMenuQueryResultButton[]; |
| | | } |
| | | |
| | | interface GetMenuQueryResultField { |
| | | /** Id */ |
| | | id?: string; |
| | | /** 编号 */ |
| | | code?: string; |
| | | /** 名称 */ |
| | | name?: string; |
| | | /** 宽度(用于按钮/列/元素) */ |
| | | width?: string; |
| | | /** 排序 */ |
| | | sort?: number; |
| | | /** 备注 */ |
| | | remark?: string; |
| | | } |
| | | |
| | | interface GetMenuQueryResultGroup { |
| | | /** 分组名称(用于按钮/字段) */ |
| | | group?: string; |
| | | /** 按钮位置 */ |
| | | buttonLocations?: GetMenuQueryResultButtonLocation[]; |
| | | /** 字段 */ |
| | | fields?: GetMenuQueryResultField[]; |
| | | } |
| | | |
| | | interface GetMenusQuery { |
| | | userType?: EnumUserType; |
| | | clientType?: EnumClientType; |
| | | } |
| | | |
| | | interface GetMenusQueryResultItem { |
| | | /** Id */ |
| | | id?: string; |
| | | /** 上级Id */ |
| | | parentId?: string; |
| | | /** 下级 */ |
| | | childrens?: GetMenusQueryResultItem[]; |
| | | /** 编号 */ |
| | | code?: string; |
| | | /** 名称 */ |
| | | name?: string; |
| | | /** 菜单路径 */ |
| | | path?: string; |
| | | type?: EnumMenuType; |
| | | visitLevel?: EnumMenuVisitLevel; |
| | | /** 图标 */ |
| | | icon?: string; |
| | | /** 链接地址 */ |
| | | url?: string; |
| | | /** 是否禁用 */ |
| | | isDisabled?: boolean; |
| | | /** 是否缓存 */ |
| | | isCache?: boolean; |
| | | /** 排序 */ |
| | |
| | | remark?: string; |
| | | } |
| | | |
| | | interface MenuListQuery { |
| | | /** 上级Id */ |
| | | parentId?: string; |
| | | interface GetResourceFieldsQuery { |
| | | /** Id */ |
| | | id?: string; |
| | | } |
| | | |
| | | interface GetResourceFieldsQueryResultItem { |
| | | /** 编号 */ |
| | | code?: string; |
| | | /** 名称 */ |
| | | name?: string; |
| | | } |
| | | |
| | | interface GetResourcesQuery { |
| | | /** 微服务 */ |
| | | service?: string; |
| | | method?: EnumWebApiMethod; |
| | | /** 关键字 */ |
| | | keywords?: string; |
| | | } |
| | | |
| | | interface MenuSaveCommand { |
| | | interface GetResourcesQueryResultItem { |
| | | /** Id */ |
| | | id?: string; |
| | | /** 上级Id */ |
| | | parentId?: string; |
| | | /** 微服务 */ |
| | | service?: string; |
| | | /** 编号 */ |
| | | code: string; |
| | | /** 名称 */ |
| | | name: string; |
| | | type?: EnumMenuType; |
| | | visitLevel?: EnumMenuVisitLevel; |
| | | /** 图标 */ |
| | | icon?: string; |
| | | /** 链接地址 */ |
| | | url?: string; |
| | | /** 分组名称(用于按钮/字段) */ |
| | | group?: string; |
| | | /** 位置(用于按钮) */ |
| | | location?: string; |
| | | /** 列宽(用于按钮/列/元素) */ |
| | | width?: string; |
| | | /** 是否禁用 */ |
| | | isDisabled?: boolean; |
| | | /** 是否隐藏 */ |
| | | isHidden?: boolean; |
| | | /** 是否缓存 */ |
| | | isCache?: boolean; |
| | | /** 排序 */ |
| | | sort?: number; |
| | | /** 备注 */ |
| | | remark?: string; |
| | | } |
| | | |
| | | interface MenuSubListCallback { |
| | | groups?: MenuSubListCallbackGroup[]; |
| | | } |
| | | |
| | | interface MenuSubListCallbackGroup { |
| | | code?: string; |
| | | /** 名称 */ |
| | | name?: string; |
| | | /** 按钮 */ |
| | | buttons?: MenuSubListCallbackItem[]; |
| | | /** 字段 */ |
| | | fields?: MenuSubListCallbackItem[]; |
| | | method?: EnumWebApiMethod; |
| | | /** 路由 */ |
| | | route?: string; |
| | | /** 请求类型名称 */ |
| | | requestTypeName?: string; |
| | | /** 响应类型名称 */ |
| | | responseTypeName?: string; |
| | | } |
| | | |
| | | interface MenuSubListCallbackItem { |
| | | interface PagedListQueryPageModel { |
| | | /** 行数 */ |
| | | rows?: number; |
| | | /** 页码 */ |
| | | page?: number; |
| | | /** 排序 */ |
| | | orderInput?: PagedListQueryPageModelOrderInput[]; |
| | | } |
| | | |
| | | interface PagedListQueryPageModelOrderInput { |
| | | /** 属性 */ |
| | | property?: string; |
| | | order?: EnumPagedListOrder; |
| | | } |
| | | |
| | | interface PagedListQueryResultPageModel { |
| | | /** 行数 */ |
| | | rows?: number; |
| | | /** 页码 */ |
| | | page?: number; |
| | | /** 排序 */ |
| | | orderInput?: PagedListQueryPageModelOrderInput[]; |
| | | /** 总数 */ |
| | | totalCount?: number; |
| | | /** 页数 */ |
| | | totalPage?: number; |
| | | } |
| | | |
| | | interface PasswordLoginCommand { |
| | | /** 账号 */ |
| | | userName: string; |
| | | /** 密码 */ |
| | | password: string; |
| | | type?: EnumUserType; |
| | | clientType?: EnumClientType; |
| | | } |
| | | |
| | | interface PasswordLoginCommandCallback { |
| | | /** 用户访问令牌 */ |
| | | accessToken?: string; |
| | | /** 刷新令牌 */ |
| | | refreshToken?: string; |
| | | } |
| | | |
| | | interface SaveMenuCommand { |
| | | /** Id */ |
| | | id?: string; |
| | | userType?: EnumUserType; |
| | | clientType?: EnumClientType; |
| | | /** 上级Id */ |
| | | parentId?: string; |
| | | /** 菜单路径 */ |
| | | path?: string; |
| | | /** 编号 */ |
| | | code?: string; |
| | | /** 名称 */ |
| | |
| | | icon?: string; |
| | | /** 链接地址 */ |
| | | url?: string; |
| | | /** 分组名称(用于按钮/字段) */ |
| | | group?: string; |
| | | /** 位置(用于按钮) */ |
| | | location?: string; |
| | | /** 列宽(用于按钮/列/元素) */ |
| | | width?: string; |
| | | /** 是否禁用 */ |
| | | isDisabled?: boolean; |
| | | /** 是否隐藏 */ |
| | | isHidden?: boolean; |
| | | /** 是否缓存 */ |
| | | isCache?: boolean; |
| | | /** 排序 */ |
| | | sort?: number; |
| | | /** 备注 */ |
| | | remark?: string; |
| | | /** 分组 */ |
| | | groups?: SaveMenuCommandGroup[]; |
| | | } |
| | | |
| | | interface MenuSubListQuery { |
| | | /** 上级Id */ |
| | | parentId?: string; |
| | | interface SaveMenuCommandButton { |
| | | /** Id */ |
| | | id?: string; |
| | | /** 编号 */ |
| | | code?: string; |
| | | /** 名称 */ |
| | | name?: string; |
| | | /** 图标 */ |
| | | icon?: string; |
| | | /** 宽度(用于按钮/列/元素) */ |
| | | width?: string; |
| | | /** 排序 */ |
| | | sort?: number; |
| | | /** 备注 */ |
| | | remark?: string; |
| | | } |
| | | |
| | | interface SaveMenuCommandButtonLocation { |
| | | /** 位置(用于按钮) */ |
| | | location?: string; |
| | | /** 按钮 */ |
| | | buttons?: SaveMenuCommandButton[]; |
| | | } |
| | | |
| | | interface SaveMenuCommandField { |
| | | /** Id */ |
| | | id?: string; |
| | | /** 编号 */ |
| | | code?: string; |
| | | /** 名称 */ |
| | | name?: string; |
| | | /** 宽度(用于按钮/列/元素) */ |
| | | width?: string; |
| | | /** 排序 */ |
| | | sort?: number; |
| | | /** 备注 */ |
| | | remark?: string; |
| | | } |
| | | |
| | | interface SaveMenuCommandGroup { |
| | | /** 分组名称(用于按钮/字段) */ |
| | | group?: string; |
| | | /** 按钮位置 */ |
| | | buttonLocations?: SaveMenuCommandButtonLocation[]; |
| | | /** 字段 */ |
| | | fields?: SaveMenuCommandField[]; |
| | | } |
| | | } |