2024-03-08 17:59:45 +08:00
|
|
|
/** The global namespace for the app */
|
|
|
|
declare namespace App {
|
|
|
|
/** Theme namespace */
|
|
|
|
namespace Theme {
|
|
|
|
type ColorPaletteNumber = import('@sa/color-palette').ColorPaletteNumber;
|
|
|
|
|
|
|
|
/** Theme token */
|
|
|
|
type ThemeToken = {
|
|
|
|
colors: ThemeTokenColor;
|
|
|
|
boxShadow: {
|
|
|
|
header: string;
|
|
|
|
sider: string;
|
|
|
|
tab: string;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
/** Theme setting */
|
|
|
|
interface ThemeSetting {
|
|
|
|
/** Theme scheme */
|
|
|
|
themeScheme: UnionKey.ThemeScheme;
|
|
|
|
/** Theme color */
|
|
|
|
themeColor: string;
|
|
|
|
/** Other color */
|
|
|
|
otherColor: OtherColor;
|
|
|
|
/** Whether info color is followed by the primary color */
|
|
|
|
isInfoFollowPrimary: boolean;
|
|
|
|
/** Layout */
|
|
|
|
layout: {
|
|
|
|
/** Layout mode */
|
|
|
|
mode: UnionKey.ThemeLayoutMode;
|
|
|
|
/** Scroll mode */
|
|
|
|
scrollMode: UnionKey.ThemeScrollMode;
|
|
|
|
};
|
|
|
|
/** Page */
|
|
|
|
page: {
|
|
|
|
/** Whether to show the page transition */
|
|
|
|
animate: boolean;
|
|
|
|
/** Page animate mode */
|
|
|
|
animateMode: UnionKey.ThemePageAnimateMode;
|
|
|
|
};
|
|
|
|
/** Header */
|
|
|
|
header: {
|
|
|
|
/** Header height */
|
|
|
|
height: number;
|
|
|
|
/** Header breadcrumb */
|
|
|
|
breadcrumb: {
|
|
|
|
/** Whether to show the breadcrumb */
|
|
|
|
visible: boolean;
|
|
|
|
/** Whether to show the breadcrumb icon */
|
|
|
|
showIcon: boolean;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
/** Tab */
|
|
|
|
tab: {
|
|
|
|
/** Whether to show the tab */
|
|
|
|
visible: boolean;
|
|
|
|
/**
|
|
|
|
* Whether to cache the tab
|
|
|
|
*
|
|
|
|
* If cache, the tabs will get from the local storage when the page is refreshed
|
|
|
|
*/
|
|
|
|
cache: boolean;
|
|
|
|
/** Tab height */
|
|
|
|
height: number;
|
|
|
|
/** Tab mode */
|
|
|
|
mode: UnionKey.ThemeTabMode;
|
|
|
|
};
|
|
|
|
/** Fixed header and tab */
|
|
|
|
fixedHeaderAndTab: boolean;
|
|
|
|
/** Sider */
|
|
|
|
sider: {
|
|
|
|
/** Inverted sider */
|
|
|
|
inverted: boolean;
|
|
|
|
/** Sider width */
|
|
|
|
width: number;
|
|
|
|
/** Collapsed sider width */
|
|
|
|
collapsedWidth: number;
|
|
|
|
/** Sider width when the layout is 'vertical-mix' or 'horizontal-mix' */
|
|
|
|
mixWidth: number;
|
|
|
|
/** Collapsed sider width when the layout is 'vertical-mix' or 'horizontal-mix' */
|
|
|
|
mixCollapsedWidth: number;
|
|
|
|
/** Child menu width when the layout is 'vertical-mix' or 'horizontal-mix' */
|
|
|
|
mixChildMenuWidth: number;
|
|
|
|
};
|
|
|
|
/** Footer */
|
|
|
|
footer: {
|
|
|
|
/** Whether to show the footer */
|
|
|
|
visible: boolean;
|
|
|
|
/** Whether fixed the footer */
|
|
|
|
fixed: boolean;
|
|
|
|
/** Footer height */
|
|
|
|
height: number;
|
|
|
|
/** Whether float the footer to the right when the layout is 'horizontal-mix' */
|
|
|
|
right: boolean;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
interface OtherColor {
|
|
|
|
info: string;
|
|
|
|
success: string;
|
|
|
|
warning: string;
|
|
|
|
error: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
interface ThemeColor extends OtherColor {
|
|
|
|
primary: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
type ThemeColorKey = keyof ThemeColor;
|
|
|
|
|
|
|
|
type ThemePaletteColor = {
|
|
|
|
[key in ThemeColorKey | `${ThemeColorKey}-${ColorPaletteNumber}`]: string;
|
|
|
|
};
|
|
|
|
|
|
|
|
type BaseToken = Record<string, Record<string, string>>;
|
|
|
|
|
|
|
|
interface ThemeTokenColor extends ThemePaletteColor {
|
|
|
|
nprogress: string;
|
|
|
|
container: string;
|
|
|
|
layout: string;
|
|
|
|
inverted: string;
|
|
|
|
base_text: string;
|
|
|
|
[key: string]: string;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/** Global namespace */
|
|
|
|
namespace Global {
|
|
|
|
type VNode = import('vue').VNode;
|
|
|
|
type RouteLocationNormalizedLoaded = import('vue-router').RouteLocationNormalizedLoaded;
|
|
|
|
type RouteKey = import('@elegant-router/types').RouteKey;
|
|
|
|
type RouteMap = import('@elegant-router/types').RouteMap;
|
|
|
|
type RoutePath = import('@elegant-router/types').RoutePath;
|
|
|
|
type LastLevelRouteKey = import('@elegant-router/types').LastLevelRouteKey;
|
|
|
|
|
|
|
|
/** The global header props */
|
|
|
|
interface HeaderProps {
|
|
|
|
/** Whether to show the logo */
|
|
|
|
showLogo?: boolean;
|
|
|
|
/** Whether to show the menu toggler */
|
|
|
|
showMenuToggler?: boolean;
|
|
|
|
/** Whether to show the menu */
|
|
|
|
showMenu?: boolean;
|
|
|
|
}
|
|
|
|
|
|
|
|
/** The global menu */
|
|
|
|
interface Menu {
|
|
|
|
/**
|
|
|
|
* The menu key
|
|
|
|
*
|
|
|
|
* Equal to the route key
|
|
|
|
*/
|
|
|
|
key: string;
|
|
|
|
/** The menu label */
|
|
|
|
label: string;
|
|
|
|
/** The menu i18n key */
|
|
|
|
i18nKey?: I18n.I18nKey;
|
|
|
|
/** The route key */
|
|
|
|
routeKey: RouteKey;
|
|
|
|
/** The route path */
|
|
|
|
routePath: RoutePath;
|
|
|
|
/** The menu icon */
|
|
|
|
icon?: () => VNode;
|
|
|
|
/** The menu children */
|
|
|
|
children?: Menu[];
|
|
|
|
}
|
|
|
|
|
2024-03-21 10:57:53 +08:00
|
|
|
type Breadcrumb = Omit<Menu, 'children'> & {
|
|
|
|
options?: Breadcrumb[];
|
|
|
|
};
|
|
|
|
|
2024-03-08 17:59:45 +08:00
|
|
|
/** Tab route */
|
|
|
|
type TabRoute = Pick<RouteLocationNormalizedLoaded, 'name' | 'path' | 'meta'> &
|
2024-03-21 10:57:53 +08:00
|
|
|
Partial<Pick<RouteLocationNormalizedLoaded, 'fullPath' | 'query' | 'matched'>>;
|
2024-03-08 17:59:45 +08:00
|
|
|
|
|
|
|
/** The global tab */
|
|
|
|
type Tab = {
|
|
|
|
/** The tab id */
|
|
|
|
id: string;
|
|
|
|
/** The tab label */
|
|
|
|
label: string;
|
|
|
|
/**
|
|
|
|
* The new tab label
|
|
|
|
*
|
|
|
|
* If set, the tab label will be replaced by this value
|
|
|
|
*/
|
|
|
|
newLabel?: string;
|
|
|
|
/**
|
|
|
|
* The old tab label
|
|
|
|
*
|
|
|
|
* when reset the tab label, the tab label will be replaced by this value
|
|
|
|
*/
|
|
|
|
oldLabel?: string;
|
|
|
|
/** The tab route key */
|
|
|
|
routeKey: LastLevelRouteKey;
|
|
|
|
/** The tab route path */
|
|
|
|
routePath: RouteMap[LastLevelRouteKey];
|
|
|
|
/** The tab route full path */
|
|
|
|
fullPath: string;
|
|
|
|
/** The tab fixed index */
|
|
|
|
fixedIndex?: number;
|
|
|
|
/**
|
|
|
|
* Tab icon
|
|
|
|
*
|
|
|
|
* Iconify icon
|
|
|
|
*/
|
|
|
|
icon?: string;
|
|
|
|
/**
|
|
|
|
* Tab local icon
|
|
|
|
*
|
|
|
|
* Local icon
|
|
|
|
*/
|
|
|
|
localIcon?: string;
|
|
|
|
/** I18n key */
|
|
|
|
i18nKey?: I18n.I18nKey;
|
|
|
|
};
|
|
|
|
|
|
|
|
/** Form rule */
|
2024-03-21 10:57:53 +08:00
|
|
|
type FormRule = import('naive-ui').FormItemRule;
|
2024-03-08 17:59:45 +08:00
|
|
|
|
|
|
|
/** The global dropdown key */
|
|
|
|
type DropdownKey = 'closeCurrent' | 'closeOther' | 'closeLeft' | 'closeRight' | 'closeAll';
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* I18n namespace
|
|
|
|
*
|
|
|
|
* Locales type
|
|
|
|
*/
|
|
|
|
namespace I18n {
|
|
|
|
type RouteKey = import('@elegant-router/types').RouteKey;
|
|
|
|
|
|
|
|
type LangType = 'en-US' | 'zh-CN';
|
|
|
|
|
|
|
|
type LangOption = {
|
|
|
|
label: string;
|
|
|
|
key: LangType;
|
|
|
|
};
|
|
|
|
|
|
|
|
type I18nRouteKey = Exclude<RouteKey, 'root' | 'not-found'>;
|
|
|
|
|
|
|
|
type FormMsg = {
|
|
|
|
required: string;
|
|
|
|
invalid: string;
|
|
|
|
};
|
|
|
|
|
|
|
|
type Schema = {
|
|
|
|
system: {
|
|
|
|
title: string;
|
2024-03-22 11:22:07 +08:00
|
|
|
desc: string;
|
2024-03-08 17:59:45 +08:00
|
|
|
};
|
|
|
|
common: {
|
2024-03-21 10:57:53 +08:00
|
|
|
action: string;
|
2024-03-08 17:59:45 +08:00
|
|
|
add: string;
|
2024-04-21 22:03:04 +08:00
|
|
|
batchAdd: string;
|
2024-03-08 17:59:45 +08:00
|
|
|
addSuccess: string;
|
2024-03-21 10:57:53 +08:00
|
|
|
backToHome: string;
|
2024-03-08 17:59:45 +08:00
|
|
|
batchDelete: string;
|
|
|
|
cancel: string;
|
2024-03-21 10:57:53 +08:00
|
|
|
close: string;
|
|
|
|
check: string;
|
|
|
|
columnSetting: string;
|
2024-03-26 11:47:11 +08:00
|
|
|
config: string;
|
2024-03-21 10:57:53 +08:00
|
|
|
confirm: string;
|
2024-04-10 10:29:36 +08:00
|
|
|
save: string;
|
2024-03-21 10:57:53 +08:00
|
|
|
delete: string;
|
2024-04-26 10:43:59 +08:00
|
|
|
rollback: string;
|
2024-03-21 10:57:53 +08:00
|
|
|
deleteSuccess: string;
|
|
|
|
confirmDelete: string;
|
|
|
|
edit: string;
|
2024-04-25 18:31:38 +08:00
|
|
|
detail: string;
|
2024-03-21 10:57:53 +08:00
|
|
|
index: string;
|
|
|
|
keywordSearch: string;
|
2024-03-08 17:59:45 +08:00
|
|
|
logout: string;
|
|
|
|
logoutConfirm: string;
|
2024-03-21 10:57:53 +08:00
|
|
|
lookForward: string;
|
|
|
|
modify: string;
|
|
|
|
modifySuccess: string;
|
|
|
|
noData: string;
|
|
|
|
operate: string;
|
|
|
|
pleaseCheckValue: string;
|
|
|
|
refresh: string;
|
|
|
|
reset: string;
|
|
|
|
search: string;
|
|
|
|
switch: string;
|
|
|
|
tip: string;
|
2024-03-26 11:47:11 +08:00
|
|
|
trigger: string;
|
2024-03-21 10:57:53 +08:00
|
|
|
update: string;
|
|
|
|
updateSuccess: string;
|
2024-04-21 22:03:04 +08:00
|
|
|
updateFailed: string;
|
2024-03-21 10:57:53 +08:00
|
|
|
userCenter: string;
|
2024-03-22 11:22:07 +08:00
|
|
|
success: string;
|
|
|
|
fail: string;
|
|
|
|
stop: string;
|
2024-04-21 23:55:16 +08:00
|
|
|
execute: string;
|
|
|
|
resume: string;
|
|
|
|
pause: string;
|
|
|
|
finish: string;
|
2024-03-22 11:22:07 +08:00
|
|
|
running: string;
|
2024-04-25 23:45:29 +08:00
|
|
|
executeSuccess: string;
|
|
|
|
executeFailed: string;
|
2024-04-21 23:55:16 +08:00
|
|
|
confirmExecute: string;
|
|
|
|
confirmResume: string;
|
|
|
|
confirmPause: string;
|
|
|
|
confirmFinish: string;
|
2024-03-21 10:57:53 +08:00
|
|
|
yesOrNo: {
|
|
|
|
yes: string;
|
|
|
|
no: string;
|
|
|
|
};
|
2024-04-19 18:26:12 +08:00
|
|
|
systemTaskType: {
|
|
|
|
retry: string;
|
|
|
|
callback: string;
|
|
|
|
job: string;
|
|
|
|
workflow: string;
|
|
|
|
};
|
2024-04-24 21:44:33 +08:00
|
|
|
routeKey: {
|
|
|
|
routeLabel: string;
|
|
|
|
routeForm: string;
|
|
|
|
items: {
|
|
|
|
consistentHash: string;
|
|
|
|
random: string;
|
|
|
|
lru: string;
|
|
|
|
round: string;
|
|
|
|
};
|
|
|
|
};
|
2024-04-25 02:01:38 +08:00
|
|
|
blockStrategy: {
|
|
|
|
label: string;
|
|
|
|
form: string;
|
|
|
|
items: {
|
|
|
|
discard: string;
|
|
|
|
overwrite: string;
|
|
|
|
parallel: string;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
executorType: {
|
|
|
|
label: string;
|
|
|
|
form: string;
|
|
|
|
items: {
|
|
|
|
java: string;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
taskType: {
|
|
|
|
label: string;
|
|
|
|
form: string;
|
|
|
|
items: {
|
|
|
|
cluster: string;
|
|
|
|
broadcast: string;
|
|
|
|
slice: string;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
triggerType: {
|
|
|
|
label: string;
|
|
|
|
form: string;
|
|
|
|
items: {
|
|
|
|
cron: string;
|
|
|
|
fixed: string;
|
|
|
|
workflow: string;
|
|
|
|
};
|
|
|
|
};
|
2024-04-24 21:44:33 +08:00
|
|
|
taskBatchStatus: {
|
|
|
|
label: string;
|
|
|
|
form: string;
|
|
|
|
items: {
|
|
|
|
waiting: string;
|
|
|
|
running: string;
|
|
|
|
success: string;
|
|
|
|
fail: string;
|
|
|
|
stop: string;
|
|
|
|
cancel: string;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
jobOperationReason: {
|
|
|
|
label: string;
|
|
|
|
form: string;
|
|
|
|
items: {
|
|
|
|
none: string;
|
|
|
|
taskExecutionTimeout: string;
|
|
|
|
notClient: string;
|
|
|
|
closed: string;
|
|
|
|
discard: string;
|
|
|
|
overlay: string;
|
|
|
|
notExecutionTask: string;
|
|
|
|
taskExecutionError: string;
|
|
|
|
mannerStop: string;
|
|
|
|
workflowConditionNodeExecutionError: string;
|
|
|
|
jobTaskInterrupted: string;
|
|
|
|
workflowCallbackNodeExecutionError: string;
|
|
|
|
workflowNodeNoRequired: string;
|
|
|
|
workflowNodeClosedSkipExecution: string;
|
|
|
|
workflowDecisionFailed: string;
|
|
|
|
};
|
|
|
|
};
|
2024-03-08 17:59:45 +08:00
|
|
|
};
|
2024-03-26 11:47:11 +08:00
|
|
|
request: {
|
|
|
|
logout: string;
|
|
|
|
logoutMsg: string;
|
|
|
|
logoutWithModal: string;
|
|
|
|
logoutWithModalMsg: string;
|
|
|
|
refreshToken: string;
|
|
|
|
tokenExpired: string;
|
|
|
|
};
|
2024-03-08 17:59:45 +08:00
|
|
|
theme: {
|
|
|
|
themeSchema: { title: string } & Record<UnionKey.ThemeScheme, string>;
|
|
|
|
layoutMode: { title: string } & Record<UnionKey.ThemeLayoutMode, string>;
|
|
|
|
themeColor: {
|
|
|
|
title: string;
|
|
|
|
followPrimary: string;
|
|
|
|
} & Theme.ThemeColor;
|
|
|
|
scrollMode: { title: string } & Record<UnionKey.ThemeScrollMode, string>;
|
|
|
|
page: {
|
|
|
|
animate: string;
|
|
|
|
mode: { title: string } & Record<UnionKey.ThemePageAnimateMode, string>;
|
|
|
|
};
|
|
|
|
fixedHeaderAndTab: string;
|
|
|
|
header: {
|
|
|
|
height: string;
|
|
|
|
breadcrumb: {
|
|
|
|
visible: string;
|
|
|
|
showIcon: string;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
tab: {
|
|
|
|
visible: string;
|
|
|
|
cache: string;
|
|
|
|
height: string;
|
|
|
|
mode: { title: string } & Record<UnionKey.ThemeTabMode, string>;
|
|
|
|
};
|
|
|
|
sider: {
|
|
|
|
inverted: string;
|
|
|
|
width: string;
|
|
|
|
collapsedWidth: string;
|
|
|
|
mixWidth: string;
|
|
|
|
mixCollapsedWidth: string;
|
|
|
|
mixChildMenuWidth: string;
|
|
|
|
};
|
|
|
|
footer: {
|
|
|
|
visible: string;
|
|
|
|
fixed: string;
|
|
|
|
height: string;
|
|
|
|
right: string;
|
|
|
|
};
|
|
|
|
themeDrawerTitle: string;
|
|
|
|
pageFunTitle: string;
|
|
|
|
configOperation: {
|
|
|
|
copyConfig: string;
|
|
|
|
copySuccessMsg: string;
|
|
|
|
resetConfig: string;
|
|
|
|
resetSuccessMsg: string;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
route: Record<I18nRouteKey, string>;
|
|
|
|
page: {
|
2024-04-03 16:33:18 +08:00
|
|
|
common: {
|
|
|
|
upadteTime: string;
|
|
|
|
createTime: string;
|
|
|
|
};
|
2024-03-08 17:59:45 +08:00
|
|
|
login: {
|
|
|
|
common: {
|
|
|
|
loginOrRegister: string;
|
|
|
|
userNamePlaceholder: string;
|
|
|
|
phonePlaceholder: string;
|
|
|
|
codePlaceholder: string;
|
|
|
|
passwordPlaceholder: string;
|
|
|
|
confirmPasswordPlaceholder: string;
|
|
|
|
codeLogin: string;
|
2024-03-22 11:22:07 +08:00
|
|
|
login: string;
|
2024-03-08 17:59:45 +08:00
|
|
|
confirm: string;
|
|
|
|
back: string;
|
|
|
|
validateSuccess: string;
|
|
|
|
loginSuccess: string;
|
|
|
|
welcomeBack: string;
|
|
|
|
};
|
|
|
|
pwdLogin: {
|
|
|
|
title: string;
|
|
|
|
rememberMe: string;
|
|
|
|
forgetPassword: string;
|
|
|
|
register: string;
|
|
|
|
otherAccountLogin: string;
|
|
|
|
otherLoginMode: string;
|
|
|
|
superAdmin: string;
|
|
|
|
admin: string;
|
|
|
|
user: string;
|
|
|
|
};
|
|
|
|
codeLogin: {
|
|
|
|
title: string;
|
|
|
|
getCode: string;
|
2024-03-26 11:47:11 +08:00
|
|
|
reGetCode: string;
|
|
|
|
sendCodeSuccess: string;
|
2024-03-08 17:59:45 +08:00
|
|
|
imageCodePlaceholder: string;
|
|
|
|
};
|
|
|
|
register: {
|
|
|
|
title: string;
|
|
|
|
agreement: string;
|
|
|
|
protocol: string;
|
|
|
|
policy: string;
|
|
|
|
};
|
|
|
|
resetPwd: {
|
|
|
|
title: string;
|
|
|
|
};
|
|
|
|
bindWeChat: {
|
|
|
|
title: string;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
about: {
|
|
|
|
title: string;
|
|
|
|
introduction: string;
|
|
|
|
projectInfo: {
|
|
|
|
title: string;
|
|
|
|
version: string;
|
|
|
|
latestBuildTime: string;
|
|
|
|
githubLink: string;
|
|
|
|
previewLink: string;
|
|
|
|
};
|
|
|
|
prdDep: string;
|
|
|
|
devDep: string;
|
|
|
|
};
|
|
|
|
home: {
|
2024-03-22 11:22:07 +08:00
|
|
|
Greeting: string;
|
|
|
|
morningGreeting: string;
|
|
|
|
bthGreeting: string;
|
|
|
|
noonGreeting: string;
|
|
|
|
athGreeting: string;
|
|
|
|
duskGreeting: string;
|
|
|
|
eveningGreeting: string;
|
|
|
|
earlyMorningGreeting: string;
|
2024-03-26 11:47:11 +08:00
|
|
|
weatherDesc: string;
|
2024-03-22 11:22:07 +08:00
|
|
|
retryTaskCount: string;
|
|
|
|
jobTaskCount: string;
|
|
|
|
userCount: string;
|
|
|
|
retryTask: string;
|
2024-04-26 10:43:59 +08:00
|
|
|
retryDeadLetter: string;
|
2024-03-22 11:22:07 +08:00
|
|
|
retryTaskTip: string;
|
|
|
|
jobTask: string;
|
2024-04-26 01:06:58 +08:00
|
|
|
jobBatch: string;
|
2024-03-22 11:22:07 +08:00
|
|
|
jobTaskTip: string;
|
|
|
|
onlineServiceCount: string;
|
|
|
|
onlineServiceTip: string;
|
|
|
|
workflow: string;
|
|
|
|
workflowTip: string;
|
2024-03-08 17:59:45 +08:00
|
|
|
projectCount: string;
|
|
|
|
todo: string;
|
|
|
|
message: string;
|
|
|
|
downloadCount: string;
|
|
|
|
registerCount: string;
|
|
|
|
schedule: string;
|
|
|
|
study: string;
|
|
|
|
work: string;
|
|
|
|
rest: string;
|
|
|
|
entertainment: string;
|
|
|
|
visitCount: string;
|
|
|
|
turnover: string;
|
|
|
|
dealCount: string;
|
2024-04-12 23:46:09 +08:00
|
|
|
retryTab: {
|
|
|
|
params: {
|
|
|
|
day: string;
|
|
|
|
week: string;
|
|
|
|
month: string;
|
|
|
|
year: string;
|
|
|
|
};
|
|
|
|
rank: {
|
|
|
|
title: string;
|
|
|
|
};
|
|
|
|
task: {
|
|
|
|
title: string;
|
|
|
|
groupName: string;
|
|
|
|
run: string;
|
|
|
|
total: string;
|
|
|
|
};
|
|
|
|
pie: {
|
|
|
|
title: string;
|
|
|
|
};
|
|
|
|
};
|
2024-03-08 17:59:45 +08:00
|
|
|
projectNews: {
|
|
|
|
title: string;
|
|
|
|
moreNews: string;
|
|
|
|
desc1: string;
|
|
|
|
desc2: string;
|
|
|
|
desc3: string;
|
|
|
|
desc4: string;
|
|
|
|
desc5: string;
|
|
|
|
};
|
|
|
|
creativity: string;
|
|
|
|
};
|
2024-03-30 17:07:04 +08:00
|
|
|
pods: {
|
|
|
|
title: string;
|
|
|
|
nodeType: string;
|
|
|
|
groupName: string;
|
|
|
|
hostId: string;
|
|
|
|
hostIp: string;
|
|
|
|
hostPort: string;
|
|
|
|
consumerBuckets: string;
|
|
|
|
updateDt: string;
|
|
|
|
contextPath: string;
|
|
|
|
form: {
|
|
|
|
groupName: string;
|
|
|
|
};
|
|
|
|
type: {
|
|
|
|
client: string;
|
|
|
|
server: string;
|
|
|
|
};
|
|
|
|
};
|
2024-04-03 16:33:18 +08:00
|
|
|
namespace: {
|
|
|
|
title: string;
|
|
|
|
name: string;
|
|
|
|
keyword: string;
|
|
|
|
uniqueId: string;
|
|
|
|
form: {
|
|
|
|
name: string;
|
|
|
|
keyword: string;
|
|
|
|
uniqueId: string;
|
|
|
|
};
|
|
|
|
addNamespace: string;
|
|
|
|
editNamespace: string;
|
|
|
|
};
|
2024-04-17 23:48:25 +08:00
|
|
|
groupConfig: {
|
|
|
|
title: string;
|
|
|
|
namespaceId: string;
|
|
|
|
groupName: string;
|
|
|
|
description: string;
|
2024-04-20 16:34:30 +08:00
|
|
|
token: string;
|
2024-04-17 23:48:25 +08:00
|
|
|
groupStatus: string;
|
|
|
|
version: string;
|
|
|
|
groupPartition: string;
|
|
|
|
idGeneratorMode: string;
|
|
|
|
initScene: string;
|
|
|
|
bucketIndex: string;
|
|
|
|
updateDt: string;
|
|
|
|
form: {
|
|
|
|
groupName: string;
|
2024-04-20 16:34:30 +08:00
|
|
|
token: string;
|
|
|
|
groupStatus: string;
|
|
|
|
description: string;
|
|
|
|
groupPartition: string;
|
|
|
|
idGeneratorMode: string;
|
|
|
|
initScene: string;
|
|
|
|
// bucketIndex: string;
|
2024-04-17 23:48:25 +08:00
|
|
|
};
|
|
|
|
idMode: {
|
|
|
|
idWorker: string;
|
|
|
|
segment: string;
|
|
|
|
};
|
|
|
|
addGroupConfig: string;
|
|
|
|
editGroupConfig: string;
|
|
|
|
};
|
2024-03-08 17:59:45 +08:00
|
|
|
function: {
|
|
|
|
tab: {
|
|
|
|
tabOperate: {
|
|
|
|
title: string;
|
|
|
|
addTab: string;
|
|
|
|
addTabDesc: string;
|
|
|
|
closeTab: string;
|
|
|
|
closeCurrentTab: string;
|
|
|
|
closeAboutTab: string;
|
|
|
|
addMultiTab: string;
|
|
|
|
addMultiTabDesc1: string;
|
|
|
|
addMultiTabDesc2: string;
|
|
|
|
};
|
|
|
|
tabTitle: {
|
|
|
|
title: string;
|
|
|
|
changeTitle: string;
|
|
|
|
change: string;
|
|
|
|
resetTitle: string;
|
|
|
|
reset: string;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
multiTab: {
|
|
|
|
routeParam: string;
|
|
|
|
backTab: string;
|
|
|
|
};
|
2024-03-26 11:47:11 +08:00
|
|
|
toggleAuth: {
|
|
|
|
toggleAccount: string;
|
|
|
|
authHook: string;
|
|
|
|
superAdminVisible: string;
|
|
|
|
adminVisible: string;
|
|
|
|
adminOrUserVisible: string;
|
|
|
|
};
|
2024-03-08 17:59:45 +08:00
|
|
|
};
|
2024-03-21 10:57:53 +08:00
|
|
|
manage: {
|
|
|
|
common: {
|
|
|
|
status: {
|
|
|
|
enable: string;
|
|
|
|
disable: string;
|
|
|
|
};
|
|
|
|
};
|
2024-03-22 11:22:07 +08:00
|
|
|
machine: {
|
|
|
|
type: {
|
|
|
|
client: string;
|
|
|
|
server: string;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
retryTask: {
|
|
|
|
status: {
|
|
|
|
maxRetryTimes: string;
|
|
|
|
pauseRetry: string;
|
|
|
|
};
|
|
|
|
};
|
2024-03-21 10:57:53 +08:00
|
|
|
role: {
|
|
|
|
title: string;
|
|
|
|
roleName: string;
|
|
|
|
roleCode: string;
|
|
|
|
roleStatus: string;
|
|
|
|
roleDesc: string;
|
|
|
|
form: {
|
|
|
|
roleName: string;
|
|
|
|
roleCode: string;
|
|
|
|
roleStatus: string;
|
|
|
|
roleDesc: string;
|
|
|
|
};
|
|
|
|
addRole: string;
|
|
|
|
editRole: string;
|
2024-03-26 11:47:11 +08:00
|
|
|
menuAuth: string;
|
|
|
|
buttonAuth: string;
|
2024-03-21 10:57:53 +08:00
|
|
|
};
|
|
|
|
user: {
|
|
|
|
title: string;
|
|
|
|
userName: string;
|
|
|
|
userGender: string;
|
|
|
|
nickName: string;
|
|
|
|
userPhone: string;
|
|
|
|
userEmail: string;
|
|
|
|
userStatus: string;
|
|
|
|
userRole: string;
|
|
|
|
form: {
|
|
|
|
userName: string;
|
|
|
|
userGender: string;
|
|
|
|
nickName: string;
|
|
|
|
userPhone: string;
|
|
|
|
userEmail: string;
|
|
|
|
userStatus: string;
|
|
|
|
userRole: string;
|
|
|
|
};
|
|
|
|
addUser: string;
|
|
|
|
editUser: string;
|
|
|
|
gender: {
|
|
|
|
male: string;
|
|
|
|
female: string;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
menu: {
|
2024-03-26 11:47:11 +08:00
|
|
|
home: string;
|
2024-03-21 10:57:53 +08:00
|
|
|
title: string;
|
|
|
|
id: string;
|
|
|
|
parentId: string;
|
|
|
|
menuType: string;
|
|
|
|
menuName: string;
|
|
|
|
routeName: string;
|
|
|
|
routePath: string;
|
2024-03-26 11:47:11 +08:00
|
|
|
routeParams: string;
|
2024-03-21 10:57:53 +08:00
|
|
|
layout: string;
|
2024-03-26 11:47:11 +08:00
|
|
|
page: string;
|
2024-03-21 10:57:53 +08:00
|
|
|
i18nKey: string;
|
|
|
|
icon: string;
|
|
|
|
localIcon: string;
|
|
|
|
iconTypeTitle: string;
|
|
|
|
order: string;
|
|
|
|
keepAlive: string;
|
|
|
|
href: string;
|
|
|
|
hideInMenu: string;
|
|
|
|
activeMenu: string;
|
|
|
|
multiTab: string;
|
|
|
|
fixedIndexInTab: string;
|
|
|
|
button: string;
|
|
|
|
buttonCode: string;
|
|
|
|
buttonDesc: string;
|
|
|
|
menuStatus: string;
|
|
|
|
form: {
|
2024-03-26 11:47:11 +08:00
|
|
|
home: string;
|
2024-03-21 10:57:53 +08:00
|
|
|
menuType: string;
|
|
|
|
menuName: string;
|
|
|
|
routeName: string;
|
|
|
|
routePath: string;
|
|
|
|
layout: string;
|
2024-03-26 11:47:11 +08:00
|
|
|
page: string;
|
2024-03-21 10:57:53 +08:00
|
|
|
i18nKey: string;
|
|
|
|
icon: string;
|
|
|
|
localIcon: string;
|
|
|
|
order: string;
|
|
|
|
keepAlive: string;
|
|
|
|
href: string;
|
|
|
|
hideInMenu: string;
|
|
|
|
activeMenu: string;
|
|
|
|
multiTab: string;
|
|
|
|
fixedInTab: string;
|
|
|
|
fixedIndexInTab: string;
|
|
|
|
button: string;
|
|
|
|
buttonCode: string;
|
|
|
|
buttonDesc: string;
|
|
|
|
menuStatus: string;
|
|
|
|
};
|
|
|
|
addMenu: string;
|
|
|
|
editMenu: string;
|
|
|
|
addChildMenu: string;
|
|
|
|
type: {
|
|
|
|
directory: string;
|
|
|
|
menu: string;
|
|
|
|
};
|
|
|
|
iconType: {
|
|
|
|
iconify: string;
|
|
|
|
local: string;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2024-04-17 16:37:30 +08:00
|
|
|
notifyConfig: {
|
|
|
|
title: string;
|
|
|
|
groupName: string;
|
|
|
|
businessName: string;
|
|
|
|
notifyStatus: string;
|
|
|
|
notifyType: string;
|
|
|
|
notifyScene: string;
|
|
|
|
notifyThreshold: string;
|
|
|
|
description: string;
|
|
|
|
notifyAttribute: string;
|
|
|
|
form: {
|
|
|
|
businessId: string;
|
|
|
|
description: string;
|
|
|
|
notifyType: string;
|
|
|
|
notifyAttribute: string;
|
|
|
|
notifyScene: string;
|
|
|
|
groupName: string;
|
|
|
|
notifyThreshold: string;
|
|
|
|
notifyStatus: string;
|
2024-04-19 18:26:12 +08:00
|
|
|
systemTaskType: string;
|
2024-04-20 11:40:29 +08:00
|
|
|
notifyRecipient: string;
|
|
|
|
rateLimiterThreshold: string;
|
2024-04-17 16:37:30 +08:00
|
|
|
};
|
|
|
|
addNotifyConfig: string;
|
|
|
|
editNotifyConfig: string;
|
2024-04-19 18:26:12 +08:00
|
|
|
systemTaskType: string;
|
|
|
|
retryNotifyScene: {
|
|
|
|
maxRetry: string;
|
|
|
|
maxRetryError: string;
|
|
|
|
clientReportError: string;
|
|
|
|
clientComponentError: string;
|
|
|
|
retryTaskReachThreshold: string;
|
|
|
|
retryTaskEnterDeadLetter: string;
|
|
|
|
};
|
|
|
|
jobNotifyScene: {
|
|
|
|
jobTaskError: string;
|
|
|
|
};
|
2024-04-20 11:40:29 +08:00
|
|
|
notifyRecipient: string;
|
|
|
|
rateLimiterStatus: string;
|
|
|
|
rateLimiterThreshold: string;
|
2024-04-17 16:37:30 +08:00
|
|
|
};
|
2024-04-17 23:20:57 +08:00
|
|
|
notifyRecipient: {
|
|
|
|
title: string;
|
|
|
|
recipientName: string;
|
|
|
|
notifyType: string;
|
|
|
|
notifyAttribute: string;
|
|
|
|
description: string;
|
|
|
|
form: {
|
|
|
|
description: string;
|
|
|
|
notifyAttribute: string;
|
|
|
|
recipientName: string;
|
|
|
|
notifyType: string;
|
2024-04-19 12:33:18 +08:00
|
|
|
dingDingAts: string;
|
|
|
|
weComAts: string;
|
2024-04-18 16:36:11 +08:00
|
|
|
larkAts: string;
|
|
|
|
webhookUrl: string;
|
2024-04-17 23:20:57 +08:00
|
|
|
};
|
|
|
|
addNotifyRecipient: string;
|
|
|
|
editNotifyRecipient: string;
|
2024-04-18 16:36:11 +08:00
|
|
|
ats: string;
|
|
|
|
webhookUrl: string;
|
2024-04-18 18:18:02 +08:00
|
|
|
tos: string;
|
2024-04-19 12:33:18 +08:00
|
|
|
dingDing: string;
|
|
|
|
email: string;
|
|
|
|
weCom: string;
|
|
|
|
lark: string;
|
2024-04-17 23:20:57 +08:00
|
|
|
};
|
2024-04-26 10:43:59 +08:00
|
|
|
retryDeadLetter: {
|
|
|
|
title: string;
|
|
|
|
uniqueId: string;
|
|
|
|
groupName: string;
|
|
|
|
sceneName: string;
|
|
|
|
idempotentId: string;
|
|
|
|
bizNo: string;
|
|
|
|
taskType: string;
|
|
|
|
createDt: string;
|
|
|
|
form: {
|
|
|
|
title: string;
|
|
|
|
uniqueId: string;
|
|
|
|
groupName: string;
|
|
|
|
sceneName: string;
|
|
|
|
idempotentId: string;
|
|
|
|
bizNo: string;
|
|
|
|
taskType: string;
|
|
|
|
createDt: string;
|
|
|
|
};
|
|
|
|
};
|
2024-04-21 12:45:12 +08:00
|
|
|
retryTask: {
|
|
|
|
title: string;
|
|
|
|
uniqueId: string;
|
|
|
|
groupName: string;
|
|
|
|
sceneName: string;
|
|
|
|
idempotentId: string;
|
|
|
|
bizNo: string;
|
|
|
|
executorName: string;
|
|
|
|
argsStr: string;
|
|
|
|
nextTriggerAt: string;
|
|
|
|
retryCount: string;
|
|
|
|
retryStatus: string;
|
|
|
|
taskType: string;
|
|
|
|
form: {
|
|
|
|
retryStatus: string;
|
|
|
|
bizNo: string;
|
|
|
|
uniqueId: string;
|
|
|
|
groupName: string;
|
|
|
|
argsStr: string;
|
|
|
|
sceneName: string;
|
|
|
|
executorName: string;
|
|
|
|
taskType: string;
|
|
|
|
idempotentId: string;
|
2024-04-21 22:03:04 +08:00
|
|
|
logStr: string;
|
2024-04-21 12:45:12 +08:00
|
|
|
};
|
|
|
|
retryStatusType: {
|
|
|
|
retrying: string;
|
|
|
|
finished: string;
|
|
|
|
maxRetry: string;
|
|
|
|
paused: string;
|
|
|
|
};
|
|
|
|
taskTypeDict: {
|
|
|
|
retry: string;
|
|
|
|
callback: string;
|
|
|
|
};
|
|
|
|
generateIdempotentId: string;
|
|
|
|
addRetryTask: string;
|
|
|
|
editRetryTask: string;
|
2024-04-21 22:03:04 +08:00
|
|
|
batchAddRetryTask: string;
|
2024-04-21 12:45:12 +08:00
|
|
|
};
|
2024-04-20 22:36:09 +08:00
|
|
|
retryScene: {
|
|
|
|
title: string;
|
|
|
|
groupName: string;
|
|
|
|
sceneName: string;
|
|
|
|
sceneStatus: string;
|
|
|
|
backOff: string;
|
|
|
|
maxRetryCount: string;
|
|
|
|
triggerInterval: string;
|
|
|
|
deadlineRequest: string;
|
|
|
|
executorTimeout: string;
|
|
|
|
createDt: string;
|
|
|
|
updateDt: string;
|
|
|
|
description: string;
|
|
|
|
routeKey: string;
|
|
|
|
form: {
|
|
|
|
maxRetryCount: string;
|
|
|
|
triggerInterval: string;
|
|
|
|
groupName: string;
|
|
|
|
description: string;
|
|
|
|
executorTimeout: string;
|
|
|
|
sceneName: string;
|
|
|
|
sceneStatus: string;
|
|
|
|
deadlineRequest: string;
|
|
|
|
routeKey: string;
|
|
|
|
backOff: string;
|
2024-04-21 17:54:48 +08:00
|
|
|
sceneName2: string;
|
2024-04-20 22:36:09 +08:00
|
|
|
};
|
|
|
|
addScene: string;
|
|
|
|
editScene: string;
|
2024-04-21 09:47:13 +08:00
|
|
|
backOffItem: {
|
|
|
|
delayLevel: string;
|
|
|
|
fixed: string;
|
|
|
|
cron: string;
|
|
|
|
random: string;
|
|
|
|
};
|
2024-04-20 22:36:09 +08:00
|
|
|
};
|
2024-04-24 23:31:51 +08:00
|
|
|
retryLog: {
|
|
|
|
title: string;
|
|
|
|
UniqueId: string;
|
|
|
|
groupName: string;
|
|
|
|
sceneName: string;
|
|
|
|
retryStatus: string;
|
|
|
|
taskType: string;
|
|
|
|
idempotentId: string;
|
|
|
|
bizNo: string;
|
|
|
|
createDt: string;
|
|
|
|
form: {
|
|
|
|
groupName: string;
|
|
|
|
idempotentId: string;
|
|
|
|
sceneName: string;
|
|
|
|
bizNo: string;
|
|
|
|
UniqueId: string;
|
|
|
|
};
|
|
|
|
addRetryLog: string;
|
|
|
|
editRetryLog: string;
|
|
|
|
};
|
2024-04-22 17:12:45 +08:00
|
|
|
workflow: {
|
|
|
|
title: string;
|
|
|
|
workflowName: string;
|
|
|
|
groupName: string;
|
|
|
|
nextTriggerAt: string;
|
|
|
|
workflowStatus: string;
|
|
|
|
triggerType: string;
|
|
|
|
triggerInterval: string;
|
|
|
|
executorTimeout: string;
|
|
|
|
updateDt: string;
|
|
|
|
form: {
|
|
|
|
workflowName: string;
|
|
|
|
groupName: string;
|
|
|
|
workflowStatus: string;
|
|
|
|
};
|
|
|
|
addWorkflow: string;
|
|
|
|
editWorkflow: string;
|
|
|
|
};
|
2024-04-23 14:31:09 +08:00
|
|
|
workflowBatch: {
|
|
|
|
title: string;
|
|
|
|
workflowName: string;
|
|
|
|
groupName: string;
|
|
|
|
executionAt: string;
|
|
|
|
taskBatchStatus: string;
|
|
|
|
operationReason: string;
|
|
|
|
createDt: string;
|
|
|
|
form: {
|
|
|
|
workflowName: string;
|
|
|
|
taskBatchStatus: string;
|
|
|
|
groupName: string;
|
|
|
|
};
|
|
|
|
addWorkflowBatch: string;
|
|
|
|
editWorkflowBatch: string;
|
|
|
|
};
|
2024-04-22 23:58:22 +08:00
|
|
|
jobTask: {
|
|
|
|
title: string;
|
|
|
|
groupName: string;
|
|
|
|
jobName: string;
|
|
|
|
argsStr: string;
|
|
|
|
argsType: string;
|
|
|
|
nextTriggerAt: string;
|
|
|
|
jobStatus: string;
|
|
|
|
routeKey: string;
|
|
|
|
executorType: string;
|
2024-04-25 02:01:38 +08:00
|
|
|
executorInfo: string;
|
2024-04-22 23:58:22 +08:00
|
|
|
triggerType: string;
|
|
|
|
triggerInterval: string;
|
|
|
|
blockStrategy: string;
|
|
|
|
executorTimeout: string;
|
|
|
|
maxRetryTimes: string;
|
|
|
|
retryInterval: string;
|
|
|
|
taskType: string;
|
|
|
|
parallelNum: string;
|
|
|
|
bucketIndex: string;
|
|
|
|
description: string;
|
|
|
|
updateDt: string;
|
|
|
|
form: {
|
|
|
|
jobName: string;
|
|
|
|
jobStatus: string;
|
|
|
|
maxRetryTimes: string;
|
|
|
|
description: string;
|
|
|
|
triggerType: string;
|
|
|
|
executorTimeout: string;
|
|
|
|
triggerInterval: string;
|
2024-04-25 02:01:38 +08:00
|
|
|
triggerInterval_CRON: string;
|
2024-04-22 23:58:22 +08:00
|
|
|
taskType: string;
|
|
|
|
parallelNum: string;
|
|
|
|
bucketIndex: string;
|
|
|
|
executorType: string;
|
2024-04-25 02:01:38 +08:00
|
|
|
executorInfo: string;
|
2024-04-22 23:58:22 +08:00
|
|
|
routeKey: string;
|
|
|
|
blockStrategy: string;
|
|
|
|
argsType: string;
|
|
|
|
argsStr: string;
|
|
|
|
groupName: string;
|
|
|
|
retryInterval: string;
|
|
|
|
};
|
|
|
|
addJobTask: string;
|
|
|
|
editJobTask: string;
|
2024-04-24 21:44:33 +08:00
|
|
|
triggerTypeItem: {
|
|
|
|
fixed: string;
|
|
|
|
cron: string;
|
|
|
|
workflow: string;
|
|
|
|
};
|
2024-04-22 23:58:22 +08:00
|
|
|
};
|
2024-04-26 01:06:58 +08:00
|
|
|
jobBatch: {
|
|
|
|
title: string;
|
|
|
|
groupName: string;
|
|
|
|
jobName: string;
|
|
|
|
executionAt: string;
|
|
|
|
taskBatchStatus: string;
|
|
|
|
operationReason: string;
|
|
|
|
form: {
|
|
|
|
groupName: string;
|
|
|
|
jobName: string;
|
|
|
|
taskBatchStatus: string;
|
|
|
|
};
|
|
|
|
};
|
2024-03-08 17:59:45 +08:00
|
|
|
};
|
|
|
|
form: {
|
2024-03-21 10:57:53 +08:00
|
|
|
required: string;
|
2024-03-08 17:59:45 +08:00
|
|
|
userName: FormMsg;
|
|
|
|
phone: FormMsg;
|
|
|
|
pwd: FormMsg;
|
2024-03-26 11:47:11 +08:00
|
|
|
confirmPwd: FormMsg;
|
2024-03-08 17:59:45 +08:00
|
|
|
code: FormMsg;
|
|
|
|
email: FormMsg;
|
|
|
|
};
|
|
|
|
dropdown: Record<Global.DropdownKey, string>;
|
|
|
|
icon: {
|
|
|
|
themeConfig: string;
|
|
|
|
themeSchema: string;
|
|
|
|
lang: string;
|
|
|
|
fullscreen: string;
|
|
|
|
fullscreenExit: string;
|
2024-04-10 10:29:36 +08:00
|
|
|
magnify: string;
|
|
|
|
restore: string;
|
2024-03-08 17:59:45 +08:00
|
|
|
reload: string;
|
|
|
|
collapse: string;
|
|
|
|
expand: string;
|
|
|
|
pin: string;
|
|
|
|
unpin: string;
|
2024-04-23 14:31:09 +08:00
|
|
|
namespace: string;
|
2024-03-08 17:59:45 +08:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
type GetI18nKey<T extends Record<string, unknown>, K extends keyof T = keyof T> = K extends string
|
|
|
|
? T[K] extends Record<string, unknown>
|
|
|
|
? `${K}.${GetI18nKey<T[K]>}`
|
|
|
|
: K
|
|
|
|
: never;
|
|
|
|
|
|
|
|
type I18nKey = GetI18nKey<Schema>;
|
|
|
|
|
|
|
|
type TranslateOptions<Locales extends string> = import('vue-i18n').TranslateOptions<Locales>;
|
|
|
|
|
|
|
|
interface $T {
|
|
|
|
(key: I18nKey): string;
|
|
|
|
(key: I18nKey, plural: number, options?: TranslateOptions<LangType>): string;
|
2024-03-21 10:57:53 +08:00
|
|
|
(key: I18nKey, defaultMsg: string, options?: TranslateOptions<I18nKey>): string;
|
|
|
|
(key: I18nKey, list: unknown[], options?: TranslateOptions<I18nKey>): string;
|
2024-03-08 17:59:45 +08:00
|
|
|
(key: I18nKey, list: unknown[], plural: number): string;
|
|
|
|
(key: I18nKey, list: unknown[], defaultMsg: string): string;
|
|
|
|
(key: I18nKey, named: Record<string, unknown>, options?: TranslateOptions<LangType>): string;
|
|
|
|
(key: I18nKey, named: Record<string, unknown>, plural: number): string;
|
|
|
|
(key: I18nKey, named: Record<string, unknown>, defaultMsg: string): string;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/** Service namespace */
|
|
|
|
namespace Service {
|
|
|
|
/** Other baseURL key */
|
|
|
|
type OtherBaseURLKey = 'demo';
|
|
|
|
|
2024-03-21 10:57:53 +08:00
|
|
|
interface ServiceConfigItem {
|
2024-03-08 17:59:45 +08:00
|
|
|
/** The backend service base url */
|
|
|
|
baseURL: string;
|
2024-03-21 10:57:53 +08:00
|
|
|
/** The proxy pattern of the backend service base url */
|
|
|
|
proxyPattern: string;
|
2024-03-08 17:59:45 +08:00
|
|
|
}
|
|
|
|
|
2024-03-21 10:57:53 +08:00
|
|
|
interface OtherServiceConfigItem extends ServiceConfigItem {
|
|
|
|
key: OtherBaseURLKey;
|
|
|
|
}
|
|
|
|
|
|
|
|
/** The backend service config */
|
|
|
|
interface ServiceConfig extends ServiceConfigItem {
|
|
|
|
/** Other backend service config */
|
|
|
|
other: OtherServiceConfigItem[];
|
|
|
|
}
|
|
|
|
|
|
|
|
interface SimpleServiceConfig extends Pick<ServiceConfigItem, 'baseURL'> {
|
|
|
|
other: Record<OtherBaseURLKey, string>;
|
|
|
|
}
|
2024-03-08 17:59:45 +08:00
|
|
|
|
|
|
|
/** The backend service response data */
|
|
|
|
type Response<T = unknown> = {
|
|
|
|
/** The backend service response code */
|
2024-03-26 11:47:11 +08:00
|
|
|
status: string;
|
2024-03-08 17:59:45 +08:00
|
|
|
/** The backend service response message */
|
2024-03-21 11:53:27 +08:00
|
|
|
message: string;
|
2024-03-08 17:59:45 +08:00
|
|
|
/** The backend service response data */
|
|
|
|
data: T;
|
2024-03-30 17:07:04 +08:00
|
|
|
page?: number;
|
|
|
|
size?: number;
|
|
|
|
total?: number;
|
2024-03-08 17:59:45 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
/** The demo backend service response data */
|
|
|
|
type DemoResponse<T = unknown> = {
|
|
|
|
/** The backend service response code */
|
|
|
|
status: string;
|
|
|
|
/** The backend service response message */
|
|
|
|
message: string;
|
|
|
|
/** The backend service response data */
|
|
|
|
result: T;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|