后台:添加一下便于操作的内容
This commit is contained in:
@@ -147,6 +147,12 @@ export default class Activity extends Service {
|
||||
return ctx.service.utils.resResult(STATUS.SUCCESS);
|
||||
}
|
||||
|
||||
public async createDefaultActivityGroupType() {
|
||||
const { ctx } = this;
|
||||
await ActivityGroupTypeModel.createDefaultActivityGroupType(ctx.user?.uid);
|
||||
return ctx.service.utils.resResult(STATUS.SUCCESS);
|
||||
}
|
||||
|
||||
public async getActivityTaskPoint(page: number, pageSize: number, sortField: string, sortOrder: string, form: {taskType?: number, taskId?: number, activityId?: number}) {
|
||||
const { ctx } = this;
|
||||
const list = await ActivityTaskPointModel.findByCondition(page, pageSize, sortField, sortOrder, form);
|
||||
|
||||
@@ -17,6 +17,7 @@ import { WhiteListModel } from '@db/RegionWhiteList';
|
||||
import { RoleModel } from '@db/Role';
|
||||
import { SearchMarqueeParam } from '@domain/backEndField/search';
|
||||
import { DicServerName } from '@pubUtils/dictionary/DicServerName';
|
||||
import { CreateRegionParam } from '@domain/backEndField/params';
|
||||
|
||||
/**
|
||||
* Test Service
|
||||
@@ -32,6 +33,17 @@ export default class Game extends Service {
|
||||
});
|
||||
}
|
||||
|
||||
public async createRegion(values: CreateRegionParam) {
|
||||
const { ctx } = this;
|
||||
let param = new CreateRegionParam(values);
|
||||
|
||||
if(!param.checkParams()) return this.ctx.service.utils.resResult(STATUS.WRONG_PARMS);
|
||||
let region = await RegionModel.createNewRegion(param, ctx.user?.uid)
|
||||
return ctx.service.utils.resResult(STATUS.SUCCESS, {
|
||||
region
|
||||
});
|
||||
}
|
||||
|
||||
public async getServers() {
|
||||
const { ctx } = this;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user