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
5253e683
Commit
5253e683
authored
Oct 17, 2020
by
qinhaitao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:
🎸
增加街道数据
parent
bd501df2
Changes
10
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
22 additions
and
13 deletions
+22
-13
awards.controller.d.ts
v2.0/dist/controller/awards.controller.d.ts
+2
-1
awards.controller.js
v2.0/dist/controller/awards.controller.js
+4
-3
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.d.ts
v2.0/dist/service/awards.service.d.ts
+2
-1
awards.service.js
v2.0/dist/service/awards.service.js
+2
-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
+4
-2
awards.service.ts
v2.0/src/service/awards.service.ts
+3
-0
No files found.
v2.0/dist/controller/awards.controller.d.ts
View file @
5253e683
...
@@ -13,6 +13,7 @@ export interface IReceiveOjectParams {
...
@@ -13,6 +13,7 @@ export interface IReceiveOjectParams {
city
:
string
;
city
:
string
;
area
:
string
;
area
:
string
;
addressDetail
:
string
;
addressDetail
:
string
;
streetName
:
string
;
}
}
export
interface
IReceiveEnameParams
{
export
interface
IReceiveEnameParams
{
activityId
:
string
;
activityId
:
string
;
...
@@ -32,7 +33,7 @@ export default class AwardsController {
...
@@ -32,7 +33,7 @@ export default class AwardsController {
/**
/**
* 权益重新领取
* 权益重新领取
*/
*/
receiveEnamePrize
(
context
:
IContext
<
IReceiveEnameParams
>
,
{}:
{},
[
awardSer
]:
[
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
<
CodeType
|
IAwards
,
true
>>
;
receiveEnamePrize
(
context
:
IContext
<
IReceiveEnameParams
>
,
{}:
{},
[
awardSer
]:
[
AwardsService
]):
Promise
<
import
(
"taobao-mini-sdk/lib/utils/resultmodel"
).
Result
<
string
|
boolean
|
object
|
string
[]
|
number
[]
|
object
[],
false
>
|
import
(
"taobao-mini-sdk/lib/utils/resultmodel"
).
Result
<
CodeType
|
IAwards
,
true
>>
;
/**
/**
* 概率抽奖
* 概率抽奖
*/
*/
...
...
v2.0/dist/controller/awards.controller.js
View file @
5253e683
...
@@ -81,16 +81,17 @@ var AwardsController = /** @class */ (function () {
...
@@ -81,16 +81,17 @@ var AwardsController = /** @class */ (function () {
AwardsController
.
prototype
.
receiveObjectPrize
=
function
(
context
,
_a
,
_b
)
{
AwardsController
.
prototype
.
receiveObjectPrize
=
function
(
context
,
_a
,
_b
)
{
var
awardSer
=
_b
[
0
];
var
awardSer
=
_b
[
0
];
return
__awaiter
(
this
,
void
0
,
void
0
,
function
()
{
return
__awaiter
(
this
,
void
0
,
void
0
,
function
()
{
var
_c
,
province
,
city
,
area
,
addressDetail
,
id
,
name
,
phone
,
activityId
,
result
;
var
_c
,
province
,
city
,
area
,
streetName
,
addressDetail
,
id
,
name
,
phone
,
activityId
,
result
;
return
__generator
(
this
,
function
(
_d
)
{
return
__generator
(
this
,
function
(
_d
)
{
switch
(
_d
.
label
)
{
switch
(
_d
.
label
)
{
case
0
:
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
;
_c
=
context
.
data
,
province
=
_c
.
province
,
city
=
_c
.
city
,
area
=
_c
.
area
,
streetName
=
_c
.
streetName
,
addressDetail
=
_c
.
addressDetail
,
id
=
_c
.
id
,
name
=
_c
.
name
,
phone
=
_c
.
phone
,
activityId
=
_c
.
activityId
;
return
[
4
/*yield*/
,
awardSer
.
recieveObjectPrize
(
id
,
{
return
[
4
/*yield*/
,
awardSer
.
recieveObjectPrize
(
id
,
{
activityId
:
activityId
,
activityId
:
activityId
,
province
:
province
,
province
:
province
,
city
:
city
,
city
:
city
,
area
:
area
,
area
:
area
,
streetName
:
streetName
,
addressDetail
:
addressDetail
,
addressDetail
:
addressDetail
,
name
:
name
,
name
:
name
,
phone
:
phone
phone
:
phone
...
@@ -214,7 +215,7 @@ var AwardsController = /** @class */ (function () {
...
@@ -214,7 +215,7 @@ var AwardsController = /** @class */ (function () {
__metadata
(
"design:returntype"
,
Promise
)
__metadata
(
"design:returntype"
,
Promise
)
],
AwardsController
.
prototype
,
"getMyPrizeList"
,
null
);
],
AwardsController
.
prototype
,
"getMyPrizeList"
,
null
);
__decorate
([
__decorate
([
decorator_1
.
paramsCheck
([
'activityId'
,
'id'
,
'name'
,
'phone'
,
'province'
,
'city'
,
'area'
,
'addressDetail'
]),
decorator_1
.
paramsCheck
([
'activityId'
,
'id'
,
'name'
,
'phone'
,
'province'
,
'city'
,
'area'
,
'addressDetail'
,
'streetName'
]),
decorator_1
.
userCheck
({
intercept
:
true
}),
decorator_1
.
userCheck
({
intercept
:
true
}),
decorator_1
.
services
([
service_1
.
AwardsService
]),
decorator_1
.
services
([
service_1
.
AwardsService
]),
__metadata
(
"design:type"
,
Function
),
__metadata
(
"design:type"
,
Function
),
...
...
v2.0/dist/controller/awards.controller.js.map
View file @
5253e683
{"version":3,"file":"awards.controller.js","sourceRoot":"","sources":["../../src/controller/awards.controller.ts"],"names":[],"mappings":";AAAA,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEd,0CAAkF;AAClF,8BAAqC;AACrC,sCAA0C;AAC1C,0CAAmF;AACnF,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;gCAC1B,IAAI,EAAE,MAAM;6BACb,CAAC,EAAA;;;;KACH;IAED;;OAEG;IAIG,6CAAkB,GAAxB,UACE,OAAsC,EACtC,EAAE,EACF,EAA2B;YAA1B,QAAQ,QAAA;;;;;;wBAEL,KAAuE,OAAO,CAAC,IAAI,EAAjF,QAAQ,cAAA,EAAE,IAAI,UAAA,EAAE,IAAI,UAAA,EAAE,aAAa,mBAAA,EAAE,EAAE,QAAA,EAAE,IAAI,UAAA,EAAE,KAAK,WAAA,EAAE,UAAU,gBAAA,CAAiB;wBAE1E,qBAAM,QAAQ,CAAC,kBAAkB,CAAC,EAAE,EAAE;gCACjD,UAAU,YAAA;gCACV,QAAQ,UAAA;gCACR,IAAI,MAAA;gCACJ,IAAI,MAAA;gCACJ,aAAa,eAAA;gCACb,IAAI,MAAA;gCACJ,KAAK,OAAA;6BACN,CAAC,EAAA;;wBARE,MAAM,GAAG,SAQX;wBAEF,IAAK,MAAmB,CAAC,IAAI,EAAE;4BAC7B,sBAAO,kBAAY,CAAC,KAAK,CA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,CAAC,CAAC,uBAAa,CAAC,CAAC;;;;0DAczB;IAQD;QAHC,uBAAW,CAAC,CAAC,YAAY,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,eAAe,EAAE,YAAY,CAAC,CAAC;QAC7G,qBAAS,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;QAC9B,oBAAQ,CAAC,CAAC,uBAAa,CAAC,CAAC;;;;8DAuBzB;IAQD;QAHC,uBAAW,CAAC,CAAC,YAAY,EAAE,IAAI,CAAC,CAAC;QACjC,qBAAS,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;QAC9B,oBAAQ,CAAC,CAAC,uBAAa,CAAC,CAAC;;;;6DAYzB;IAQD;QAHC,uBAAW,CAAC,CAAC,YAAY,EAAE,eAAe,CAAC,CAAC;QAC5C,6BAAiB;QACjB,oBAAQ,CAAC,CAAC,uBAAa,CAAC,CAAC;;;;4DAiEzB;IACH,uBAAC;CAAA,AA9ID,IA8IC;kBA9IoB,gBAAgB"}
\ No newline at end of file
\ No newline at end of file
v2.0/dist/controller/stat.controller.d.ts
View file @
5253e683
...
@@ -18,5 +18,5 @@ export default class StatController {
...
@@ -18,5 +18,5 @@ export default class StatController {
/**
/**
* 统计数据
* 统计数据
*/
*/
getStats
(
context
:
IContext
<
IGetStatsParams
>
):
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
<
IGetStatsParams
>
):
Promise
<
import
(
"taobao-mini-sdk/lib/utils/resultmodel"
).
Result
<
string
|
boolean
|
object
|
string
[]
|
number
[]
|
object
[],
false
>
|
import
(
"taobao-mini-sdk/lib/utils/resultmodel"
).
Result
<
any
,
tru
e
>>
;
}
}
v2.0/dist/index.d.ts
View file @
5253e683
...
@@ -15,8 +15,8 @@ declare const _default: {
...
@@ -15,8 +15,8 @@ declare const _default: {
list
:
IAwards
[];
list
:
IAwards
[];
}
>>
;
}
>>
;
receiveObjectPrize
:
(
context
:
IContext
<
import
(
"./controller/awards.controller"
).
IReceiveOjectParams
>
,
{}:
{},
[
awardSer
]:
[
import
(
"./service"
).
AwardsService
])
=>
Promise
<
IResult
<
boolean
>>
;
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
|
string
[]
|
object
[]
|
number
[],
false
>
|
import
(
"taobao-mini-sdk/lib/utils/resultmodel"
).
Result
<
import
(
"taobao-mini-sdk/lib/utils/codetypes"
).
CodeType
|
IAwards
,
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
[]
|
number
[]
|
object
[],
false
>
|
import
(
"taobao-mini-sdk/lib/utils/resultmodel"
).
Result
<
import
(
"taobao-mini-sdk/lib/utils/codetypes"
).
CodeType
|
IAwards
,
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
>>
;
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"
).
IGetStatsParams
>
)
=>
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
>>
;
getStats
:
(
context
:
IContext
<
import
(
"./controller/stat.controller"
).
IGetStatsParams
>
)
=>
Promise
<
import
(
"taobao-mini-sdk/lib/utils/resultmodel"
).
Result
<
string
|
boolean
|
object
|
string
[]
|
number
[]
|
object
[],
false
>
|
import
(
"taobao-mini-sdk/lib/utils/resultmodel"
).
Result
<
any
,
true
>>
;
};
};
export
default
_default
;
export
default
_default
;
v2.0/dist/service/awards.service.d.ts
View file @
5253e683
...
@@ -28,11 +28,12 @@ export default class AwardsService extends UserService {
...
@@ -28,11 +28,12 @@ export default class AwardsService extends UserService {
openId
:
string
;
openId
:
string
;
activityId
:
string
;
activityId
:
string
;
}):
Promise
<
Array
<
IAwards
>>
;
}):
Promise
<
Array
<
IAwards
>>
;
recieveObjectPrize
(
_id
:
string
,
{
activityId
,
province
,
city
,
area
,
addressDetail
,
name
,
phone
}:
{
recieveObjectPrize
(
_id
:
string
,
{
activityId
,
province
,
city
,
area
,
streetName
,
addressDetail
,
name
,
phone
}:
{
activityId
:
string
;
activityId
:
string
;
province
:
string
;
province
:
string
;
city
:
string
;
city
:
string
;
area
:
string
;
area
:
string
;
streetName
:
string
;
addressDetail
:
string
;
addressDetail
:
string
;
name
:
string
;
name
:
string
;
phone
:
string
|
number
;
phone
:
string
|
number
;
...
...
v2.0/dist/service/awards.service.js
View file @
5253e683
...
@@ -250,7 +250,7 @@ var AwardsService = /** @class */ (function (_super) {
...
@@ -250,7 +250,7 @@ var AwardsService = /** @class */ (function (_super) {
};
};
// 领取实物
// 领取实物
AwardsService
.
prototype
.
recieveObjectPrize
=
function
(
_id
,
_a
)
{
AwardsService
.
prototype
.
recieveObjectPrize
=
function
(
_id
,
_a
)
{
var
activityId
=
_a
.
activityId
,
province
=
_a
.
province
,
city
=
_a
.
city
,
area
=
_a
.
area
,
addressDetail
=
_a
.
addressDetail
,
name
=
_a
.
name
,
phone
=
_a
.
phone
;
var
activityId
=
_a
.
activityId
,
province
=
_a
.
province
,
city
=
_a
.
city
,
area
=
_a
.
area
,
streetName
=
_a
.
streetName
,
addressDetail
=
_a
.
addressDetail
,
name
=
_a
.
name
,
phone
=
_a
.
phone
;
return
__awaiter
(
this
,
void
0
,
void
0
,
function
()
{
return
__awaiter
(
this
,
void
0
,
void
0
,
function
()
{
var
awardReceiveExpiredTime
,
award
,
result
,
e_3
;
var
awardReceiveExpiredTime
,
award
,
result
,
e_3
;
return
__generator
(
this
,
function
(
_b
)
{
return
__generator
(
this
,
function
(
_b
)
{
...
@@ -289,6 +289,7 @@ var AwardsService = /** @class */ (function (_super) {
...
@@ -289,6 +289,7 @@ var AwardsService = /** @class */ (function (_super) {
province
:
province
,
province
:
province
,
city
:
city
,
city
:
city
,
area
:
area
,
area
:
area
,
streetName
:
streetName
,
addressDetail
:
addressDetail
,
addressDetail
:
addressDetail
,
receiveTime
:
Date
.
now
(),
receiveTime
:
Date
.
now
(),
updateTime
:
Date
.
now
()
updateTime
:
Date
.
now
()
...
...
v2.0/dist/service/awards.service.js.map
View file @
5253e683
This diff is collapsed.
Click to expand it.
v2.0/src/controller/awards.controller.ts
View file @
5253e683
...
@@ -20,6 +20,7 @@ export interface IReceiveOjectParams {
...
@@ -20,6 +20,7 @@ export interface IReceiveOjectParams {
city
:
string
city
:
string
area
:
string
area
:
string
addressDetail
:
string
addressDetail
:
string
streetName
:
string
}
}
export
interface
IReceiveEnameParams
{
export
interface
IReceiveEnameParams
{
...
@@ -52,7 +53,7 @@ export default class AwardsController {
...
@@ -52,7 +53,7 @@ export default class AwardsController {
/**
/**
* 领取实物
* 领取实物
*/
*/
@
paramsCheck
([
'activityId'
,
'id'
,
'name'
,
'phone'
,
'province'
,
'city'
,
'area'
,
'addressDetail'
])
@
paramsCheck
([
'activityId'
,
'id'
,
'name'
,
'phone'
,
'province'
,
'city'
,
'area'
,
'addressDetail'
,
'streetName'
])
@
userCheck
({
intercept
:
true
})
@
userCheck
({
intercept
:
true
})
@
services
([
AwardsService
])
@
services
([
AwardsService
])
async
receiveObjectPrize
(
async
receiveObjectPrize
(
...
@@ -60,13 +61,14 @@ export default class AwardsController {
...
@@ -60,13 +61,14 @@ export default class AwardsController {
{},
{},
[
awardSer
]:
[
AwardsService
]
[
awardSer
]:
[
AwardsService
]
):
Promise
<
IResult
<
boolean
>>
{
):
Promise
<
IResult
<
boolean
>>
{
let
{
province
,
city
,
area
,
addressDetail
,
id
,
name
,
phone
,
activityId
}
=
context
.
data
let
{
province
,
city
,
area
,
streetName
,
addressDetail
,
id
,
name
,
phone
,
activityId
}
=
context
.
data
let
result
=
await
awardSer
.
recieveObjectPrize
(
id
,
{
let
result
=
await
awardSer
.
recieveObjectPrize
(
id
,
{
activityId
,
activityId
,
province
,
province
,
city
,
city
,
area
,
area
,
streetName
,
addressDetail
,
addressDetail
,
name
,
name
,
phone
phone
...
...
v2.0/src/service/awards.service.ts
View file @
5253e683
...
@@ -176,6 +176,7 @@ export default class AwardsService extends UserService {
...
@@ -176,6 +176,7 @@ export default class AwardsService extends UserService {
province
,
province
,
city
,
city
,
area
,
area
,
streetName
,
addressDetail
,
addressDetail
,
name
,
name
,
phone
phone
...
@@ -184,6 +185,7 @@ export default class AwardsService extends UserService {
...
@@ -184,6 +185,7 @@ export default class AwardsService extends UserService {
province
:
string
province
:
string
city
:
string
city
:
string
area
:
string
area
:
string
streetName
:
string
addressDetail
:
string
addressDetail
:
string
name
:
string
name
:
string
phone
:
string
|
number
phone
:
string
|
number
...
@@ -220,6 +222,7 @@ export default class AwardsService extends UserService {
...
@@ -220,6 +222,7 @@ export default class AwardsService extends UserService {
province
,
province
,
city
,
city
,
area
,
area
,
streetName
,
addressDetail
,
addressDetail
,
receiveTime
:
Date
.
now
(),
receiveTime
:
Date
.
now
(),
updateTime
:
Date
.
now
()
updateTime
:
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