登录:更新服务器列表
This commit is contained in:
+2
-3
@@ -1,9 +1,8 @@
|
||||
import { APP_ID } from './../consts';
|
||||
import BaseModel from './BaseModel';
|
||||
import { index, getModelForClass, prop, DocumentType, modelOptions } from '@typegoose/typegoose';
|
||||
import { getSeconds } from '../pubUtils/timeUtil';
|
||||
|
||||
class ServerInfo {
|
||||
export class ServerInfo {
|
||||
@prop({ required: true })
|
||||
id: number; // 小区id
|
||||
|
||||
@@ -34,7 +33,7 @@ class ServerInfo {
|
||||
}
|
||||
}
|
||||
|
||||
@prop({ required: true, set:(val: Date) => { return val }, get: (val: Date) => {return getSeconds(val)} })
|
||||
@prop({ required: true })
|
||||
openTime: Date;
|
||||
|
||||
@prop({ required: true })
|
||||
|
||||
Reference in New Issue
Block a user