关于login重构
This commit is contained in:
@@ -18,8 +18,9 @@ export interface AppData {
|
||||
password?: string; // 受保护的访问密码
|
||||
'expiration-time'?: string; // 受保护的访问过期时间
|
||||
};
|
||||
// 运行环境,browser, node, 或者其他,是数组
|
||||
runtime?: string[];
|
||||
}
|
||||
export type AppType = 'web-single' | 'web-module'; // 可以做到网页代理
|
||||
export enum AppStatus {
|
||||
running = 'running',
|
||||
stop = 'stop',
|
||||
@@ -36,9 +37,7 @@ export class AppModel extends Model {
|
||||
declare description: string;
|
||||
declare version: string;
|
||||
declare domain: string;
|
||||
declare appType: string;
|
||||
declare key: string;
|
||||
declare type: string;
|
||||
declare uid: string;
|
||||
declare pid: string;
|
||||
// 是否是history路由代理模式。静态的直接转minio,而不需要缓存下来。
|
||||
@@ -74,18 +73,10 @@ AppModel.init(
|
||||
type: DataTypes.STRING,
|
||||
defaultValue: '',
|
||||
},
|
||||
appType: {
|
||||
type: DataTypes.STRING,
|
||||
defaultValue: '',
|
||||
},
|
||||
key: {
|
||||
type: DataTypes.STRING,
|
||||
// 和 uid 组合唯一
|
||||
},
|
||||
type: {
|
||||
type: DataTypes.STRING,
|
||||
defaultValue: '',
|
||||
},
|
||||
uid: {
|
||||
type: DataTypes.UUID,
|
||||
allowNull: true,
|
||||
|
||||
Reference in New Issue
Block a user