Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
taobao-mini-template
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
2
Issues
2
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
qinhaitao
taobao-mini-template
Commits
f24c72a9
Commit
f24c72a9
authored
Nov 10, 2020
by
maggie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save
parent
1194827e
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
20 deletions
+11
-20
config.json
v2.0/compileServer/config.json
+4
-12
stat.controller.ts
v2.0/src/controller/common/stat.controller.ts
+1
-1
task.controller.ts
v2.0/src/controller/common/task.controller.ts
+3
-3
user.controller.ts
v2.0/src/controller/common/user.controller.ts
+2
-3
test2.controller.ts
v2.0/src/controller/custom/test2.controller.ts
+1
-1
No files found.
v2.0/compileServer/config.json
View file @
f24c72a9
...
...
@@ -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"
:
"initTask
List
"
,
"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
}
...
...
v2.0/src/controller/common/stat.controller.ts
View file @
f24c72a9
...
...
@@ -22,7 +22,7 @@ export default class StatController {
)
{
const
commonStatAddStatResult1
=
await
commonStatService
.
addStat
(
context
.
data
.
type
,
userInfo
)
return
resultsModel
.
success
({
commonStatAddStatResult1
...
commonStatAddStatResult1
})
}
/**
...
...
v2.0/src/controller/common/task.controller.ts
View file @
f24c72a9
...
...
@@ -23,9 +23,9 @@ export default class TaskController {
{
activityInfo
,
userInfo
,
vipInfo
}:
IControllerInfos
,
[
commonTaskService
]:
[
CommonTaskService
]
)
{
const
commonTaskInitTask
Result1
=
await
commonTaskService
.
initTask
(
context
.
data
.
taskType
,
activityInfo
,
user
Info
)
const
commonTaskInitTask
ListResult1
=
await
commonTaskService
.
initTaskList
(
userInfo
,
activity
Info
)
return
resultsModel
.
success
({
...
commonTaskInitTaskResult1
...
commonTaskInitTask
List
Result1
})
}
/**
...
...
@@ -42,7 +42,7 @@ export default class TaskController {
)
{
const
commonTaskCompleteTaskResult1
=
await
commonTaskService
.
completeTask
(
context
.
data
.
taskType
,
activityInfo
,
userInfo
)
return
resultsModel
.
success
({
commonTaskCompleteTaskResult1
...
commonTaskCompleteTaskResult1
})
}
/**
...
...
v2.0/src/controller/common/user.controller.ts
View file @
f24c72a9
...
...
@@ -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
})
...
...
v2.0/src/controller/custom/test2.controller.ts
View file @
f24c72a9
...
...
@@ -22,7 +22,7 @@ export default class Test2Controller {
)
{
const
commonStatAddStatResult1
=
await
commonStatService
.
addStat
(
context
.
data
.
type
,
userInfo
)
return
resultsModel
.
success
({
commonStatAddStatResult1
...
commonStatAddStatResult1
})
}
/**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment