2024-07-14 16:30:33 +00:00
|
|
|
export class BaseSettings {
|
|
|
|
static __key__: string;
|
|
|
|
static __title__: string;
|
|
|
|
static __access__ = 'private';
|
|
|
|
|
|
|
|
static getCacheKey() {
|
|
|
|
return 'settings.' + this.__key__;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
export class SysPublicSettings extends BaseSettings {
|
|
|
|
static __key__ = 'sys.public';
|
|
|
|
static __title__ = '系统公共设置';
|
|
|
|
static __access__ = 'public';
|
|
|
|
registerEnabled = false;
|
2024-08-05 04:49:44 +00:00
|
|
|
managerOtherUserPipeline = false;
|
2024-09-20 07:15:24 +00:00
|
|
|
// triggerOnStartup = false;
|
2024-07-14 16:30:33 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
export class SysPrivateSettings extends BaseSettings {
|
|
|
|
static __title__ = '系统私有设置';
|
|
|
|
static __access__ = 'private';
|
|
|
|
static __key__ = 'sys.private';
|
2024-08-27 05:46:19 +00:00
|
|
|
jwtKey?: string;
|
|
|
|
encryptSecret?: string;
|
2024-07-14 16:30:33 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
export class SysInstallInfo extends BaseSettings {
|
|
|
|
static __title__ = '系统安装信息';
|
|
|
|
static __key__ = 'sys.install';
|
|
|
|
static __access__ = 'private';
|
|
|
|
installTime: number;
|
|
|
|
siteId?: string;
|
|
|
|
}
|
2024-08-02 14:58:29 +00:00
|
|
|
|
|
|
|
export class SysLicenseInfo extends BaseSettings {
|
|
|
|
static __title__ = '授权许可信息';
|
|
|
|
static __key__ = 'sys.license';
|
|
|
|
static __access__ = 'private';
|
2024-08-03 15:32:50 +00:00
|
|
|
license?: string;
|
2024-08-02 14:58:29 +00:00
|
|
|
}
|