feat(武将): 重生体验优化 ca13e8be3 至 4ee246e78

This commit is contained in:
luying
2023-08-29 16:29:19 +08:00
parent 878d80f069
commit 820bfe170a
8 changed files with 155 additions and 9 deletions
+5
View File
@@ -42,6 +42,11 @@ export default class School extends BaseModel {
return result;
}
public static async findByHids(roleId: string, hids: number[]) {
let result: SchoolType[] = await SchoolModel.find({ roleId, hid: { $in: hids } }).lean();
return result;
}
public static async updateBySclAndPos(roleId: string, schoolId: number, positionId: number, update: SchoolUpdate) {
const doc = new SchoolModel();