@liujitcn/kratos-admin-core 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +168 -0
- package/build/getEnv.ts +46 -0
- package/build/plugins.ts +206 -0
- package/build/proxy.ts +29 -0
- package/dist/package/declarations/build/getEnv.d.ts +13 -0
- package/dist/package/declarations/build/plugins.d.ts +20 -0
- package/dist/package/declarations/build/proxy.d.ts +10 -0
- package/dist/package/declarations/index.d.ts +7 -0
- package/dist/package/declarations/src/App.vue.d.ts +3 -0
- package/dist/package/declarations/src/api/base/config.d.ts +7 -0
- package/dist/package/declarations/src/api/base/file.d.ts +11 -0
- package/dist/package/declarations/src/api/base/login.d.ts +18 -0
- package/dist/package/declarations/src/api/base/oauth.d.ts +12 -0
- package/dist/package/declarations/src/api/system/auth.d.ts +13 -0
- package/dist/package/declarations/src/api/system/base_dict.d.ts +8 -0
- package/dist/package/declarations/src/api/system/base_tenant.d.ts +9 -0
- package/dist/package/declarations/src/auth.d.ts +1 -0
- package/dist/package/declarations/src/bootstrap.d.ts +23 -0
- package/dist/package/declarations/src/components/Card/DataPanelCard.vue.d.ts +23 -0
- package/dist/package/declarations/src/components/CronExpression/index.vue.d.ts +15 -0
- package/dist/package/declarations/src/components/Dialog/FormDialog.vue.d.ts +74 -0
- package/dist/package/declarations/src/components/Dialog/ProDialog.vue.d.ts +58 -0
- package/dist/package/declarations/src/components/Dict/DictLabel.vue.d.ts +11 -0
- package/dist/package/declarations/src/components/Dict/index.vue.d.ts +30 -0
- package/dist/package/declarations/src/components/ECharts/config/index.d.ts +7 -0
- package/dist/package/declarations/src/components/ECharts/index.vue.d.ts +22 -0
- package/dist/package/declarations/src/components/ErrorMessage/index.vue.d.ts +12 -0
- package/dist/package/declarations/src/components/Grid/components/GridItem.vue.d.ts +34 -0
- package/dist/package/declarations/src/components/Grid/index.vue.d.ts +28 -0
- package/dist/package/declarations/src/components/Grid/interface/index.d.ts +7 -0
- package/dist/package/declarations/src/components/ImportExcel/index.vue.d.ts +26 -0
- package/dist/package/declarations/src/components/Loading/fullScreen.d.ts +5 -0
- package/dist/package/declarations/src/components/Loading/index.vue.d.ts +3 -0
- package/dist/package/declarations/src/components/PasswordStrength/index.vue.d.ts +13 -0
- package/dist/package/declarations/src/components/ProForm/components/DynamicList.vue.d.ts +15 -0
- package/dist/package/declarations/src/components/ProForm/components/KvList.vue.d.ts +26 -0
- package/dist/package/declarations/src/components/ProForm/components/ProFormItem.vue.d.ts +28 -0
- package/dist/package/declarations/src/components/ProForm/index.vue.d.ts +36 -0
- package/dist/package/declarations/src/components/ProForm/interface/index.d.ts +47 -0
- package/dist/package/declarations/src/components/ProTable/components/ColSetting.vue.d.ts +9 -0
- package/dist/package/declarations/src/components/ProTable/components/Pagination.vue.d.ts +15 -0
- package/dist/package/declarations/src/components/ProTable/components/TableColumn.vue.d.ts +9 -0
- package/dist/package/declarations/src/components/ProTable/interface/index.d.ts +187 -0
- package/dist/package/declarations/src/components/ProTable.d.ts +5 -0
- package/dist/package/declarations/src/components/SearchForm/components/SearchFormItem.vue.d.ts +21 -0
- package/dist/package/declarations/src/components/SearchForm/index.vue.d.ts +22 -0
- package/dist/package/declarations/src/components/SelectFilter/index.vue.d.ts +44 -0
- package/dist/package/declarations/src/components/SelectIcon/index.vue.d.ts +19 -0
- package/dist/package/declarations/src/components/SvgIcon/index.vue.d.ts +15 -0
- package/dist/package/declarations/src/components/SwitchDark/index.vue.d.ts +3 -0
- package/dist/package/declarations/src/components/TreeFilter/index.vue.d.ts +5866 -0
- package/dist/package/declarations/src/components/Upload/File.vue.d.ts +24 -0
- package/dist/package/declarations/src/components/Upload/Files.vue.d.ts +26 -0
- package/dist/package/declarations/src/components/Upload/Img.vue.d.ts +43 -0
- package/dist/package/declarations/src/components/Upload/Imgs.vue.d.ts +46 -0
- package/dist/package/declarations/src/components/WangEditor/index.vue.d.ts +29 -0
- package/dist/package/declarations/src/config/index.d.ts +6 -0
- package/dist/package/declarations/src/config/nprogress.d.ts +3 -0
- package/dist/package/declarations/src/directives/index.d.ts +5 -0
- package/dist/package/declarations/src/directives/modules/auth.d.ts +3 -0
- package/dist/package/declarations/src/directives/modules/copy.d.ts +8 -0
- package/dist/package/declarations/src/directives/modules/debounce.d.ts +8 -0
- package/dist/package/declarations/src/directives/modules/draggable.d.ts +3 -0
- package/dist/package/declarations/src/directives/modules/longpress.d.ts +7 -0
- package/dist/package/declarations/src/directives/modules/throttle.d.ts +3 -0
- package/dist/package/declarations/src/directives/modules/waterMarker.d.ts +5 -0
- package/dist/package/declarations/src/enums/httpEnum.d.ts +29 -0
- package/dist/package/declarations/src/format.d.ts +1 -0
- package/dist/package/declarations/src/hooks/interface/index.d.ts +36 -0
- package/dist/package/declarations/src/hooks/useAuthButtons.d.ts +8 -0
- package/dist/package/declarations/src/hooks/useDownload.d.ts +9 -0
- package/dist/package/declarations/src/hooks/useHandleData.d.ts +10 -0
- package/dist/package/declarations/src/hooks/useOnline.d.ts +6 -0
- package/dist/package/declarations/src/hooks/useSelection.d.ts +10 -0
- package/dist/package/declarations/src/hooks/useTable.d.ts +46 -0
- package/dist/package/declarations/src/hooks/useTheme.d.ts +12 -0
- package/dist/package/declarations/src/hooks/useTime.d.ts +13 -0
- package/dist/package/declarations/src/index.d.ts +3 -0
- package/dist/package/declarations/src/layouts/LayoutClassic/index.vue.d.ts +3 -0
- package/dist/package/declarations/src/layouts/LayoutColumns/index.vue.d.ts +3 -0
- package/dist/package/declarations/src/layouts/LayoutTransverse/index.vue.d.ts +3 -0
- package/dist/package/declarations/src/layouts/LayoutVertical/index.vue.d.ts +3 -0
- package/dist/package/declarations/src/layouts/components/Footer/index.vue.d.ts +3 -0
- package/dist/package/declarations/src/layouts/components/Header/ToolBarLeft.vue.d.ts +3 -0
- package/dist/package/declarations/src/layouts/components/Header/ToolBarRight.vue.d.ts +3 -0
- package/dist/package/declarations/src/layouts/components/Header/components/AssemblySize.vue.d.ts +3 -0
- package/dist/package/declarations/src/layouts/components/Header/components/Avatar.vue.d.ts +3 -0
- package/dist/package/declarations/src/layouts/components/Header/components/Breadcrumb.vue.d.ts +3 -0
- package/dist/package/declarations/src/layouts/components/Header/components/CollapseIcon.vue.d.ts +3 -0
- package/dist/package/declarations/src/layouts/components/Header/components/Fullscreen.vue.d.ts +3 -0
- package/dist/package/declarations/src/layouts/components/Header/components/InfoDialog.vue.d.ts +5 -0
- package/dist/package/declarations/src/layouts/components/Header/components/PasswordDialog.vue.d.ts +5 -0
- package/dist/package/declarations/src/layouts/components/Header/components/SearchMenu.vue.d.ts +3 -0
- package/dist/package/declarations/src/layouts/components/Header/components/ThemeSetting.vue.d.ts +3 -0
- package/dist/package/declarations/src/layouts/components/Main/components/Maximize.vue.d.ts +3 -0
- package/dist/package/declarations/src/layouts/components/Main/index.vue.d.ts +3 -0
- package/dist/package/declarations/src/layouts/components/Menu/SubMenu.vue.d.ts +7 -0
- package/dist/package/declarations/src/layouts/components/Tabs/components/MoreButton.vue.d.ts +3 -0
- package/dist/package/declarations/src/layouts/components/Tabs/index.vue.d.ts +3 -0
- package/dist/package/declarations/src/layouts/components/ThemeDrawer/index.vue.d.ts +3 -0
- package/dist/package/declarations/src/layouts/index.vue.d.ts +3 -0
- package/dist/package/declarations/src/layouts/indexAsync.vue.d.ts +3 -0
- package/dist/package/declarations/src/modules/index.d.ts +117 -0
- package/dist/package/declarations/src/modules/kratosAdmin.d.ts +4 -0
- package/dist/package/declarations/src/navigation.d.ts +2 -0
- package/dist/package/declarations/src/request.d.ts +2 -0
- package/dist/package/declarations/src/routers/index.d.ts +21 -0
- package/dist/package/declarations/src/routers/modules/dynamicRouter.d.ts +4 -0
- package/dist/package/declarations/src/routers/modules/staticRouter.d.ts +25 -0
- package/dist/package/declarations/src/rpc/base/v1/config.d.ts +23 -0
- package/dist/package/declarations/src/rpc/base/v1/file.d.ts +52 -0
- package/dist/package/declarations/src/rpc/base/v1/login.d.ts +107 -0
- package/dist/package/declarations/src/rpc/base/v1/oauth.d.ts +167 -0
- package/dist/package/declarations/src/rpc/common/v1/common.d.ts +57 -0
- package/dist/package/declarations/src/rpc/common/v1/enum.d.ts +58 -0
- package/dist/package/declarations/src/rpc/common/v1/types.d.ts +60 -0
- package/dist/package/declarations/src/rpc/google/protobuf/empty.d.ts +11 -0
- package/dist/package/declarations/src/rpc/google/protobuf/wrappers.d.ts +108 -0
- package/dist/package/declarations/src/rpc/system/admin/v1/auth.d.ts +156 -0
- package/dist/package/declarations/src/rpc/system/admin/v1/base_dict.d.ts +215 -0
- package/dist/package/declarations/src/rpc/system/admin/v1/base_tenant.d.ts +112 -0
- package/dist/package/declarations/src/rpc/system/common/v1/enum.d.ts +67 -0
- package/dist/package/declarations/src/security.d.ts +3 -0
- package/dist/package/declarations/src/stores/helper/persist.d.ts +9 -0
- package/dist/package/declarations/src/stores/index.d.ts +2 -0
- package/dist/package/declarations/src/stores/interface/index.d.ts +90 -0
- package/dist/package/declarations/src/stores/modules/auth.d.ts +168 -0
- package/dist/package/declarations/src/stores/modules/config.d.ts +26 -0
- package/dist/package/declarations/src/stores/modules/dict.d.ts +32 -0
- package/dist/package/declarations/src/stores/modules/global.d.ts +4 -0
- package/dist/package/declarations/src/stores/modules/keepAlive.d.ts +6 -0
- package/dist/package/declarations/src/stores/modules/tabs.d.ts +13 -0
- package/dist/package/declarations/src/stores/modules/user.d.ts +29 -0
- package/dist/package/declarations/src/stores/runtime.d.ts +4 -0
- package/dist/package/declarations/src/styles/theme/aside.d.ts +4 -0
- package/dist/package/declarations/src/styles/theme/header.d.ts +4 -0
- package/dist/package/declarations/src/styles/theme/menu.d.ts +4 -0
- package/dist/package/declarations/src/table.d.ts +1 -0
- package/dist/package/declarations/src/tenant.d.ts +1 -0
- package/dist/package/declarations/src/utils/color.d.ts +28 -0
- package/dist/package/declarations/src/utils/dict.d.ts +15 -0
- package/dist/package/declarations/src/utils/eleValidate.d.ts +4 -0
- package/dist/package/declarations/src/utils/errorHandler.d.ts +5 -0
- package/dist/package/declarations/src/utils/index.d.ts +192 -0
- package/dist/package/declarations/src/utils/is/index.d.ts +72 -0
- package/dist/package/declarations/src/utils/mittBus.d.ts +2 -0
- package/dist/package/declarations/src/utils/oauthProvider.d.ts +19 -0
- package/dist/package/declarations/src/utils/passwordCrypto.d.ts +6 -0
- package/dist/package/declarations/src/utils/passwordStrength.d.ts +36 -0
- package/dist/package/declarations/src/utils/proTable.d.ts +44 -0
- package/dist/package/declarations/src/utils/request.d.ts +11 -0
- package/dist/package/declarations/src/utils/router.d.ts +14 -0
- package/dist/package/declarations/src/utils/svg.d.ts +4 -0
- package/dist/package/declarations/src/utils/tenant.d.ts +6 -0
- package/dist/package/declarations/src/utils/utils.d.ts +12 -0
- package/dist/package/declarations/src/views/error/403.vue.d.ts +3 -0
- package/dist/package/declarations/src/views/error/404.vue.d.ts +3 -0
- package/dist/package/declarations/src/views/error/500.vue.d.ts +3 -0
- package/dist/package/declarations/src/views/error/pending.vue.d.ts +3 -0
- package/dist/package/declarations/src/views/login/components/LoginForm.vue.d.ts +4 -0
- package/dist/package/declarations/src/views/login/index.vue.d.ts +3 -0
- package/dist/package/declarations/vite.config.d.ts +13 -0
- package/dist/package/src/App.vue +25 -0
- package/dist/package/src/api/base/config.ts +19 -0
- package/dist/package/src/api/base/file.ts +75 -0
- package/dist/package/src/api/base/login.ts +81 -0
- package/dist/package/src/api/base/oauth.ts +50 -0
- package/dist/package/src/api/system/auth.ts +45 -0
- package/dist/package/src/api/system/base_dict.ts +19 -0
- package/dist/package/src/api/system/base_tenant.ts +20 -0
- package/dist/package/src/assets/fonts/DIN.otf +0 -0
- package/dist/package/src/assets/fonts/MetroDF.ttf +0 -0
- package/dist/package/src/assets/fonts/YouSheBiaoTiHei.ttf +0 -0
- package/dist/package/src/assets/fonts/font.scss +14 -0
- package/dist/package/src/assets/iconfont/iconfont.scss +47 -0
- package/dist/package/src/assets/iconfont/iconfont.ttf +0 -0
- package/dist/package/src/assets/images/403.png +0 -0
- package/dist/package/src/assets/images/404.png +0 -0
- package/dist/package/src/assets/images/500.png +0 -0
- package/dist/package/src/assets/images/avatar.png +0 -0
- package/dist/package/src/assets/images/login_bg.svg +33 -0
- package/dist/package/src/assets/images/login_left.png +0 -0
- package/dist/package/src/assets/images/logo.svg +1 -0
- package/dist/package/src/assets/images/notData.png +0 -0
- package/dist/package/src/assets/images/oauth/dingtalk.png +0 -0
- package/dist/package/src/assets/images/oauth/feishu.png +0 -0
- package/dist/package/src/assets/images/oauth/gitee.png +0 -0
- package/dist/package/src/assets/images/oauth/github.png +0 -0
- package/dist/package/src/assets/images/oauth/google.png +0 -0
- package/dist/package/src/assets/images/oauth/wechat.png +0 -0
- package/dist/package/src/assets/images/oauth/wechatwork.png +0 -0
- package/dist/package/src/auth.ts +1 -0
- package/dist/package/src/bootstrap.ts +69 -0
- package/dist/package/src/components/Card/DataPanelCard.vue +67 -0
- package/dist/package/src/components/CronExpression/index.vue +713 -0
- package/dist/package/src/components/Dialog/FormDialog.vue +160 -0
- package/dist/package/src/components/Dialog/ProDialog.vue +96 -0
- package/dist/package/src/components/Dict/DictLabel.vue +62 -0
- package/dist/package/src/components/Dict/index.vue +157 -0
- package/dist/package/src/components/ECharts/config/index.ts +45 -0
- package/dist/package/src/components/ECharts/index.vue +108 -0
- package/dist/package/src/components/ErrorMessage/index.vue +63 -0
- package/dist/package/src/components/Grid/components/GridItem.vue +69 -0
- package/dist/package/src/components/Grid/index.vue +169 -0
- package/dist/package/src/components/Grid/interface/index.ts +8 -0
- package/dist/package/src/components/ImportExcel/index.scss +3 -0
- package/dist/package/src/components/ImportExcel/index.vue +150 -0
- package/dist/package/src/components/Loading/fullScreen.ts +45 -0
- package/dist/package/src/components/Loading/index.scss +67 -0
- package/dist/package/src/components/Loading/index.vue +13 -0
- package/dist/package/src/components/PasswordStrength/index.vue +127 -0
- package/dist/package/src/components/ProForm/components/DynamicList.vue +59 -0
- package/dist/package/src/components/ProForm/components/KvList.vue +73 -0
- package/dist/package/src/components/ProForm/components/ProFormItem.vue +191 -0
- package/dist/package/src/components/ProForm/index.vue +120 -0
- package/dist/package/src/components/ProForm/interface/index.ts +74 -0
- package/dist/package/src/components/ProTable/components/ColSetting.vue +45 -0
- package/dist/package/src/components/ProTable/components/Pagination.vue +58 -0
- package/dist/package/src/components/ProTable/components/TableColumn.vue +234 -0
- package/dist/package/src/components/ProTable/index.vue +567 -0
- package/dist/package/src/components/ProTable/interface/index.ts +223 -0
- package/dist/package/src/components/ProTable.ts +8 -0
- package/dist/package/src/components/SearchForm/components/SearchFormItem.vue +168 -0
- package/dist/package/src/components/SearchForm/index.vue +105 -0
- package/dist/package/src/components/SelectFilter/index.scss +63 -0
- package/dist/package/src/components/SelectFilter/index.vue +113 -0
- package/dist/package/src/components/SelectIcon/index.scss +39 -0
- package/dist/package/src/components/SelectIcon/index.vue +105 -0
- package/dist/package/src/components/SvgIcon/index.vue +35 -0
- package/dist/package/src/components/SwitchDark/index.vue +12 -0
- package/dist/package/src/components/TreeFilter/index.scss +44 -0
- package/dist/package/src/components/TreeFilter/index.vue +207 -0
- package/dist/package/src/components/Upload/File.vue +201 -0
- package/dist/package/src/components/Upload/Files.vue +234 -0
- package/dist/package/src/components/Upload/Img.vue +306 -0
- package/dist/package/src/components/Upload/Imgs.vue +320 -0
- package/dist/package/src/components/WangEditor/index.scss +28 -0
- package/dist/package/src/components/WangEditor/index.vue +154 -0
- package/dist/package/src/config/index.ts +19 -0
- package/dist/package/src/config/nprogress.ts +12 -0
- package/dist/package/src/directives/index.ts +28 -0
- package/dist/package/src/directives/modules/auth.ts +25 -0
- package/dist/package/src/directives/modules/copy.ts +39 -0
- package/dist/package/src/directives/modules/debounce.ts +32 -0
- package/dist/package/src/directives/modules/draggable.ts +50 -0
- package/dist/package/src/directives/modules/longpress.ts +49 -0
- package/dist/package/src/directives/modules/throttle.ts +42 -0
- package/dist/package/src/directives/modules/waterMarker.ts +36 -0
- package/dist/package/src/enums/httpEnum.ts +35 -0
- package/dist/package/src/format.ts +1 -0
- package/dist/package/src/hooks/interface/index.ts +38 -0
- package/dist/package/src/hooks/useAuthButtons.ts +25 -0
- package/dist/package/src/hooks/useDownload.ts +44 -0
- package/dist/package/src/hooks/useHandleData.ts +38 -0
- package/dist/package/src/hooks/useOnline.ts +27 -0
- package/dist/package/src/hooks/useSelection.ts +34 -0
- package/dist/package/src/hooks/useTable.ts +151 -0
- package/dist/package/src/hooks/useTheme.ts +111 -0
- package/dist/package/src/hooks/useTime.ts +38 -0
- package/dist/package/src/index.ts +9 -0
- package/dist/package/src/layouts/LayoutClassic/index.scss +60 -0
- package/dist/package/src/layouts/LayoutClassic/index.vue +64 -0
- package/dist/package/src/layouts/LayoutColumns/index.scss +95 -0
- package/dist/package/src/layouts/LayoutColumns/index.vue +113 -0
- package/dist/package/src/layouts/LayoutTransverse/index.scss +60 -0
- package/dist/package/src/layouts/LayoutTransverse/index.vue +70 -0
- package/dist/package/src/layouts/LayoutVertical/index.scss +70 -0
- package/dist/package/src/layouts/LayoutVertical/index.vue +119 -0
- package/dist/package/src/layouts/components/Footer/index.scss +11 -0
- package/dist/package/src/layouts/components/Footer/index.vue +21 -0
- package/dist/package/src/layouts/components/Header/ToolBarLeft.vue +23 -0
- package/dist/package/src/layouts/components/Header/ToolBarRight.vue +44 -0
- package/dist/package/src/layouts/components/Header/components/AssemblySize.vue +39 -0
- package/dist/package/src/layouts/components/Header/components/Avatar.vue +226 -0
- package/dist/package/src/layouts/components/Header/components/Breadcrumb.vue +117 -0
- package/dist/package/src/layouts/components/Header/components/CollapseIcon.vue +21 -0
- package/dist/package/src/layouts/components/Header/components/Fullscreen.vue +28 -0
- package/dist/package/src/layouts/components/Header/components/InfoDialog.vue +22 -0
- package/dist/package/src/layouts/components/Header/components/PasswordDialog.vue +22 -0
- package/dist/package/src/layouts/components/Header/components/SearchMenu.vue +207 -0
- package/dist/package/src/layouts/components/Header/components/ThemeSetting.vue +14 -0
- package/dist/package/src/layouts/components/Main/components/Maximize.vue +39 -0
- package/dist/package/src/layouts/components/Main/index.scss +14 -0
- package/dist/package/src/layouts/components/Main/index.vue +90 -0
- package/dist/package/src/layouts/components/Menu/SubMenu.vue +132 -0
- package/dist/package/src/layouts/components/Tabs/components/MoreButton.vue +83 -0
- package/dist/package/src/layouts/components/Tabs/index.scss +69 -0
- package/dist/package/src/layouts/components/Tabs/index.vue +111 -0
- package/dist/package/src/layouts/components/ThemeDrawer/index.scss +137 -0
- package/dist/package/src/layouts/components/ThemeDrawer/index.vue +191 -0
- package/dist/package/src/layouts/index.vue +50 -0
- package/dist/package/src/layouts/indexAsync.vue +54 -0
- package/dist/package/src/modules/index.ts +233 -0
- package/dist/package/src/modules/kratosAdmin.ts +17 -0
- package/dist/package/src/navigation.ts +2 -0
- package/dist/package/src/request.ts +2 -0
- package/dist/package/src/routers/index.ts +143 -0
- package/dist/package/src/routers/modules/dynamicRouter.ts +160 -0
- package/dist/package/src/routers/modules/staticRouter.ts +73 -0
- package/dist/package/src/rpc/base/v1/config.ts +34 -0
- package/dist/package/src/rpc/base/v1/file.ts +66 -0
- package/dist/package/src/rpc/base/v1/login.ts +128 -0
- package/dist/package/src/rpc/base/v1/oauth.ts +199 -0
- package/dist/package/src/rpc/common/v1/common.ts +71 -0
- package/dist/package/src/rpc/common/v1/enum.ts +71 -0
- package/dist/package/src/rpc/common/v1/types.ts +77 -0
- package/dist/package/src/rpc/google/protobuf/empty.ts +19 -0
- package/dist/package/src/rpc/google/protobuf/wrappers.ts +124 -0
- package/dist/package/src/rpc/system/admin/v1/auth.ts +208 -0
- package/dist/package/src/rpc/system/admin/v1/base_dict.ts +249 -0
- package/dist/package/src/rpc/system/admin/v1/base_tenant.ts +134 -0
- package/dist/package/src/rpc/system/common/v1/enum.ts +80 -0
- package/dist/package/src/security.ts +3 -0
- package/dist/package/src/stores/helper/persist.ts +19 -0
- package/dist/package/src/stores/index.ts +8 -0
- package/dist/package/src/stores/interface/index.ts +102 -0
- package/dist/package/src/stores/modules/auth.ts +73 -0
- package/dist/package/src/stores/modules/config.ts +119 -0
- package/dist/package/src/stores/modules/dict.ts +65 -0
- package/dist/package/src/stores/modules/global.ts +54 -0
- package/dist/package/src/stores/modules/keepAlive.ts +22 -0
- package/dist/package/src/stores/modules/tabs.ts +77 -0
- package/dist/package/src/stores/modules/user.ts +109 -0
- package/dist/package/src/stores/runtime.ts +4 -0
- package/dist/package/src/styles/common.scss +144 -0
- package/dist/package/src/styles/element-dark.scss +46 -0
- package/dist/package/src/styles/element.scss +333 -0
- package/dist/package/src/styles/reset.scss +143 -0
- package/dist/package/src/styles/theme/aside.ts +16 -0
- package/dist/package/src/styles/theme/header.ts +25 -0
- package/dist/package/src/styles/theme/menu.ts +31 -0
- package/dist/package/src/styles/var.scss +2 -0
- package/dist/package/src/table.ts +1 -0
- package/dist/package/src/tenant.ts +1 -0
- package/dist/package/src/typings/global.d.ts +74 -0
- package/dist/package/src/typings/utils.d.ts +17 -0
- package/dist/package/src/typings/window.d.ts +8 -0
- package/dist/package/src/utils/color.ts +59 -0
- package/dist/package/src/utils/dict.ts +17 -0
- package/dist/package/src/utils/eleValidate.ts +14 -0
- package/dist/package/src/utils/errorHandler.ts +27 -0
- package/dist/package/src/utils/index.ts +403 -0
- package/dist/package/src/utils/is/index.ts +125 -0
- package/dist/package/src/utils/mittBus.ts +5 -0
- package/dist/package/src/utils/oauthProvider.ts +79 -0
- package/dist/package/src/utils/passwordCrypto.ts +71 -0
- package/dist/package/src/utils/passwordStrength.ts +86 -0
- package/dist/package/src/utils/proTable.ts +124 -0
- package/dist/package/src/utils/request.ts +296 -0
- package/dist/package/src/utils/router.ts +43 -0
- package/dist/package/src/utils/svg.ts +13 -0
- package/dist/package/src/utils/tenant.ts +10 -0
- package/dist/package/src/utils/utils.ts +40 -0
- package/dist/package/src/views/error/403.vue +8 -0
- package/dist/package/src/views/error/404.vue +8 -0
- package/dist/package/src/views/error/500.vue +8 -0
- package/dist/package/src/views/error/pending.vue +16 -0
- package/dist/package/src/views/login/components/LoginForm.vue +797 -0
- package/dist/package/src/views/login/index.scss +103 -0
- package/dist/package/src/views/login/index.vue +108 -0
- package/dist/package/src/vite-env.d.ts +3 -0
- package/dist/package/types/generated/auto-imports.d.ts +124 -0
- package/dist/package/types/generated/components.d.ts +151 -0
- package/package.json +199 -0
- package/tsconfig.json +21 -0
- package/types/generated/auto-imports.d.ts +124 -0
- package/types/generated/components.d.ts +151 -0
- package/vite.config.ts +239 -0
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
|
+
// versions:
|
|
3
|
+
// protoc-gen-ts_proto v2.11.8
|
|
4
|
+
// protoc unknown
|
|
5
|
+
// source: base/v1/file.proto
|
|
6
|
+
|
|
7
|
+
/* eslint-disable */
|
|
8
|
+
import type { BytesValue } from "../../google/protobuf/wrappers";
|
|
9
|
+
|
|
10
|
+
/** 批量上传文件请求参数 */
|
|
11
|
+
export interface MultiUploadFileRequest {
|
|
12
|
+
/** 文件名 */
|
|
13
|
+
files: UploadFileInfo[];
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/** 批量上传文件响应 */
|
|
17
|
+
export interface MultiUploadFileResponse {
|
|
18
|
+
/** 文件上传结果 */
|
|
19
|
+
files: FileInfo[];
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/** 单文件上传请求参数 */
|
|
23
|
+
export interface UploadFileRequest {
|
|
24
|
+
/** 上传文件信息 */
|
|
25
|
+
file: UploadFileInfo | undefined;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/** 上传文件信息 */
|
|
29
|
+
export interface UploadFileInfo {
|
|
30
|
+
/** 文件名 */
|
|
31
|
+
name: string;
|
|
32
|
+
/** 文件扩展名 */
|
|
33
|
+
extname: string;
|
|
34
|
+
/** 文件路径 */
|
|
35
|
+
path: string;
|
|
36
|
+
/** 二进制内容将通过 base64 编码传输 */
|
|
37
|
+
content: Uint8Array;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/** 下载文件请求参数 */
|
|
41
|
+
export interface DownloadFileRequest {
|
|
42
|
+
/** 文件名 */
|
|
43
|
+
name: string;
|
|
44
|
+
/** 文件路径 */
|
|
45
|
+
path: string;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/** File信息 */
|
|
49
|
+
export interface FileInfo {
|
|
50
|
+
/** 文件路径 */
|
|
51
|
+
url: string;
|
|
52
|
+
/** 文件名 */
|
|
53
|
+
name: string;
|
|
54
|
+
/** 文件扩展名 */
|
|
55
|
+
extname: string;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/** Base文件服务 */
|
|
59
|
+
export interface FileService {
|
|
60
|
+
/** 多个文件上传 */
|
|
61
|
+
MultiUploadFile(request: MultiUploadFileRequest): Promise<MultiUploadFileResponse>;
|
|
62
|
+
/** 单个文件上传 */
|
|
63
|
+
UploadFile(request: UploadFileRequest): Promise<FileInfo>;
|
|
64
|
+
/** 下载文件 */
|
|
65
|
+
DownloadFile(request: DownloadFileRequest): Promise<BytesValue>;
|
|
66
|
+
}
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
|
+
// versions:
|
|
3
|
+
// protoc-gen-ts_proto v2.11.8
|
|
4
|
+
// protoc unknown
|
|
5
|
+
// source: base/v1/login.proto
|
|
6
|
+
|
|
7
|
+
/* eslint-disable */
|
|
8
|
+
import type { PasswordCryptoScene } from "../../common/v1/enum";
|
|
9
|
+
import type { PasswordCrypto } from "../../common/v1/types";
|
|
10
|
+
import type { Empty } from "../../google/protobuf/empty";
|
|
11
|
+
|
|
12
|
+
/** 验证码获取条件 */
|
|
13
|
+
export interface CaptchaRequest {
|
|
14
|
+
/** 验证码类型,random 表示随机选择当前支持的验证码类型 */
|
|
15
|
+
type: string;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/** 密码临时公钥获取条件 */
|
|
19
|
+
export interface PasswordPublicKeyRequest {
|
|
20
|
+
/** 使用场景 */
|
|
21
|
+
scene: PasswordCryptoScene;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/** 登出请求条件 */
|
|
25
|
+
export interface LogoutRequest {
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/** 验证码响应 */
|
|
29
|
+
export interface CaptchaResponse {
|
|
30
|
+
/** 验证码ID。 */
|
|
31
|
+
captcha_id: string;
|
|
32
|
+
/** 验证码base64 */
|
|
33
|
+
captcha_base64: string;
|
|
34
|
+
/** 本次验证码实际类型 */
|
|
35
|
+
type: string;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/** 验证码预校验请求 */
|
|
39
|
+
export interface VerifyCaptchaRequest {
|
|
40
|
+
/** 验证码ID */
|
|
41
|
+
captcha_id: string;
|
|
42
|
+
/** 验证码答案 */
|
|
43
|
+
captcha_code: string;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/** 验证码预校验响应 */
|
|
47
|
+
export interface VerifyCaptchaResponse {
|
|
48
|
+
/** 验证码通过令牌 */
|
|
49
|
+
captcha_token: string;
|
|
50
|
+
/** 有效时间,单位秒 */
|
|
51
|
+
expires_in: number;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/** 密码临时公钥响应 */
|
|
55
|
+
export interface PasswordPublicKeyResponse {
|
|
56
|
+
/** 临时密钥ID */
|
|
57
|
+
key_id: string;
|
|
58
|
+
/** 临时公钥 */
|
|
59
|
+
public_key: string;
|
|
60
|
+
/** 加密算法 */
|
|
61
|
+
algorithm: string;
|
|
62
|
+
/** 随机值 */
|
|
63
|
+
nonce: string;
|
|
64
|
+
/** 有效时间,单位秒 */
|
|
65
|
+
expires_in: number;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/** 刷新令牌请求参数 */
|
|
69
|
+
export interface RefreshTokenRequest {
|
|
70
|
+
/** 更新令牌,用来获取下一次的访问令牌,必选项。 */
|
|
71
|
+
refresh_token: string;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/** 刷新令牌响应 */
|
|
75
|
+
export interface RefreshTokenResponse {
|
|
76
|
+
/** 访问令牌,必选项。 */
|
|
77
|
+
access_token: string;
|
|
78
|
+
/** 更新令牌,用来获取下一次的访问令牌,可选项。 */
|
|
79
|
+
refresh_token: string;
|
|
80
|
+
/** 令牌类型,该值大小写不敏感,必选项,可以是bearer类型或mac类型。 */
|
|
81
|
+
token_type: string;
|
|
82
|
+
/** 令牌有效时间,单位为秒。如果访问令牌过期,服务器应回复授予访问令牌的持续时间。如果省略该参数,必须其他方式设置过期时间。 */
|
|
83
|
+
expires_in: number;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
/** 登录请求参数 */
|
|
87
|
+
export interface LoginRequest {
|
|
88
|
+
/** 租户编码 */
|
|
89
|
+
tenant_code: string;
|
|
90
|
+
/** 用户名,必选项。 */
|
|
91
|
+
user_name: string;
|
|
92
|
+
/** 用户的密码,必选项。 */
|
|
93
|
+
password:
|
|
94
|
+
| PasswordCrypto
|
|
95
|
+
| undefined;
|
|
96
|
+
/** 验证码 */
|
|
97
|
+
captcha_code: string;
|
|
98
|
+
/** 验证码Id */
|
|
99
|
+
captcha_id: string;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/** 登录响应 */
|
|
103
|
+
export interface LoginResponse {
|
|
104
|
+
/** 访问令牌,必选项。 */
|
|
105
|
+
access_token: string;
|
|
106
|
+
/** 更新令牌,用来获取下一次的访问令牌,可选项。 */
|
|
107
|
+
refresh_token: string;
|
|
108
|
+
/** 令牌类型,该值大小写不敏感,必选项,可以是bearer类型或mac类型。 */
|
|
109
|
+
token_type: string;
|
|
110
|
+
/** 令牌有效时间,单位为秒。如果访问令牌过期,服务器应回复授予访问令牌的持续时间。如果省略该参数,必须其他方式设置过期时间。 */
|
|
111
|
+
expires_in: number;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
/** Base登录公共服务 */
|
|
115
|
+
export interface LoginService {
|
|
116
|
+
/** 验证码 */
|
|
117
|
+
Captcha(request: CaptchaRequest): Promise<CaptchaResponse>;
|
|
118
|
+
/** 验证码预校验 */
|
|
119
|
+
VerifyCaptcha(request: VerifyCaptchaRequest): Promise<VerifyCaptchaResponse>;
|
|
120
|
+
/** 获取密码临时公钥 */
|
|
121
|
+
PasswordPublicKey(request: PasswordPublicKeyRequest): Promise<PasswordPublicKeyResponse>;
|
|
122
|
+
/** 登出 */
|
|
123
|
+
Logout(request: LogoutRequest): Promise<Empty>;
|
|
124
|
+
/** 刷新认证令牌 */
|
|
125
|
+
RefreshToken(request: RefreshTokenRequest): Promise<RefreshTokenResponse>;
|
|
126
|
+
/** 登录 */
|
|
127
|
+
Login(request: LoginRequest): Promise<LoginResponse>;
|
|
128
|
+
}
|
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
|
+
// versions:
|
|
3
|
+
// protoc-gen-ts_proto v2.11.8
|
|
4
|
+
// protoc unknown
|
|
5
|
+
// source: base/v1/oauth.proto
|
|
6
|
+
|
|
7
|
+
/* eslint-disable */
|
|
8
|
+
import type { PasswordCrypto } from "../../common/v1/types";
|
|
9
|
+
import type { Empty } from "../../google/protobuf/empty";
|
|
10
|
+
|
|
11
|
+
/** 个人中心三方账号绑定列表查询条件 */
|
|
12
|
+
export interface ListOauthBindingRequest {
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
/** 个人中心三方账号绑定列表响应 */
|
|
16
|
+
export interface ListOauthBindingResponse {
|
|
17
|
+
/** 三方账号绑定列表 */
|
|
18
|
+
bindings: OauthBinding[];
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/** 三方登录方式查询条件 */
|
|
22
|
+
export interface ListOauthProviderRequest {
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/** 三方登录方式查询结果 */
|
|
26
|
+
export interface ListOauthProviderResponse {
|
|
27
|
+
/** 三方登录方式列表 */
|
|
28
|
+
providers: OauthProvider[];
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/** 三方登录授权地址创建条件 */
|
|
32
|
+
export interface CreateOauthAuthorizationRequest {
|
|
33
|
+
/** 登录方式标识 */
|
|
34
|
+
provider: string;
|
|
35
|
+
/** 三方登录完成后的前端接收地址 */
|
|
36
|
+
redirect_url: string;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/** 三方登录授权地址创建结果 */
|
|
40
|
+
export interface CreateOauthAuthorizationResponse {
|
|
41
|
+
/** 三方授权地址 */
|
|
42
|
+
authorization_url: string;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/** 个人中心三方账号绑定授权地址创建条件 */
|
|
46
|
+
export interface CreateOauthBindingAuthorizationRequest {
|
|
47
|
+
/** 登录方式标识 */
|
|
48
|
+
provider: string;
|
|
49
|
+
/** 绑定完成后回跳地址 */
|
|
50
|
+
redirect_url: string;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/** 个人中心三方账号绑定授权地址创建响应 */
|
|
54
|
+
export interface CreateOauthBindingAuthorizationResponse {
|
|
55
|
+
/** 三方授权地址 */
|
|
56
|
+
authorization_url: string;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/** 三方登录会话创建请求 */
|
|
60
|
+
export interface CreateOauthSessionRequest {
|
|
61
|
+
/** 登录方式标识 */
|
|
62
|
+
provider: string;
|
|
63
|
+
/** 三方授权码 */
|
|
64
|
+
code: string;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/** 绑定已有账号的三方登录会话创建条件 */
|
|
68
|
+
export interface BindOauthSessionRequest {
|
|
69
|
+
/** 登录方式标识 */
|
|
70
|
+
provider: string;
|
|
71
|
+
/** 三方授权码 */
|
|
72
|
+
code: string;
|
|
73
|
+
/** 租户编码 */
|
|
74
|
+
tenant_code: string;
|
|
75
|
+
/** 用户名 */
|
|
76
|
+
user_name: string;
|
|
77
|
+
/** 用户密码 */
|
|
78
|
+
password:
|
|
79
|
+
| PasswordCrypto
|
|
80
|
+
| undefined;
|
|
81
|
+
/** 验证码 */
|
|
82
|
+
captcha_code: string;
|
|
83
|
+
/** 验证码Id */
|
|
84
|
+
captcha_id: string;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/** 三方登录会话创建响应 */
|
|
88
|
+
export interface CreateOauthSessionResponse {
|
|
89
|
+
/** 访问令牌,必选项。 */
|
|
90
|
+
access_token: string;
|
|
91
|
+
/** 更新令牌,用来获取下一次的访问令牌,可选项。 */
|
|
92
|
+
refresh_token: string;
|
|
93
|
+
/** 令牌类型,该值大小写不敏感,必选项,可以是bearer类型或mac类型。 */
|
|
94
|
+
token_type: string;
|
|
95
|
+
/** 令牌有效时间,单位为秒。 */
|
|
96
|
+
expires_in: number;
|
|
97
|
+
/** 是否需要绑定已有账号。 */
|
|
98
|
+
binding_required: boolean;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
/** 三方登录回调请求 */
|
|
102
|
+
export interface HandleOauthCallbackRequest {
|
|
103
|
+
/** 登录方式标识 */
|
|
104
|
+
provider: string;
|
|
105
|
+
/** 三方授权码 */
|
|
106
|
+
code: string;
|
|
107
|
+
/** 授权状态码 */
|
|
108
|
+
state: string;
|
|
109
|
+
/** 三方错误码 */
|
|
110
|
+
error: string;
|
|
111
|
+
/** 三方错误描述 */
|
|
112
|
+
error_description: string;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
/** 三方登录回调结果 */
|
|
116
|
+
export interface HandleOauthCallbackResponse {
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
/** 三方登录票据兑换请求 */
|
|
120
|
+
export interface ExchangeOauthTicketRequest {
|
|
121
|
+
/** 三方登录票据 */
|
|
122
|
+
ticket: string;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
/** 三方登录票据兑换结果 */
|
|
126
|
+
export interface ExchangeOauthTicketResponse {
|
|
127
|
+
/** 访问令牌,必选项。 */
|
|
128
|
+
access_token: string;
|
|
129
|
+
/** 更新令牌,用来获取下一次的访问令牌,可选项。 */
|
|
130
|
+
refresh_token: string;
|
|
131
|
+
/** 令牌类型,该值大小写不敏感,必选项,可以是bearer类型或mac类型。 */
|
|
132
|
+
token_type: string;
|
|
133
|
+
/** 令牌有效时间,单位为秒。 */
|
|
134
|
+
expires_in: number;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
/** 个人中心三方账号绑定回调请求 */
|
|
138
|
+
export interface HandleOauthBindingCallbackRequest {
|
|
139
|
+
/** 登录方式标识 */
|
|
140
|
+
provider: string;
|
|
141
|
+
/** 三方授权码 */
|
|
142
|
+
code: string;
|
|
143
|
+
/** 授权状态码 */
|
|
144
|
+
state: string;
|
|
145
|
+
/** 三方错误码 */
|
|
146
|
+
error: string;
|
|
147
|
+
/** 三方错误描述 */
|
|
148
|
+
error_description: string;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
/** 个人中心三方账号绑定回调响应 */
|
|
152
|
+
export interface HandleOauthBindingCallbackResponse {
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
/** 个人中心三方账号解绑条件 */
|
|
156
|
+
export interface UnbindOauthAccountRequest {
|
|
157
|
+
/** 登录方式标识 */
|
|
158
|
+
provider: string;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
/** 三方登录方式信息 */
|
|
162
|
+
export interface OauthProvider {
|
|
163
|
+
/** 登录方式标识 */
|
|
164
|
+
provider: string;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
/** 个人中心三方账号绑定信息 */
|
|
168
|
+
export interface OauthBinding {
|
|
169
|
+
/** 登录方式标识 */
|
|
170
|
+
provider: string;
|
|
171
|
+
/** 是否已绑定 */
|
|
172
|
+
bound: boolean;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
/** Base三方登录公共服务 */
|
|
176
|
+
export interface OauthService {
|
|
177
|
+
/** 查询个人中心三方账号绑定列表 */
|
|
178
|
+
ListOauthBinding(request: ListOauthBindingRequest): Promise<ListOauthBindingResponse>;
|
|
179
|
+
/** 查询三方登录方式 */
|
|
180
|
+
ListOauthProvider(request: ListOauthProviderRequest): Promise<ListOauthProviderResponse>;
|
|
181
|
+
/** 创建三方登录授权地址 */
|
|
182
|
+
CreateOauthAuthorization(request: CreateOauthAuthorizationRequest): Promise<CreateOauthAuthorizationResponse>;
|
|
183
|
+
/** 创建个人中心三方账号绑定授权地址 */
|
|
184
|
+
CreateOauthBindingAuthorization(
|
|
185
|
+
request: CreateOauthBindingAuthorizationRequest,
|
|
186
|
+
): Promise<CreateOauthBindingAuthorizationResponse>;
|
|
187
|
+
/** 创建三方登录会话 */
|
|
188
|
+
CreateOauthSession(request: CreateOauthSessionRequest): Promise<CreateOauthSessionResponse>;
|
|
189
|
+
/** 绑定已有账号并创建三方登录会话 */
|
|
190
|
+
BindOauthSession(request: BindOauthSessionRequest): Promise<CreateOauthSessionResponse>;
|
|
191
|
+
/** 处理三方登录回调 */
|
|
192
|
+
HandleOauthCallback(request: HandleOauthCallbackRequest): Promise<HandleOauthCallbackResponse>;
|
|
193
|
+
/** 兑换三方登录票据 */
|
|
194
|
+
ExchangeOauthTicket(request: ExchangeOauthTicketRequest): Promise<ExchangeOauthTicketResponse>;
|
|
195
|
+
/** 处理个人中心三方账号绑定回调 */
|
|
196
|
+
HandleOauthBindingCallback(request: HandleOauthBindingCallbackRequest): Promise<HandleOauthBindingCallbackResponse>;
|
|
197
|
+
/** 解绑个人中心三方账号 */
|
|
198
|
+
UnbindOauthAccount(request: UnbindOauthAccountRequest): Promise<Empty>;
|
|
199
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
|
+
// versions:
|
|
3
|
+
// protoc-gen-ts_proto v2.11.8
|
|
4
|
+
// protoc unknown
|
|
5
|
+
// source: common/v1/common.proto
|
|
6
|
+
|
|
7
|
+
/* eslint-disable */
|
|
8
|
+
|
|
9
|
+
/** 状态设置请求参数 */
|
|
10
|
+
export interface SetStatusRequest {
|
|
11
|
+
/** 主键id */
|
|
12
|
+
id: number;
|
|
13
|
+
/** 状态 */
|
|
14
|
+
status: number;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/** 树形选项响应 */
|
|
18
|
+
export interface TreeOptionResponse {
|
|
19
|
+
/** 选项列表 */
|
|
20
|
+
list: TreeOptionResponse_Option[];
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/** 树形选项 */
|
|
24
|
+
export interface TreeOptionResponse_Option {
|
|
25
|
+
/** 选项名 */
|
|
26
|
+
label: string;
|
|
27
|
+
/** 选项值 */
|
|
28
|
+
value: number;
|
|
29
|
+
/** 是否禁用 */
|
|
30
|
+
disabled: boolean;
|
|
31
|
+
/** 是否存在子节点 */
|
|
32
|
+
has_children: boolean;
|
|
33
|
+
/** 子节点树 */
|
|
34
|
+
children: TreeOptionResponse_Option[];
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/** 下拉选项响应 */
|
|
38
|
+
export interface SelectOptionResponse {
|
|
39
|
+
/** 选项列表 */
|
|
40
|
+
list: SelectOptionResponse_Option[];
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/** 下拉选项 */
|
|
44
|
+
export interface SelectOptionResponse_Option {
|
|
45
|
+
/** 选项名 */
|
|
46
|
+
label: string;
|
|
47
|
+
/** 选项值 */
|
|
48
|
+
value: number;
|
|
49
|
+
/** 是否禁用 */
|
|
50
|
+
disabled: boolean;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/** 应用树形选项响应 */
|
|
54
|
+
export interface AppTreeOptionResponse {
|
|
55
|
+
/** 选项列表 */
|
|
56
|
+
list: AppTreeOptionResponse_Option[];
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/** 应用树形选项 */
|
|
60
|
+
export interface AppTreeOptionResponse_Option {
|
|
61
|
+
/** 值。必填 */
|
|
62
|
+
value: string;
|
|
63
|
+
/** 显示文字。必填 */
|
|
64
|
+
text: string;
|
|
65
|
+
/** 是否默认选中。默认值false */
|
|
66
|
+
selected: boolean;
|
|
67
|
+
/** 是否禁用。默认值false */
|
|
68
|
+
disable: boolean;
|
|
69
|
+
/** 子节点树 */
|
|
70
|
+
children: AppTreeOptionResponse_Option[];
|
|
71
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
|
+
// versions:
|
|
3
|
+
// protoc-gen-ts_proto v2.11.8
|
|
4
|
+
// protoc unknown
|
|
5
|
+
// source: common/v1/enum.proto
|
|
6
|
+
|
|
7
|
+
/* eslint-disable */
|
|
8
|
+
|
|
9
|
+
/** 状态 */
|
|
10
|
+
export enum Status {
|
|
11
|
+
UNKNOWN = 0,
|
|
12
|
+
/** ENABLE - 启用 */
|
|
13
|
+
ENABLE = 1,
|
|
14
|
+
/** DISABLE - 禁用 */
|
|
15
|
+
DISABLE = 2,
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/** 系统配置位置 */
|
|
19
|
+
export enum BaseConfigSite {
|
|
20
|
+
UNKNOWN_BCS = 0,
|
|
21
|
+
/** SYSTEM - 系统内使用 */
|
|
22
|
+
SYSTEM = 1,
|
|
23
|
+
/** ADMIN - 管理端 */
|
|
24
|
+
ADMIN = 2,
|
|
25
|
+
/** APP - 移动端 */
|
|
26
|
+
APP = 3,
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/** 密码加密场景枚举 */
|
|
30
|
+
export enum PasswordCryptoScene {
|
|
31
|
+
/** UNKNOWN_PCS - 未指定密码加密场景 */
|
|
32
|
+
UNKNOWN_PCS = 0,
|
|
33
|
+
/** LOGIN - 登录密码加密场景 */
|
|
34
|
+
LOGIN = 1,
|
|
35
|
+
/** CREATE_BASE_USER - 新增后台用户密码加密场景 */
|
|
36
|
+
CREATE_BASE_USER = 2,
|
|
37
|
+
/** RESET_BASE_USER_PASSWORD - 重置后台用户密码加密场景 */
|
|
38
|
+
RESET_BASE_USER_PASSWORD = 3,
|
|
39
|
+
/** UPDATE_USER_PASSWORD - 个人修改密码加密场景 */
|
|
40
|
+
UPDATE_USER_PASSWORD = 4,
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/** AI 助手消息状态 */
|
|
44
|
+
export enum AiMessageStatus {
|
|
45
|
+
/** UNKNOWN_AAMS - 未知AI助手消息状态 */
|
|
46
|
+
UNKNOWN_AAMS = 0,
|
|
47
|
+
/** GENERATING_AAMS - 生成中 */
|
|
48
|
+
GENERATING_AAMS = 1,
|
|
49
|
+
/** SUCCESS_AAMS - 成功 */
|
|
50
|
+
SUCCESS_AAMS = 2,
|
|
51
|
+
/** FAILED_AAMS - 失败 */
|
|
52
|
+
FAILED_AAMS = 3,
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/** 支付通知资源类型 */
|
|
56
|
+
export enum ResourceType {
|
|
57
|
+
/** TRANSACTION - 支付 */
|
|
58
|
+
TRANSACTION = 0,
|
|
59
|
+
/** REFUND - 退款 */
|
|
60
|
+
REFUND = 1,
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/** 终端类型 */
|
|
64
|
+
export enum Terminal {
|
|
65
|
+
/** TERMINAL_UNSPECIFIED - 未知终端 */
|
|
66
|
+
TERMINAL_UNSPECIFIED = 0,
|
|
67
|
+
/** TERMINAL_APP - 移动端 */
|
|
68
|
+
TERMINAL_APP = 1,
|
|
69
|
+
/** TERMINAL_ADMIN - 管理端 */
|
|
70
|
+
TERMINAL_ADMIN = 2,
|
|
71
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
|
+
// versions:
|
|
3
|
+
// protoc-gen-ts_proto v2.11.8
|
|
4
|
+
// protoc unknown
|
|
5
|
+
// source: common/v1/types.proto
|
|
6
|
+
|
|
7
|
+
/* eslint-disable */
|
|
8
|
+
|
|
9
|
+
/** double 类型数组包装消息。 */
|
|
10
|
+
export interface DoubleValues {
|
|
11
|
+
/** 值列表。 */
|
|
12
|
+
value: number[];
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
/** float 类型数组包装消息。 */
|
|
16
|
+
export interface FloatValues {
|
|
17
|
+
/** 值列表。 */
|
|
18
|
+
value: number[];
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/** int64 类型数组包装消息。 */
|
|
22
|
+
export interface Int64Values {
|
|
23
|
+
/** 值列表。 */
|
|
24
|
+
value: number[];
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/** uint64 类型数组包装消息。 */
|
|
28
|
+
export interface UInt64Values {
|
|
29
|
+
/** 值列表。 */
|
|
30
|
+
value: number[];
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/** int32 类型数组包装消息。 */
|
|
34
|
+
export interface Int32Values {
|
|
35
|
+
/** 值列表。 */
|
|
36
|
+
value: number[];
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/** uint32 类型数组包装消息。 */
|
|
40
|
+
export interface UInt32Values {
|
|
41
|
+
/** 值列表。 */
|
|
42
|
+
value: number[];
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/** bool 类型数组包装消息。 */
|
|
46
|
+
export interface BoolValues {
|
|
47
|
+
/** 值列表。 */
|
|
48
|
+
value: boolean[];
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/** string 类型数组包装消息。 */
|
|
52
|
+
export interface StringValues {
|
|
53
|
+
/** 值列表。 */
|
|
54
|
+
value: string[];
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/** bytes 类型数组包装消息。 */
|
|
58
|
+
export interface BytesValues {
|
|
59
|
+
/** 值列表。 */
|
|
60
|
+
value: Uint8Array[];
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/** 密码密文。 */
|
|
64
|
+
export interface PasswordCrypto {
|
|
65
|
+
/** 临时密钥ID */
|
|
66
|
+
key_id: string;
|
|
67
|
+
/** 随机值 */
|
|
68
|
+
nonce: string;
|
|
69
|
+
/** 加密算法 */
|
|
70
|
+
algorithm: string;
|
|
71
|
+
/** 加密后的对称密钥 */
|
|
72
|
+
encrypted_key: string;
|
|
73
|
+
/** 初始化向量 */
|
|
74
|
+
iv: string;
|
|
75
|
+
/** 密码加密数据 */
|
|
76
|
+
ciphertext: string;
|
|
77
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
|
+
// versions:
|
|
3
|
+
// protoc-gen-ts_proto v2.11.8
|
|
4
|
+
// protoc unknown
|
|
5
|
+
// source: google/protobuf/empty.proto
|
|
6
|
+
|
|
7
|
+
/* eslint-disable */
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* A generic empty message that you can re-use to avoid defining duplicated
|
|
11
|
+
* empty messages in your APIs. A typical example is to use it as the request
|
|
12
|
+
* or the response type of an API method. For instance:
|
|
13
|
+
*
|
|
14
|
+
* service Foo {
|
|
15
|
+
* rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
|
16
|
+
* }
|
|
17
|
+
*/
|
|
18
|
+
export interface Empty {
|
|
19
|
+
}
|