pvp: 更改pvpdefense结构

This commit is contained in:
luying
2021-10-26 11:23:08 +08:00
parent 4a5e23969b
commit e39b120af4
31 changed files with 1542 additions and 1137 deletions

View File

@@ -100,17 +100,17 @@ export default class UserController extends Controller {
ctx.body = await ctx.service.users.setHeroJob(roleIdAndHids, job);
}
public async saveHeroToDefense() {
const { ctx } = this;
const { roleId, roleName, hid } = ctx.request.body;
ctx.body = await ctx.service.users.saveHeroToDefense(roleId, roleName, hid);
}
// public async saveHeroToDefense() {
// const { ctx } = this;
// const { roleId, roleName, hid } = ctx.request.body;
// ctx.body = await ctx.service.users.saveHeroToDefense(roleId, roleName, hid);
// }
public async removeHeroFromDefense() {
const { ctx } = this;
const { roleId, hid } = ctx.request.body;
ctx.body = await ctx.service.users.removeHeroFromDefense(roleId, hid);
}
// public async removeHeroFromDefense() {
// const { ctx } = this;
// const { roleId, hid } = ctx.request.body;
// ctx.body = await ctx.service.users.removeHeroFromDefense(roleId, hid);
// }
public async getEquipList() {
const { ctx } = this;