活动:月卡领取

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

@@ -8,10 +8,10 @@ import { ActivityGrowthFundModel } from '../../../db/ActivityGrowthFund';
export default function (app: Application) {
return new SevenDaysHandler(app);
return new GrowthFundHandler(app);
}
export class SevenDaysHandler {
export class GrowthFundHandler {
constructor(private app: Application) {
}
@@ -21,7 +21,7 @@ export class SevenDaysHandler {
* @description 获取成长基金活动数据
* @param {{ type: number}} msg
* @param {BackendSession} session
* @memberof SevenDaysHandler
* @memberof GrowthFundHandler
*/
async getGrowthFundActivity(msg: { type: number }, session: BackendSession) {
const { type } = msg;
@@ -39,7 +39,7 @@ export class SevenDaysHandler {
* @description 获取成长基金奖励
* @param {{ activityId: number, pageIndex: number, cellIndex: number}} msg
* @param {BackendSession} session
* @memberof SevenDaysHandler
* @memberof GrowthFundHandler
*/
async getGrowthFundCellReward(msg: { activityId: number, pageIndex: number, cellIndex: number }, session: BackendSession) {
const { activityId, pageIndex, cellIndex } = msg;