字典表筛选字段,修改FILENAME位置

This commit is contained in:
luying
2020-12-16 16:47:29 +08:00
parent 7118e1bca3
commit aef1ad9403
27 changed files with 108 additions and 38 deletions
+5 -3
View File
@@ -1,14 +1,14 @@
import { COUNTER } from './../consts';
import { CounterModel } from './Counter';
import BaseModel from './BaseModel';
import { index, getModelForClass, prop, DocumentType } from '@typegoose/typegoose';
import { index, getModelForClass, prop, DocumentType, modelOptions } from '@typegoose/typegoose';
/**
* GM用户组接口
*/
@index({ id: 1 })
@index({ group: 1 })
@modelOptions({schemaOptions: {id: false}})
export default class GMGroup extends BaseModel {
@prop({ required: true })
id: number;
@@ -76,4 +76,6 @@ export default class GMGroup extends BaseModel {
export const GMGroupModel = getModelForClass(GMGroup);
export interface GMGroupType extends Pick<DocumentType<GMGroup>, keyof GMGroup>{};
export interface GMGroupType extends Pick<DocumentType<GMGroup>, keyof GMGroup>{
id: number;
};