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
ec23ee7f
Commit
ec23ee7f
authored
Aug 26, 2020
by
qinhaitao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:
🎸
result 命名
parent
ce1e5dff
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
9 additions
and
9 deletions
+9
-9
awards.controller.js.map
v2.0/dist/controller/awards.controller.js.map
+1
-1
task.controller.d.ts
v2.0/dist/controller/task.controller.d.ts
+2
-2
awards.controller.ts
v2.0/src/controller/awards.controller.ts
+2
-2
task.controller.ts
v2.0/src/controller/task.controller.ts
+2
-2
services.ts
v2.0/src/decorator/services.ts
+1
-1
index.d.ts
v2.0/src/typings/index.d.ts
+1
-1
No files found.
v2.0/dist/controller/awards.controller.js.map
View file @
ec23ee7f
{"version":3,"file":"awards.controller.js","sourceRoot":"","sources":["../../src/controller/awards.controller.ts"],"names":[],"mappings":";AAAA,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEd,0CAA+D;AAE/D,8BAAqC;AACrC,sCAAuD;AACvD;IAAA;IAgEA,CAAC;IA/DC;;OAEG;IAIG,yCAAc,GAApB,UAAqB,OAAgB,EAAE,EAAE,EAAE,EAA2B;YAA1B,QAAQ,QAAA;;;;;;wBAEhD,MAAM,GAEJ,OAAO,OAFH,EACE,UAAU,GAChB,OAAO,gBADS,CACT;wBACE,qB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CAAC,GAAG,EAAE,UAAU,CAAC;4BAC9D,YAAY;0BADkD;;wBAA1D,MAAM,GAAG,SAAiD;wBAC9D,YAAY;wBACZ,IAAI,MAAM,CAAC,IAAI,EAAE;4BACf,YAAY;4BACZ,sBAAO,kBAAY,CAAC,KAAK,CAAC,MAAM,CAAC,EAAA;yBAClC;wBACD,YAAY;wBACZ,IAAI,MAAM,CAAC,MAAM,EAAE;4BACjB,YAAY;4BACZ,sBAAO,kBAAY,CAAC,KAAK,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,EAAA;yBACjD;wBACD,sBAAO,kBAAY,CAAC,OAAO,CAAC,MAAM,CAAC,EAAA;;;;KACpC;IAxDD;QAHC,uBAAW,CAAC,CAAC,YAAY,CAAC,CAAC;QAC3B,qBAAS,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;QAC9B,oBAAQ,CAAC,CAAC,uBAAa,CAAC,CAAC;;;;0DAQzB;IAQD;QAHC,uBAAW,CAAC,CAAC,YAAY,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,eAAe,CAAC,CAAC;QAChG,qBAAS,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;QAC9B,oBAAQ,CAAC,CAAC,uBAAa,CAAC,CAAC;;;;8DAmBzB;IAQD;QAHC,uBAAW,CAAC,CAAC,YAAY,EAAE,KAAK,CAAC,CAAC;QAClC,qBAAS,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;QAC9B,oBAAQ,CAAC,CAAC,uBAAa,CAAC,CAAC;;;;6DAgBzB;IACH,uBAAC;CAAA,AAhED,IAgEC;kBAhEoB,gBAAgB"}
\ No newline at end of file
\ No newline at end of file
v2.0/dist/controller/task.controller.d.ts
View file @
ec23ee7f
...
@@ -4,7 +4,7 @@ export default class Task {
...
@@ -4,7 +4,7 @@ export default class Task {
/**
/**
* 任务列表
* 任务列表
*/
*/
getTaskList
(
context
:
Context
,
{
userInfo
,
vipInfo
,
activityInfo
,
session
}:
IControllerInfos
,
[
taskService
]:
[
TaskService
]):
Promise
<
Result
>
;
getTaskList
(
context
:
Context
,
{
userInfo
,
vipInfo
,
activityInfo
,
session
}:
IControllerInfos
,
[
taskService
]:
[
TaskService
]):
Promise
<
I
Result
>
;
/**
/**
* 完成关注店铺任务
* 完成关注店铺任务
*/
*/
...
@@ -20,5 +20,5 @@ export default class Task {
...
@@ -20,5 +20,5 @@ export default class Task {
/**
/**
* 领取任务奖励
* 领取任务奖励
*/
*/
receiveTaskRewards
(
context
:
Context
,
{
userInfo
}:
IControllerInfos
,
[
taskService
]:
[
TaskService
]):
Promise
<
Result
>
;
receiveTaskRewards
(
context
:
Context
,
{
userInfo
}:
IControllerInfos
,
[
taskService
]:
[
TaskService
]):
Promise
<
I
Result
>
;
}
}
v2.0/src/controller/awards.controller.ts
View file @
ec23ee7f
/** @format */
/** @format */
import
{
services
,
paramsCheck
,
userCheck
}
from
'../decorator'
import
{
services
,
paramsCheck
,
userCheck
}
from
'../decorator'
import
{
resultsModel
}
from
'../sdk'
import
{
resultsModel
}
from
'../sdk'
import
{
AwardsService
,
BaseService
}
from
'../service'
import
{
AwardsService
}
from
'../service'
export
default
class
AwardsController
{
export
default
class
AwardsController
{
/**
/**
* 我的奖品列表
* 我的奖品列表
...
...
v2.0/src/controller/task.controller.ts
View file @
ec23ee7f
...
@@ -25,7 +25,7 @@ export default class Task {
...
@@ -25,7 +25,7 @@ export default class Task {
context
:
Context
,
context
:
Context
,
{
userInfo
,
vipInfo
,
activityInfo
,
session
}:
IControllerInfos
,
{
userInfo
,
vipInfo
,
activityInfo
,
session
}:
IControllerInfos
,
[
taskService
]:
[
TaskService
]
[
taskService
]:
[
TaskService
]
):
Promise
<
Result
>
{
):
Promise
<
I
Result
>
{
const
{
tasks
,
startTime
}
=
activityInfo
const
{
tasks
,
startTime
}
=
activityInfo
// 更新user状态
// 更新user状态
...
@@ -185,7 +185,7 @@ export default class Task {
...
@@ -185,7 +185,7 @@ export default class Task {
context
:
Context
,
context
:
Context
,
{
userInfo
}:
IControllerInfos
,
{
userInfo
}:
IControllerInfos
,
[
taskService
]:
[
TaskService
]
[
taskService
]:
[
TaskService
]
):
Promise
<
Result
>
{
):
Promise
<
I
Result
>
{
const
{
taskType
}
=
context
.
data
const
{
taskType
}
=
context
.
data
const
{
remainTimes
,
_id
}
=
userInfo
const
{
remainTimes
,
_id
}
=
userInfo
...
...
v2.0/src/decorator/services.ts
View file @
ec23ee7f
...
@@ -37,7 +37,7 @@ export const services = (services: any[]) => {
...
@@ -37,7 +37,7 @@ export const services = (services: any[]) => {
delete
baseInfos
.
noCatch
delete
baseInfos
.
noCatch
return
method
.
apply
(
target
,
[
context
,
baseInfos
,
servicesInstance
])
return
method
.
apply
(
target
,
[
context
,
baseInfos
,
servicesInstance
])
}
}
let
ret
:
Result
let
ret
:
I
Result
try
{
try
{
logFn
(
context
)
logFn
(
context
)
ret
=
await
method
.
apply
(
target
,
[
context
,
baseInfos
,
servicesInstance
])
ret
=
await
method
.
apply
(
target
,
[
context
,
baseInfos
,
servicesInstance
])
...
...
v2.0/src/typings/index.d.ts
View file @
ec23ee7f
...
@@ -34,7 +34,7 @@ interface IVipInfo {
...
@@ -34,7 +34,7 @@ interface IVipInfo {
url
?:
string
url
?:
string
}
}
interface
Result
{
interface
I
Result
{
success
:
boolean
success
:
boolean
code
:
string
code
:
string
message
?:
string
message
?:
string
...
...
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