2024-07-15 00:30:33 +08:00
|
|
|
export class BaseSettings {
|
|
|
|
|
static __key__: string;
|
|
|
|
|
static __title__: string;
|
|
|
|
|
static __access__ = 'private';
|
|
|
|
|
|
|
|
|
|
static getCacheKey() {
|
|
|
|
|
return 'settings.' + this.__key__;
|
|
|
|
|
}
|
|
|
|
|
}
|
2024-10-03 22:03:49 +08:00
|
|
|
|
2024-07-15 00:30:33 +08:00
|
|
|
export class SysPublicSettings extends BaseSettings {
|
|
|
|
|
static __key__ = 'sys.public';
|
|
|
|
|
static __title__ = '系统公共设置';
|
|
|
|
|
static __access__ = 'public';
|
|
|
|
|
registerEnabled = false;
|
2024-08-05 12:49:44 +08:00
|
|
|
managerOtherUserPipeline = false;
|
2024-10-03 23:11:50 +08:00
|
|
|
icpNo?: string;
|
2024-09-20 15:15:24 +08:00
|
|
|
// triggerOnStartup = false;
|
2024-07-15 00:30:33 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export class SysPrivateSettings extends BaseSettings {
|
|
|
|
|
static __title__ = '系统私有设置';
|
|
|
|
|
static __access__ = 'private';
|
|
|
|
|
static __key__ = 'sys.private';
|
2024-08-27 13:46:19 +08:00
|
|
|
jwtKey?: string;
|
|
|
|
|
encryptSecret?: string;
|
2024-07-15 00:30:33 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export class SysInstallInfo extends BaseSettings {
|
|
|
|
|
static __title__ = '系统安装信息';
|
|
|
|
|
static __key__ = 'sys.install';
|
|
|
|
|
static __access__ = 'private';
|
|
|
|
|
installTime: number;
|
|
|
|
|
siteId?: string;
|
2024-09-23 13:33:46 +08:00
|
|
|
bindUserId?: number;
|
|
|
|
|
bindUrl?: string;
|
2024-09-24 02:42:08 +08:00
|
|
|
accountServerBaseUrl?: string;
|
|
|
|
|
appKey?: string;
|
2024-07-15 00:30:33 +08:00
|
|
|
}
|
2024-08-02 22:58:29 +08:00
|
|
|
|
|
|
|
|
export class SysLicenseInfo extends BaseSettings {
|
|
|
|
|
static __title__ = '授权许可信息';
|
|
|
|
|
static __key__ = 'sys.license';
|
|
|
|
|
static __access__ = 'private';
|
2024-08-03 23:32:50 +08:00
|
|
|
license?: string;
|
2024-08-02 22:58:29 +08:00
|
|
|
}
|
2024-09-23 11:27:53 +08:00
|
|
|
|
|
|
|
|
export class SysSiteInfo extends BaseSettings {
|
|
|
|
|
static __title__ = '站点信息';
|
|
|
|
|
static __key__ = 'sys.site';
|
|
|
|
|
static __access__ = 'public';
|
2024-10-03 23:11:50 +08:00
|
|
|
title?: string;
|
|
|
|
|
slogan?: string;
|
|
|
|
|
logo?: string;
|
2024-10-05 01:46:25 +08:00
|
|
|
loginLogo?: string;
|
2024-09-23 11:27:53 +08:00
|
|
|
}
|