活动:月卡领取
This commit is contained in:
@@ -6,15 +6,14 @@ import { ThirtyDaysData, ThirtyDaysItem, ThirtyDaysPointItem } from '../../../do
|
||||
import { addItems, createHeroes } from '../../../services/rewardService';
|
||||
import { ActivityThirtyDaysModel } from '../../../db/ActivityThirtyDays';
|
||||
import { ActivityThirtyDaysPointRewardModel } from '../../../db/ActivityThirtyDaysPointReward';
|
||||
import { RoleModel } from '../../../db/Role';
|
||||
import moment = require('moment');
|
||||
import { ActivityModel, ActivityModelType } from '../../../db/Activity';
|
||||
|
||||
export default function (app: Application) {
|
||||
return new thirtyDaysHandler(app);
|
||||
return new ThirtyDaysHandler(app);
|
||||
}
|
||||
|
||||
export class thirtyDaysHandler {
|
||||
export class ThirtyDaysHandler {
|
||||
constructor(private app: Application) {
|
||||
}
|
||||
|
||||
@@ -24,7 +23,7 @@ export class thirtyDaysHandler {
|
||||
* @description 获取30目标活动数据
|
||||
* @param {{ }} msg
|
||||
* @param {BackendSession} session
|
||||
* @memberof thirtyDaysHandler
|
||||
* @memberof ThirtyDaysHandler
|
||||
*/
|
||||
async getThirtyDaysActivity(msg: {}, session: BackendSession) {
|
||||
const { } = msg;
|
||||
@@ -43,7 +42,7 @@ export class thirtyDaysHandler {
|
||||
* @description 获取30天完成任务的奖励
|
||||
* @param {{ activityId: number, pageIndex: number, cellIndex: number}} msg
|
||||
* @param {BackendSession} session
|
||||
* @memberof thirtyDaysHandler
|
||||
* @memberof ThirtyDaysHandler
|
||||
*/
|
||||
async getThirtyDaysCellReward(msg: { activityId: number, pageIndex: number, cellIndex: number }, session: BackendSession) {
|
||||
const { activityId, pageIndex, cellIndex } = msg;
|
||||
@@ -113,7 +112,7 @@ export class thirtyDaysHandler {
|
||||
* @description 点数兑换奖励
|
||||
* @param {{ activityId: number, cellIndex: number}} msg
|
||||
* @param {BackendSession} session
|
||||
* @memberof thirtyDaysHandler
|
||||
* @memberof ThirtyDaysHandler
|
||||
*/
|
||||
async getThirtyDaysPointReward(msg: { activityId: number, cellIndex: number }, session: BackendSession) {
|
||||
const { activityId, cellIndex } = msg;
|
||||
|
||||
Reference in New Issue
Block a user