好友:玩家武将详细信息
This commit is contained in:
+5
-5
@@ -1,6 +1,6 @@
|
||||
import { HANG_UP_CONSTS, ROLE_TERAPH, ROLE } from './../consts';
|
||||
import { HANG_UP_CONSTS, ROLE_TERAPH, ROLE_SELECT } from './../consts';
|
||||
import BaseModel from './BaseModel';
|
||||
import { CeAttrRole } from './generalField';
|
||||
import { CeAttrRole } from '../domain/roleField/attribute';
|
||||
import { index, getModelForClass, prop, DocumentType, Ref, mongoose } from '@typegoose/typegoose';
|
||||
import User from './User';
|
||||
import { shouldRefresh, reduceCe } from '../pubUtils/util';
|
||||
@@ -32,7 +32,7 @@ class PayRecord {
|
||||
cnt: number; // 购买次数
|
||||
}
|
||||
|
||||
class WarStar {
|
||||
export class WarStar {
|
||||
@prop({ required: true })
|
||||
id: number; // 关卡 id
|
||||
@prop({ required: true })
|
||||
@@ -450,7 +450,7 @@ export default class Role extends BaseModel {
|
||||
// 获取好友推荐列表
|
||||
public static async getRecommedList(minLv: number, maxLv: number, time: number) {
|
||||
const result = await RoleModel.find({ loginTime: { $gt: time }, lv: { $gte: minLv, $lte: maxLv } }, { _id: 0 })
|
||||
.select(ROLE.SHOW_FRIEND_APPLY_LIST)
|
||||
.select(ROLE_SELECT.SHOW_FRIEND_APPLY_LIST)
|
||||
.sort({quitTime: -1, lv: -1, ce: -1})
|
||||
.limit(200).lean({ getters: true });
|
||||
return result;
|
||||
@@ -464,7 +464,7 @@ export default class Role extends BaseModel {
|
||||
{ roleId: value }
|
||||
]
|
||||
}, { _id: 0 })
|
||||
.select(ROLE.SHOW_FRIEND_APPLY_LIST)
|
||||
.select(ROLE_SELECT.SHOW_FRIEND_APPLY_LIST)
|
||||
.sort({quitTime: -1, lv: -1, ce: -1})
|
||||
.limit(200).lean({ getters: true });
|
||||
return result;
|
||||
|
||||
Reference in New Issue
Block a user