Commit f24c72a9 authored by maggie's avatar maggie

save

parent 1194827e
......@@ -11,13 +11,6 @@
"params": [
"activityId"
]
},
{
"type": "common",
"name": "registeInfos",
"params": [
"session"
]
}
],
"main": [
......@@ -27,7 +20,7 @@
"function": "getShopVip",
"params": [
{ "type": "var", "value": "context" },
{ "type": "var", "value": "session" }
{ "type": "var", "value": "activityInfo" }
],
"return": true
}
......@@ -128,11 +121,10 @@
{
"type": "common",
"service": "task",
"function": "initTask",
"function": "initTaskList",
"params": [
{ "type": "var", "value": "context.data.taskType" },
{ "type": "var", "value": "activityInfo" },
{ "type": "var", "value": "userInfo" }
{ "type": "var", "value": "userInfo" },
{ "type": "var", "value": "activityInfo" }
],
"return": true
}
......
......@@ -22,7 +22,7 @@ export default class StatController {
) {
const commonStatAddStatResult1 = await commonStatService.addStat(context.data.type, userInfo)
return resultsModel.success({
commonStatAddStatResult1
...commonStatAddStatResult1
})
}
/**
......
......@@ -23,9 +23,9 @@ export default class TaskController {
{ activityInfo, userInfo, vipInfo }: IControllerInfos,
[commonTaskService]: [CommonTaskService]
) {
const commonTaskInitTaskResult1 = await commonTaskService.initTask(context.data.taskType, activityInfo, userInfo)
const commonTaskInitTaskListResult1 = await commonTaskService.initTaskList(userInfo, activityInfo)
return resultsModel.success({
...commonTaskInitTaskResult1
...commonTaskInitTaskListResult1
})
}
/**
......@@ -42,7 +42,7 @@ export default class TaskController {
) {
const commonTaskCompleteTaskResult1 = await commonTaskService.completeTask(context.data.taskType, activityInfo, userInfo)
return resultsModel.success({
commonTaskCompleteTaskResult1
...commonTaskCompleteTaskResult1
})
}
/**
......
......@@ -14,14 +14,13 @@ export default class UserController {
* 获取会员信息
*/
@commonDecorator.checkParams(['activityId'])
@commonDecorator.registeInfos(['session'])
@services([CommonUserService])
async getVipInfo(
context: IContext<IParams>,
{ activityInfo, userInfo, session }: IControllerInfos,
{ activityInfo, userInfo }: IControllerInfos,
[commonUserService]: [CommonUserService]
) {
const commonUserGetShopVipResult1 = await commonUserService.getShopVip(context, session)
const commonUserGetShopVipResult1 = await commonUserService.getShopVip(context, activityInfo)
return resultsModel.success({
...commonUserGetShopVipResult1
})
......
......@@ -22,7 +22,7 @@ export default class Test2Controller {
) {
const commonStatAddStatResult1 = await commonStatService.addStat(context.data.type, userInfo)
return resultsModel.success({
commonStatAddStatResult1
...commonStatAddStatResult1
})
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment