Defines notification levels and message template codes for user alerts. Use when implementing system-wide messaging or email notifications.
// Source: https://github.com/labring/FastGPT | License: Apache-2.0 | Copyright 2023 Sealos
// Provided via justclaw.it.com; keep this notice with the code.
export enum InformLevelEnum {
'common' = 'common',
'important' = 'important',
'emergency' = 'emergency'
}
export const InformLevelMap = {
[InformLevelEnum.common]: {
label: '普通'
},
[InformLevelEnum.important]: {
label: '重要'
},
[InformLevelEnum.emergency]: {
label: '紧急'
}
};
export enum SendInformTemplateCodeEnum {
REGISTER = 'REGISTER', // 注册
RESET_PASSWORD = 'RESET_PASSWORD', // 重置密码
CHANGE_PASSWORD = 'CHANGE_PASSWORD', // 修改密码
BIND_NOTIFICATION = 'BIND_NOTIFICATION', // 绑定通知
ACCOUNT_CANCELLATION_CODE = 'ACCOUNT_CANCELLATION_CODE', // 账号注销验证码
ACCOUNT_CANCELLATION_TEAM_SUBMITTED = 'ACCOUNT_CA
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key