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
e41bcde3
Commit
e41bcde3
authored
Sep 02, 2020
by
qinhaitao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:
🎸
删除ID
parent
aa90a275
Changes
9
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
70 additions
and
20 deletions
+70
-20
awards.controller.d.ts
v2.0/dist/controller/awards.controller.d.ts
+2
-2
awards.controller.js
v2.0/dist/controller/awards.controller.js
+6
-6
awards.controller.js.map
v2.0/dist/controller/awards.controller.js.map
+1
-1
stat.controller.d.ts
v2.0/dist/controller/stat.controller.d.ts
+1
-1
index.d.ts
v2.0/dist/index.d.ts
+2
-2
awards.service.js
v2.0/dist/service/awards.service.js
+24
-1
awards.service.js.map
v2.0/dist/service/awards.service.js.map
+1
-1
awards.controller.ts
v2.0/src/controller/awards.controller.ts
+6
-6
awards.service.ts
v2.0/src/service/awards.service.ts
+27
-0
No files found.
v2.0/dist/controller/awards.controller.d.ts
View file @
e41bcde3
...
...
@@ -5,7 +5,7 @@ export interface IPrizeListParams {
}
export
interface
IReceiveOjectParams
{
activityId
:
string
;
_
id
:
string
;
id
:
string
;
name
:
string
;
phone
:
string
;
province
:
string
;
...
...
@@ -15,7 +15,7 @@ export interface IReceiveOjectParams {
}
export
interface
IReceiveEnameParams
{
activityId
:
string
;
_
id
:
string
;
id
:
string
;
}
export
default
class
AwardsController
{
/**
...
...
v2.0/dist/controller/awards.controller.js
View file @
e41bcde3
...
...
@@ -79,12 +79,12 @@ var AwardsController = /** @class */ (function () {
AwardsController
.
prototype
.
receiveObjectPrize
=
function
(
context
,
_a
,
_b
)
{
var
awardSer
=
_b
[
0
];
return
__awaiter
(
this
,
void
0
,
void
0
,
function
()
{
var
_c
,
province
,
city
,
area
,
addressdetail
,
_
id
,
name
,
phone
,
activityId
,
result
;
var
_c
,
province
,
city
,
area
,
addressdetail
,
id
,
name
,
phone
,
activityId
,
result
;
return
__generator
(
this
,
function
(
_d
)
{
switch
(
_d
.
label
)
{
case
0
:
_c
=
context
.
data
,
province
=
_c
.
province
,
city
=
_c
.
city
,
area
=
_c
.
area
,
addressdetail
=
_c
.
addressdetail
,
_id
=
_c
.
_
id
,
name
=
_c
.
name
,
phone
=
_c
.
phone
,
activityId
=
_c
.
activityId
;
return
[
4
/*yield*/
,
awardSer
.
recieveObjectPrize
(
_
id
,
{
_c
=
context
.
data
,
province
=
_c
.
province
,
city
=
_c
.
city
,
area
=
_c
.
area
,
addressdetail
=
_c
.
addressdetail
,
id
=
_c
.
id
,
name
=
_c
.
name
,
phone
=
_c
.
phone
,
activityId
=
_c
.
activityId
;
return
[
4
/*yield*/
,
awardSer
.
recieveObjectPrize
(
id
,
{
activityId
:
activityId
,
province
:
province
,
city
:
city
,
...
...
@@ -109,12 +109,12 @@ var AwardsController = /** @class */ (function () {
AwardsController
.
prototype
.
receiveEnamePrize
=
function
(
context
,
_a
,
_b
)
{
var
awardSer
=
_b
[
0
];
return
__awaiter
(
this
,
void
0
,
void
0
,
function
()
{
var
_c
,
_
id
,
activityId
,
result
;
var
_c
,
id
,
activityId
,
result
;
return
__generator
(
this
,
function
(
_d
)
{
switch
(
_d
.
label
)
{
case
0
:
_c
=
context
.
data
,
_id
=
_c
.
_
id
,
activityId
=
_c
.
activityId
;
return
[
4
/*yield*/
,
awardSer
.
recieveEnamePrize
(
_
id
,
activityId
)
_c
=
context
.
data
,
id
=
_c
.
id
,
activityId
=
_c
.
activityId
;
return
[
4
/*yield*/
,
awardSer
.
recieveEnamePrize
(
id
,
activityId
)
//@ts-ignore
];
case
1
:
...
...
v2.0/dist/controller/awards.controller.js.map
View file @
e41bcde3
{"version":3,"file":"awards.controller.js","sourceRoot":"","sources":["../../src/controller/awards.controller.ts"],"names":[],"mappings":";AAAA,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEd,0CAAkF;AAClF,8BAAqC;AACrC,sCAA0C;AAC1C,0CAAuE;AACvE,kCAA2C;AAuB3C;IAAA;IA6IA,CAAC;IA5IC;;OAEG;IAIG,yCAAc,GAApB,UACE,OAAmC,EACnC,EAAE,EACF,EAA2B;YAA1B,QAAQ,QAAA;;;;;;wBAGP,MAAM,GAEJ,OAAO,OAFH,EACE,UAAU,GAChB,OAAO,gBADS,CACT;wBACE,qBAAM,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,QAAA,EAAE,UAAU,YAAA,EAAE,CAAC,EAAA;;wBAA9D,MAAM,GAAG,SAAqD;wBAClE,sBAAO,kBAAY,CAAC,OAAO,CAAC,MAAM,CAAC,EAAA;;;;KACpC;IAED;;OAEG;IAIG,6CAAkB,GAAxB,UACE,OAAsC,EACtC,EAAE,EACF,EAA2B;YAA1B,QAAQ,QAAA;;;;;;wBAEL,KAAwE,OAAO,CAAC,IAAI,EAAlF,QAAQ,cAAA,EAAE,IAAI,UAAA,EAAE,IAAI,UAAA,EAAE,aAAa,mBAAA,EAAE,GAAG,SAAA,EAAE,IAAI,UAAA,EAAE,KAAK,WAAA,EAAE,UAAU,gBAAA,CAAiB;wBAE3E,qBAAM,QAAQ,CAAC,kBAAkB,CAAC,GAAG,EAAE;gCAClD,UAAU,YAAA;gCACV,QAAQ,UAAA;gCACR,IAAI,MAAA;gCACJ,IAAI,MAAA;gCACJ,aAAa,eAAA;gCACb,IAAI,MAAA;gCACJ,KAAK,OAAA;6BACN,CAAC,EAAA;;wBARE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M,GAAG,SAA+B;wBAE9C,sBAAO,kBAAY,CAAC,OAAO,CAAC;gCAC1B,EAAE,EAAE,MAAM;gCACV,IAAI,MAAA;gCACJ,IAAI,MAAA;gCACJ,KAAK,OAAA;6BACN,CAAC,EAAA;;;;KACH;IArID;QAHC,uBAAW,CAAC,CAAC,YAAY,CAAC,CAAC;QAC3B,qBAAS,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;QAC9B,oBAAQ,CAAC,CAAC,uBAAa,CAAC,CAAC;;;;0DAYzB;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;;;;8DAsBzB;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;IAQD;QAHC,uBAAW,CAAC,CAAC,YAAY,EAAE,eAAe,CAAC,CAAC;QAC5C,6BAAiB;QACjB,oBAAQ,CAAC,CAAC,uBAAa,CAAC,CAAC;;;;4DA+DzB;IACH,uBAAC;CAAA,AA7ID,IA6IC;kBA7IoB,gBAAgB"}
\ No newline at end of file
{"version":3,"file":"awards.controller.js","sourceRoot":"","sources":["../../src/controller/awards.controller.ts"],"names":[],"mappings":";AAAA,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEd,0CAAkF;AAClF,8BAAqC;AACrC,sCAA0C;AAC1C,0CAAuE;AACvE,kCAA2C;AAuB3C;IAAA;IA6IA,CAAC;IA5IC;;OAEG;IAIG,yCAAc,GAApB,UAC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MAAM,EAAE,MAAM,EAAE,eAAe,CAAC,CAAC;QAChG,qBAAS,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;QAC9B,oBAAQ,CAAC,CAAC,uBAAa,CAAC,CAAC;;;;8DAsBzB;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;IAQD;QAHC,uBAAW,CAAC,CAAC,YAAY,EAAE,eAAe,CAAC,CAAC;QAC5C,6BAAiB;QACjB,oBAAQ,CAAC,CAAC,uBAAa,CAAC,CAAC;;;;4DA+DzB;IACH,uBAAC;CAAA,AA7ID,IA6IC;kBA7IoB,gBAAgB"}
\ No newline at end of file
v2.0/dist/controller/stat.controller.d.ts
View file @
e41bcde3
...
...
@@ -9,5 +9,5 @@ export default class StatController {
/**
* 统计数据
*/
getStats
(
context
:
IContext
<
IStatsParams
>
):
Promise
<
import
(
"taobao-mini-sdk/lib/utils/resultmodel"
).
Result
<
any
[],
true
>
|
import
(
"taobao-mini-sdk/lib/utils/resultmodel"
).
Result
<
string
|
boolean
|
object
|
string
[]
|
object
[]
|
number
[],
fals
e
>>
;
getStats
(
context
:
IContext
<
IStatsParams
>
):
Promise
<
import
(
"taobao-mini-sdk/lib/utils/resultmodel"
).
Result
<
string
|
boolean
|
object
|
object
[]
|
number
[]
|
string
[],
false
>
|
import
(
"taobao-mini-sdk/lib/utils/resultmodel"
).
Result
<
any
[],
tru
e
>>
;
}
v2.0/dist/index.d.ts
View file @
e41bcde3
...
...
@@ -13,8 +13,8 @@ declare const _default: {
}
>
,
{}:
{},
[
baseService
]:
[
import
(
"./service"
).
BaseService
])
=>
Promise
<
IResult
<
IActivityInfo
>>
;
getMyPrizeList
:
(
context
:
IContext
<
import
(
"./controller/awards.controller"
).
IPrizeListParams
>
,
{}:
{},
[
awardSer
]:
[
import
(
"./service"
).
AwardsService
])
=>
Promise
<
IResult
<
IAwards
[]
>>
;
receiveObjectPrize
:
(
context
:
IContext
<
import
(
"./controller/awards.controller"
).
IReceiveOjectParams
>
,
{}:
{},
[
awardSer
]:
[
import
(
"./service"
).
AwardsService
])
=>
Promise
<
IResult
<
boolean
>>
;
receiveEnamePrize
:
(
context
:
IContext
<
import
(
"./controller/awards.controller"
).
IReceiveEnameParams
>
,
{}:
{},
[
awardSer
]:
[
import
(
"./service"
).
AwardsService
])
=>
Promise
<
import
(
"taobao-mini-sdk/lib/utils/resultmodel"
).
Result
<
string
|
boolean
|
object
|
object
[]
|
number
[]
|
string
[],
false
>
|
import
(
"taobao-mini-sdk/lib/utils/resultmodel"
).
Result
<
{},
true
>>
;
receiveEnamePrize
:
(
context
:
IContext
<
import
(
"./controller/awards.controller"
).
IReceiveEnameParams
>
,
{}:
{},
[
awardSer
]:
[
import
(
"./service"
).
AwardsService
])
=>
Promise
<
import
(
"taobao-mini-sdk/lib/utils/resultmodel"
).
Result
<
string
|
boolean
|
object
|
string
[]
|
object
[]
|
number
[],
false
>
|
import
(
"taobao-mini-sdk/lib/utils/resultmodel"
).
Result
<
{},
true
>>
;
doHelp
:
(
context
:
IContext
<
IParams
>
,
{
userInfo
,
vipInfo
,
activityInfo
}:
IControllerInfos
,
[
userService
,
taskService
,
accessService
]:
[
import
(
"./service/user.service"
).
default
,
import
(
"./service"
).
TaskService
,
import
(
"./service"
).
AccessService
])
=>
Promise
<
IResult
<
boolean
>>
;
getStats
:
(
context
:
IContext
<
import
(
"./controller/stat.controller"
).
IStatsParams
>
)
=>
Promise
<
import
(
"taobao-mini-sdk/lib/utils/resultmodel"
).
Result
<
string
|
boolean
|
object
|
object
[]
|
number
[]
|
string
[],
false
>
|
import
(
"taobao-mini-sdk/lib/utils/resultmodel"
).
Result
<
any
[],
true
>>
;
getStats
:
(
context
:
IContext
<
import
(
"./controller/stat.controller"
).
IStatsParams
>
)
=>
Promise
<
import
(
"taobao-mini-sdk/lib/utils/resultmodel"
).
Result
<
string
|
boolean
|
object
|
string
[]
|
object
[]
|
number
[],
false
>
|
import
(
"taobao-mini-sdk/lib/utils/resultmodel"
).
Result
<
any
[],
true
>>
;
};
export
default
_default
;
v2.0/dist/service/awards.service.js
View file @
e41bcde3
...
...
@@ -198,14 +198,37 @@ var AwardsService = /** @class */ (function (_super) {
case
1
:
awardReceiveExpiredTime
=
(
_b
.
sent
()).
awardReceiveExpiredTime
;
return
[
4
/*yield*/
,
this
.
awardsdao
.
find
({
openId
:
openId
,
activityId
:
activityId
},
{
projection
:
{
_id
:
1
,
name
:
1
,
image
:
1
,
type
:
1
,
drawStatus
:
1
,
shipStatus
:
1
,
receiveName
:
1
,
phone
:
1
,
address
:
1
,
provice
:
1
,
city
:
1
,
area
:
1
,
remark
:
1
,
shipCompany
:
1
,
shipNum
:
1
},
sort
:
{
createTime
:
-
1
}
})
//
若有过期时间,且已过期
//
_id转化为id
];
case
2
:
myprizeList
=
_b
.
sent
();
// _id转化为id
myprizeList
=
myprizeList
.
map
(
function
(
v
)
{
var
prize
=
__assign
(
__assign
({},
v
),
{
id
:
v
.
_id
});
delete
v
.
_id
;
return
prize
;
});
// 若有过期时间,且已过期
if
(
awardReceiveExpiredTime
)
{
currentTime_1
=
Date
.
now
();
...
...
v2.0/dist/service/awards.service.js.map
View file @
e41bcde3
This diff is collapsed.
Click to expand it.
v2.0/src/controller/awards.controller.ts
View file @
e41bcde3
...
...
@@ -13,7 +13,7 @@ export interface IPrizeListParams {
export
interface
IReceiveOjectParams
{
activityId
:
string
_
id
:
string
id
:
string
name
:
string
phone
:
string
province
:
string
...
...
@@ -24,7 +24,7 @@ export interface IReceiveOjectParams {
export
interface
IReceiveEnameParams
{
activityId
:
string
_
id
:
string
id
:
string
}
export
default
class
AwardsController
{
...
...
@@ -58,9 +58,9 @@ export default class AwardsController {
{},
[
awardSer
]:
[
AwardsService
]
):
Promise
<
IResult
<
boolean
>>
{
let
{
province
,
city
,
area
,
addressdetail
,
_
id
,
name
,
phone
,
activityId
}
=
context
.
data
let
{
province
,
city
,
area
,
addressdetail
,
id
,
name
,
phone
,
activityId
}
=
context
.
data
let
result
=
await
awardSer
.
recieveObjectPrize
(
_
id
,
{
let
result
=
await
awardSer
.
recieveObjectPrize
(
id
,
{
activityId
,
province
,
city
,
...
...
@@ -83,9 +83,9 @@ export default class AwardsController {
@
userCheck
({
intercept
:
true
})
@
services
([
AwardsService
])
async
receiveEnamePrize
(
context
:
IContext
<
IReceiveEnameParams
>
,
{},
[
awardSer
]:
[
AwardsService
])
{
let
{
_
id
,
activityId
}
=
context
.
data
let
{
id
,
activityId
}
=
context
.
data
let
result
=
await
awardSer
.
recieveEnamePrize
(
_
id
,
activityId
)
let
result
=
await
awardSer
.
recieveEnamePrize
(
id
,
activityId
)
//@ts-ignore
if
(
result
.
code
)
{
//@ts-ignore
...
...
v2.0/src/service/awards.service.ts
View file @
e41bcde3
...
...
@@ -109,11 +109,38 @@ export default class AwardsService extends UserService {
let
myprizeList
=
await
this
.
awardsdao
.
find
(
{
openId
,
activityId
},
{
projection
:
{
_id
:
1
,
name
:
1
,
image
:
1
,
type
:
1
,
drawStatus
:
1
,
shipStatus
:
1
,
receiveName
:
1
,
phone
:
1
,
address
:
1
,
provice
:
1
,
city
:
1
,
area
:
1
,
remark
:
1
,
shipCompany
:
1
,
shipNum
:
1
},
sort
:
{
createTime
:
-
1
}
}
)
// _id转化为id
myprizeList
=
myprizeList
.
map
(
v
=>
{
let
prize
=
{
...
v
,
id
:
v
.
_id
}
delete
v
.
_id
return
prize
})
// 若有过期时间,且已过期
if
(
awardReceiveExpiredTime
)
{
let
currentTime
=
Date
.
now
()
...
...
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