获取军团列表测试用例
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
import {Application, BackendSession, pinus} from 'pinus';
|
||||
import { resResult } from '../../../pubUtils/util';
|
||||
import { STATUS } from '../../../consts';
|
||||
|
||||
export default function(app: Application) {
|
||||
return new GuildHandler(app);
|
||||
@@ -14,7 +16,19 @@ export class GuildHandler {
|
||||
}
|
||||
|
||||
//TODO 获取军团列表
|
||||
async getGuildList() {
|
||||
|
||||
async getGuildList(msg: {page: number, showPeopleMax: boolean, name: string }, session: BackendSession) {
|
||||
|
||||
const list = [{
|
||||
code: "code",
|
||||
name: "name",
|
||||
icon: 1,
|
||||
lv: 0,
|
||||
peopleNum: 0,
|
||||
leader: "leader",
|
||||
ceCondition: 0,
|
||||
quitTime: 0,
|
||||
hasApply: true
|
||||
}];
|
||||
return resResult(STATUS.SUCCESS, { list });
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user