Files
certd/packages/libs/lib-server/src/system/settings/service/models.ts

57 lines
1.4 KiB
TypeScript
Raw Normal View History

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;
managerOtherUserPipeline = false;
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';
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';
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';
title?: string;
slogan?: string;
logo?: string;
2024-10-05 01:46:25 +08:00
loginLogo?: string;
2024-09-23 11:27:53 +08:00
}