活动:月卡领取

This commit is contained in:
qiaoxin
2021-05-13 21:09:13 +08:00
parent 803ad06ed8
commit e750ba46e0
12 changed files with 288 additions and 25 deletions

View File

@@ -10,10 +10,10 @@ import Activity, { ActivityModel, ActivityModelType } from '../../../db/Activity
import { addSelfServiceShopGiftReward, getActivityData, getPlayerActivityData } from '../../../services/selfServiceShopActivityService';
export default function (app: Application) {
return new thirtyDaysHandler(app);
return new SelfServiceShopHandler(app);
}
export class thirtyDaysHandler {
export class SelfServiceShopHandler {
constructor(private app: Application) {
}
@@ -23,7 +23,7 @@ export class thirtyDaysHandler {
* @description 获取自助商店数据
* @param {{ }} msg
* @param {BackendSession} session
* @memberof thirtyDaysHandler
* @memberof SelfServiceShopHandler
*/
async getSelfServiceShopActivity(msg: {}, session: BackendSession) {
const { } = msg;
@@ -40,7 +40,7 @@ export class thirtyDaysHandler {
* @description 购买礼包
* @param {{ activityId: number, roundIndex: number, index: number, cellIndex: number}} msg
* @param {BackendSession} session
* @memberof thirtyDaysHandler
* @memberof SelfServiceShopHandler
*/
async buyGift(msg: { activityId: number, roundIndex: number, index: number }, session: BackendSession) {
const { activityId, roundIndex, index } = msg;
@@ -80,7 +80,7 @@ export class thirtyDaysHandler {
* @description 操作礼包
* @param {{ activityId: number, roundIndex: number, index: number, cellIndex: number, gift: number, rewardIndex: number}} msg
* @param {BackendSession} session
* @memberof thirtyDaysHandler
* @memberof SelfServiceShopHandler
*/
async saveGood(msg: { activityId: number, roundIndex: number, index: number, cellIndex: number, gift: number, rewardIndex: number }, session: BackendSession) {
const { activityId, roundIndex, index, cellIndex, gift, rewardIndex } = msg;