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
43b8148d
Commit
43b8148d
authored
Sep 03, 2020
by
qinhaitao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:
🎸
findone 加入类型推断
parent
c98685f5
Changes
20
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
117 additions
and
99 deletions
+117
-99
awards.controller.d.ts
v2.0/dist/controller/awards.controller.d.ts
+2
-1
task.controller.js
v2.0/dist/controller/task.controller.js
+1
-0
task.controller.js.map
v2.0/dist/controller/task.controller.js.map
+1
-1
access.service.d.ts
v2.0/dist/service/access.service.d.ts
+2
-2
awards.service.d.ts
v2.0/dist/service/awards.service.d.ts
+2
-2
awards.service.js
v2.0/dist/service/awards.service.js
+1
-0
awards.service.js.map
v2.0/dist/service/awards.service.js.map
+1
-1
user.service.d.ts
v2.0/dist/service/user.service.d.ts
+4
-4
user.service.js.map
v2.0/dist/service/user.service.js.map
+1
-1
getSession.d.ts
v2.0/dist/utils/package/getSession.d.ts
+2
-2
getSession.js.map
v2.0/dist/utils/package/getSession.js.map
+1
-1
logger.d.ts
v2.0/dist/utils/package/logger.d.ts
+1
-1
awards.service.ts
v2.0/src/service/awards.service.ts
+6
-5
user.service.ts
v2.0/src/service/user.service.ts
+2
-2
awards.d.ts
v2.0/src/typings/awards.d.ts
+1
-0
dao.d.ts
v2.0/src/typings/dao.d.ts
+52
-0
index.d.ts
v2.0/src/typings/index.d.ts
+0
-51
seller.d.ts
v2.0/src/typings/seller.d.ts
+12
-0
getSession.ts
v2.0/src/utils/package/getSession.ts
+2
-2
tsconfig.json
v2.0/tsconfig.json
+23
-23
No files found.
v2.0/dist/controller/awards.controller.d.ts
View file @
43b8148d
/** @format */
/** @format */
import
{
AwardsService
}
from
'../service'
;
import
{
AwardsService
}
from
'../service'
;
import
{
CodeType
}
from
'taobao-mini-sdk/lib/utils/codetypes'
;
export
interface
IPrizeListParams
{
export
interface
IPrizeListParams
{
activityId
:
string
;
activityId
:
string
;
}
}
...
@@ -39,7 +40,7 @@ export default class AwardsController {
...
@@ -39,7 +40,7 @@ export default class AwardsController {
name
:
string
;
name
:
string
;
};
};
},
true
>
|
import
(
"taobao-mini-sdk/lib/utils/resultmodel"
).
Result
<
{
},
true
>
|
import
(
"taobao-mini-sdk/lib/utils/resultmodel"
).
Result
<
{
id
:
any
;
id
:
number
|
CodeType
;
type
:
number
;
type
:
number
;
name
:
string
;
name
:
string
;
image
:
string
;
image
:
string
;
...
...
v2.0/dist/controller/task.controller.js
View file @
43b8148d
...
@@ -87,6 +87,7 @@ var Task = /** @class */ (function () {
...
@@ -87,6 +87,7 @@ var Task = /** @class */ (function () {
updatedUserInfo
=
_c
.
sent
();
updatedUserInfo
=
_c
.
sent
();
if
(
!
updatedUserInfo
)
if
(
!
updatedUserInfo
)
return
[
2
/*return*/
,
sdk_1
.
resultsModel
.
error
(
constants_1
.
CODE_TYPES
.
SYSTEM_ERROR
,
'更新任务列表失败'
)
return
[
2
/*return*/
,
sdk_1
.
resultsModel
.
error
(
constants_1
.
CODE_TYPES
.
SYSTEM_ERROR
,
'更新任务列表失败'
)
// 返回对应的任务时, B端b_activity_config tasks 需配置对应的任务
// 会员任务
// 会员任务
];
];
vipTask
=
taskService
.
initVipTask
(
updatedUserInfo
,
vipInfo
,
tasks
);
vipTask
=
taskService
.
initVipTask
(
updatedUserInfo
,
vipInfo
,
tasks
);
...
...
v2.0/dist/controller/task.controller.js.map
View file @
43b8148d
{"version":3,"file":"task.controller.js","sourceRoot":"","sources":["../../src/controller/task.controller.ts"],"names":[],"mappings":";AAAA,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEd,4CAA2D;AAC3D,0CAA2F;AAE3F,8BAA6C;AAC7C,sCAAqD;AAIrD;IAAA;IA2UA,CAAC;IA1UC;;OAEG;IAKG,0BAAW,GAAjB,UACE,OAAyC,EACzC,EAA8D,EAC9D,EAA4B;YAD1B,QAAQ,cAAA,EAAE,OAAO,aAAA,EAAE,YAAY,kBAAA,EAAE,OAAO,aAAA;YACzC,WAAW,QAAA;;;;;;wBAEJ,KAAK,GAAgB,YAAY,MAA5B,EAAE,SAAS,GAAK,YAAY,UAAjB,CAAiB;wBAGnB,qBAAM,WAAW,CAAC,WAAW,CACjD,QAAQ,CAAC,GAAG;4BACZ,YAAY;4BACZ;gCACE,WAAW,CAAC,aAAa,CAAC,QAAQ,EAAE,OAAO,EAAE,KAAK,CAAC;gCACnD,+CAA+C;gCAC/C,8EAA8E;6BAC/E,EACD,QAAQ,CACT,EAAA;;wBATG,eAAe,GAAG,SASrB;wBAED,IAAI,CAAC,eAAe;4BAAE,sBAAO,kBAAY,CAAC,KAAK,CAAC,sBAAU,CAAC,YAAY,EAAE,UAAU,CAAC;gCAEpF,OAAO;8BAF6E;wBAG9E,OAAO,GAAG,WAAW,CAAC,WAAW,CAAC,eAAe,EAAE,OAAO,EAAE,KAAK,CAAC,CAAA;wBAElE,UAAU,GAAG,WAAW,CAAC,cAAc,CAAC,eAAe,EAAE,KAAK,CAAC,CAAA;wBACrE,OAAO;wBACP,oEAAoE;wBACpE,UAAU;wBACV,gFAAgF;wBAChF,YAAY;wBACZ,kFAAkF;wBAClF,YAAY;wBACZ,oFAAoF;wBACpF,YAAY;wBACZ,4EAA4E;wBAC5E,UAAU;wBACV,0EAA0E;wBAE1E,OAAO;wBACP,yFAAyF;wBAEzF,sBAA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UD,IA6UC;kBA7UoB,IAAI"}
\ No newline at end of file
\ No newline at end of file
v2.0/dist/service/access.service.d.ts
View file @
43b8148d
...
@@ -11,6 +11,6 @@ export default class UserAccessService {
...
@@ -11,6 +11,6 @@ export default class UserAccessService {
* 增加访问记录
* 增加访问记录
* @param {是否关注店铺} isFollow
* @param {是否关注店铺} isFollow
*/
*/
addAccess
(
isFollow
:
boolean
,
isVip
:
boolean
):
Promise
<
any
>
;
addAccess
(
isFollow
:
boolean
,
isVip
:
boolean
):
Promise
<
number
>
;
getAccessCount
():
Promise
<
any
>
;
getAccessCount
():
Promise
<
number
>
;
}
}
v2.0/dist/service/awards.service.d.ts
View file @
43b8148d
...
@@ -13,7 +13,7 @@ export default class AwardsService extends UserService {
...
@@ -13,7 +13,7 @@ export default class AwardsService extends UserService {
* 插入奖品记录
* 插入奖品记录
* @param {*} award
* @param {*} award
*/
*/
addAward
(
award
:
IAwards
):
Promise
<
any
>
;
addAward
(
award
:
IAwards
):
Promise
<
number
|
import
(
"taobao-mini-sdk/lib/utils/codetypes"
).
CodeType
>
;
/**
/**
* 发放奖品
* 发放奖品
* @param {*} document
* @param {*} document
...
@@ -46,5 +46,5 @@ export default class AwardsService extends UserService {
...
@@ -46,5 +46,5 @@ export default class AwardsService extends UserService {
* 获取活动配置项奖品
* 获取活动配置项奖品
* @param {string} _id
* @param {string} _id
*/
*/
getActivityPrizeById
(
_id
:
string
):
Promise
<
any
>
;
getActivityPrizeById
(
_id
:
string
):
Promise
<
unknown
>
;
}
}
v2.0/dist/service/awards.service.js
View file @
43b8148d
...
@@ -240,6 +240,7 @@ var AwardsService = /** @class */ (function (_super) {
...
@@ -240,6 +240,7 @@ var AwardsService = /** @class */ (function (_super) {
}
}
}
}
v
.
expiredTime
=
awardReceiveExpiredTime
;
v
.
expiredTime
=
awardReceiveExpiredTime
;
return
v
;
});
});
}
}
return
[
2
/*return*/
,
myprizeList
];
return
[
2
/*return*/
,
myprizeList
];
...
...
v2.0/dist/service/awards.service.js.map
View file @
43b8148d
{"version":3,"file":"awards.service.js","sourceRoot":"","sources":["../../src/service/awards.service.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,8BAAgC;AAChC,+CAAwC;AACxC,0CAA8G;AAC9G,4BAA4D;AAC5D,kCAA2E;AAE3E;IAA2C,iCAAW;IAGpD,uBAAY,OAA0B;QAAtC,YACE,kBAAM,OAAO,CAAC,SAGf;QAFC,KAAI,CAAC,SAAS,GAAG,IAAI,aAAO,CAAC,OAAO,EAAE,mBAAc,CAAC,CAAA;QACrD,KAAI,CAAC,gBAAgB,GAAG,IAAI,aAAO,CAAC,OAAO,EAAE,yBAAoB,CAAC,CAAA;;IACpE,CAAC;IAED,uBAAuB;IACjB,mCAAW,GAAjB,UAAkB,GAAW;;;;;4BACd,qBAAM,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC,EAAE,GAAG,KAAA,EAAE,YAAY,gBAAwB,EAAE,CAAC;wBAC/F,QAAQ;sBADuF;;wBAA3F,MAAM,GAAG,SAAkF;wBAC/F,QAAQ;wBACR,IAAI,CAAC,MAAM,EAAE;4BACX,sBAAO,sBAAU,CAAC,cAAc,EAAA;yBACjC;wBACK,WAAW,GAAsB,MAAM,YAA5B,EAAE,KAAK,GAAe,MAAM,MAArB,EAAE,QAAQ,GAAK,MAAM,SAAX,CAAW;wBAC7C,SAAS;wBACT,IAAI,WAAW,KAAK,sBAAU,CAAC,QAAQ,EAAE;4BACvC,sBAAO,CAAC,EAAA;yBACT;wBACD,QAAQ;wBACR,IAAI,QAAQ,IAAI,KAAK,EAAE;4BACrB,sBAAO,sBAAU,CAAC,cAAc,EAAA;yBACjC;;;;wBAEQ,qBAAM,IAAI,CAAC,gBAAgB,CAAC,MAAM,CACvC;gCACE,GAAG,KAAA;gCACH,MAAM,EAAE,4BAA4B;6BACrC,EACD;gCACE,IAAI,EAAE;o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,EAAE;oCACJ,aAAa;oCACb,UAAU,EAAE,MAAM,CAAC,UAAU;oCAC7B,aAAa;oCACb,MAAM,EAAE,MAAM,CAAC,MAAM;oCACrB,UAAU,EAAE,IAAI,CAAC,GAAG,EAAE;iCACvB;6BACF,CACF,EAAA;;wBAZD,KAAK;wBACL,SAWC,CAAA;wBACD,sBAAO,MAAM,EAAA;;;;KACd;IAED,eAAe;IACT,sCAAc,GAApB,UAAqB,KAAwD;;;gBAC3E,sBAAO,IAAI,CAAC,gBAAgB,CAAC,IAAI,YAC/B,YAAY,oBACT,KAAK,EACR,EAAA;;;KACH;IAED,WAAW;IACL,6CAAqB,GAA3B,UAA4B,MAA6B;;;;gBAEjD,WAAW,GAAG,YAAI,CAAC,KAAK,CAAC,CAAA;gBAE/B,sBAAO,MAAM,CAAC,IAAI,CAAC,UAAA,CAAC,IAAI,OAAA,WAAW,IAAI,CAAC,CAAC,WAAW,IAAI,WAAW,IAAI,CAAC,CAAC,aAAa,EAA9D,CAA8D,CAAC,EAAA;;;KACxF;IAED;;;OAGG;IACG,4CAAoB,GAA1B,UAA2B,GAAW;;;;4BAC7B,qBAAM,IAAI,CAAC,gBAAgB,CAAC,OAAO,CACxC,EAAE,GAAG,KAAA,EAAE,YAAY,gBAAwB,EAAE,EAC7C;4BACE,IAAI,EAAE;gCACJ,KAAK,EAAE,CAAC;6BACT;yBACF,CACF,EAAA;4BAPD,sBAAO,SAON,EAAA;;;;KACF;IACH,oBAAC;AAAD,CAAC,AA3RD,CAA2C,sBAAW,GA2RrD"}
\ No newline at end of file
\ No newline at end of file
v2.0/dist/service/user.service.d.ts
View file @
43b8148d
...
@@ -11,14 +11,14 @@ declare class UserService extends BaseService {
...
@@ -11,14 +11,14 @@ declare class UserService extends BaseService {
* @desc 获取当前打开活动的用户详情
* @desc 获取当前打开活动的用户详情
* @returns 若用户不存在,返回null; 用户存在,返回用户信息(object对象)
* @returns 若用户不存在,返回null; 用户存在,返回用户信息(object对象)
*/
*/
getUserInfo
():
Promise
<
any
>
;
getUserInfo
():
Promise
<
IUserInfo
>
;
/**
/**
* @desc 根据inviteId获取用户详情
* @desc 根据inviteId获取用户详情
* @desc 常用于助力分享码为用户openId, 被邀请人打开活动助力时需要获取邀请人的用户详情
* @desc 常用于助力分享码为用户openId, 被邀请人打开活动助力时需要获取邀请人的用户详情
* @param {邀请人的openId} inviteId
* @param {邀请人的openId} inviteId
* @returns 若用户不存在,返回null; 用户存在,返回用户信息(object对象)
* @returns 若用户不存在,返回null; 用户存在,返回用户信息(object对象)
*/
*/
getUserInfoByOpenId
(
inviteId
:
string
):
Promise
<
any
>
;
getUserInfoByOpenId
(
inviteId
:
string
):
Promise
<
IUserInfo
>
;
/**
/**
* @desc 获取是否是会员
* @desc 获取是否是会员
* @param {调用淘宝接口的session} session
* @param {调用淘宝接口的session} session
...
@@ -33,7 +33,7 @@ declare class UserService extends BaseService {
...
@@ -33,7 +33,7 @@ declare class UserService extends BaseService {
* @returns
* @returns
* @memberof UserService
* @memberof UserService
*/
*/
initUserData
(
vipInfo
:
IVipInfo
,
activityInfo
:
IActivityInfo
):
Promise
<
any
>
;
initUserData
(
vipInfo
:
IVipInfo
,
activityInfo
:
IActivityInfo
):
Promise
<
number
>
;
updateUserData
(
vipInfo
:
IVipInfo
,
userInfo
:
IUserInfo
,
activityInfo
:
IActivityInfo
):
Promise
<
void
>
;
updateUserData
(
vipInfo
:
IVipInfo
,
userInfo
:
IUserInfo
,
activityInfo
:
IActivityInfo
):
Promise
<
void
>
;
/**
/**
* @desc 更新用户表
* @desc 更新用户表
...
@@ -47,7 +47,7 @@ declare class UserService extends BaseService {
...
@@ -47,7 +47,7 @@ declare class UserService extends BaseService {
* @param {用户的主键id} _id
* @param {用户的主键id} _id
* @returns 若用户不存在,返回null; 用户存在,返回用户信息(object对象)
* @returns 若用户不存在,返回null; 用户存在,返回用户信息(object对象)
*/
*/
getUserInfoById
(
_id
:
string
):
Promise
<
any
>
;
getUserInfoById
(
_id
:
string
):
Promise
<
unknown
>
;
/**
/**
*判断是否新会员
*判断是否新会员
*
*
...
...
v2.0/dist/service/user.service.js.map
View file @
43b8148d
{"version":3,"file":"user.service.js","sourceRoot":"","sources":["../../src/service/user.service.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,8BAAwC;AACxC,+CAAwC;AACxC,4BAAoC;AACpC,kCAAiD;AACjD,sCAAqC;AAErC;IAA0B,+BAAW;IAEnC,qBAAY,OAA0B;QAAtC,YACE,kBAAM,OAAO,CAAC,SAEf;QADC,KAAI,CAAC,OAAO,GAAG,IAAI,aAAO,CAAC,OAAO,EAAE,iBAAY,CAAC,CAAA;;IACnD,CAAC;IACD;;;OAGG;IACG,iCAAW,GAAjB;;;;;;wBACM,KAAmB,IAAI,CAAC,OAAO,EAA7B,MAAM,YAAA,EAAE,IAAI,UAAA,CAAiB;wBAC7B,UAAU,GAAK,IAAI,WAAT,CAAS;wBACZ,qBAAM,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,MAAM,QAAA,EAAE,UAAU,YAAA,EAAE,CAAC,EAAA;;wBAA3D,MAAM,GAAG,SAAkD;wBAC/D,sBAAO,MAAM,EAAA;;;;KACd;IAED;;;;;OAKG;IACG,yCAAmB,GAAzB,UAA0B,QAAgB;;;;;;wBAClC,UAAU,GAAK,IAAI,CAAC,OAAO,CAAC,IAAI,WAAtB,CAAsB;wBACzB,qBAAM,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,UAAU,YAAA,EAAE,CAAC,EAAA;;wBAArE,MAAM,GAAG,SAA4D;wBACzE,sBAAO,MAAM,EAAA;;;;KACd;IAED;;;;OAIG;IACG,gCAAU,GAAhB,UAAiB,OAAe,EAAE,gBAA6B,EAAE,WAAwB;QAAvD,iCAAA,EAAA,qBAA6B;QAAE,4BAAA,EAAA,gBAAwB;;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;QAE1C,IAAA,IAAI,GACZ,QAAQ,YADI,CACJ;QAEJ,IAAA,KAAK,GAAK,OAAO,MAAZ,CAAY;QAEzB,OAAO,CAAC,IAAI,IAAI,KAAK,CAAA;IACvB,CAAC;IAED,uCAAiB,GAAjB,UAAkB,MAAmB;QACnC,IAAM,KAAK,GAAG,gBAAQ,EAAE,CAAA;QACxB,6BACK,MAAM,KACT,SAAS,EAAE,IAAI,EACf,YAAY,EAAE,IAAI,CAAC,GAAG,EAAE,EACxB,WAAW,EAAE,KAAK,IACnB;IACH,CAAC;IAED,0CAAoB,GAApB,UAAqB,MAAmB;QACtC,IAAM,KAAK,GAAG,gBAAQ,EAAE,CAAA;QACxB,6BACK,MAAM,KACT,SAAS,EAAE,IAAI,EACf,UAAU,EAAE,IAAI,CAAC,GAAG,EAAE,EACtB,SAAS,EAAE,KAAK,IACjB;IACH,CAAC;IACH,kBAAC;AAAD,CAAC,AA3ND,CAA0B,sBAAW,GA2NpC;AAED,kBAAe,WAAW,CAAA"}
\ No newline at end of file
\ No newline at end of file
v2.0/dist/utils/package/getSession.d.ts
View file @
43b8148d
...
@@ -7,6 +7,6 @@ export declare const getSellerSession: (context: IContext<IParams>, activityId?:
...
@@ -7,6 +7,6 @@ export declare const getSellerSession: (context: IContext<IParams>, activityId?:
session
?:
undefined
;
session
?:
undefined
;
userNick
?:
undefined
;
userNick
?:
undefined
;
}
|
{
}
|
{
session
:
any
;
session
:
string
;
userNick
:
any
;
userNick
:
string
;
}
>
;
}
>
;
v2.0/dist/utils/package/getSession.js.map
View file @
43b8148d
{"version":3,"file":"getSession.js","sourceRoot":"","sources":["../../../src/utils/package/getSession.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,+BAAuE;AAEvE,iCAAmC;AAEtB,QAAA,gBAAgB,GAAG,UAAO,OAA0B,EAAE,UAAmB;;;;;gBACpF,IAAI,CAAC,UAAU,EAAE;oBACf,UAA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B,GAAG,SAA6D;gBACxF,IAAI,CAAC,oBAAoB;oBAAE,sBAAO,EAAE,EAAA;gBAEvB,qBAAM,SAAS,CAAC,OAAO,CAAc;wBAChD,MAAM,EAAE,oBAAoB,CAAC,MAAM;qBACpC,CAAC;oBACF,2CAA2C;kBADzC;;gBAFE,MAAM,GAAG,SAEX;gBACF,2CAA2C;gBAC3C,IAAI,CAAC,MAAM;oBAAE,sBAAO,EAAE,EAAA;gBACtB,sBAAO;wBACL,OAAO,EAAE,MAAM,CAAC,WAAW;wBAC3B,QAAQ,EAAE,MAAM,CAAC,QAAQ;qBAC1B,EAAA;;;KACF,CAAA"}
\ No newline at end of file
\ No newline at end of file
v2.0/dist/utils/package/logger.d.ts
View file @
43b8148d
export
declare
const
logFn
:
(
context
:
IContext
<
IParams
>
)
=>
void
;
export
declare
const
logFn
:
(
context
:
IContext
<
IParams
>
)
=>
void
;
export
declare
const
recordErrorLog
:
(
context
:
IContext
<
IParams
>
,
baseInfos
:
IControllerInfos
,
errorMsg
:
string
,
stack
:
string
)
=>
Promise
<
any
>
;
export
declare
const
recordErrorLog
:
(
context
:
IContext
<
IParams
>
,
baseInfos
:
IControllerInfos
,
errorMsg
:
string
,
stack
:
string
)
=>
Promise
<
number
>
;
export
declare
const
logger
:
(
message
:
any
)
=>
void
;
export
declare
const
logger
:
(
message
:
any
)
=>
void
;
v2.0/src/service/awards.service.ts
View file @
43b8148d
...
@@ -21,7 +21,7 @@ export default class AwardsService extends UserService {
...
@@ -21,7 +21,7 @@ export default class AwardsService extends UserService {
// 根据奖品Id扣库存, 扣库存成功返回为1
// 根据奖品Id扣库存, 扣库存成功返回为1
async
reduceStock
(
_id
:
string
)
{
async
reduceStock
(
_id
:
string
)
{
let
result
=
await
this
.
activityprizedao
.
findOne
({
_id
,
deleteStatus
:
ACTIVITY_STATUS
.
NORMAL
})
let
result
=
await
this
.
activityprizedao
.
findOne
<
IActivityPrize
>
({
_id
,
deleteStatus
:
ACTIVITY_STATUS
.
NORMAL
})
// 奖品不存在
// 奖品不存在
if
(
!
result
)
{
if
(
!
result
)
{
return
CODE_TYPES
.
ERROR_NO_PRIZE
return
CODE_TYPES
.
ERROR_NO_PRIZE
...
@@ -106,7 +106,7 @@ export default class AwardsService extends UserService {
...
@@ -106,7 +106,7 @@ export default class AwardsService extends UserService {
async
getMyPrizeList
({
openId
,
activityId
}:
{
openId
:
string
;
activityId
:
string
}):
Promise
<
Array
<
IAwards
>>
{
async
getMyPrizeList
({
openId
,
activityId
}:
{
openId
:
string
;
activityId
:
string
}):
Promise
<
Array
<
IAwards
>>
{
// 获取奖品领取过期时间
// 获取奖品领取过期时间
let
{
awardReceiveExpiredTime
}
=
await
this
.
getBaseInfo
(
activityId
)
let
{
awardReceiveExpiredTime
}
=
await
this
.
getBaseInfo
(
activityId
)
let
myprizeList
=
await
this
.
awardsdao
.
find
(
let
myprizeList
=
await
this
.
awardsdao
.
find
<
IAwards
>
(
{
openId
,
activityId
},
{
openId
,
activityId
},
{
{
projection
:
{
projection
:
{
...
@@ -144,7 +144,7 @@ export default class AwardsService extends UserService {
...
@@ -144,7 +144,7 @@ export default class AwardsService extends UserService {
// 若有过期时间,且已过期
// 若有过期时间,且已过期
if
(
awardReceiveExpiredTime
)
{
if
(
awardReceiveExpiredTime
)
{
let
currentTime
=
Date
.
now
()
let
currentTime
=
Date
.
now
()
myprizeList
=
myprizeList
.
map
(
(
v
:
{
drawStatus
:
number
;
remark
:
string
;
expiredTime
:
any
})
=>
{
myprizeList
=
myprizeList
.
map
(
v
=>
{
if
(
currentTime
>
awardReceiveExpiredTime
)
{
if
(
currentTime
>
awardReceiveExpiredTime
)
{
if
([
DRAW_STATUS
.
WAITAWARD
,
DRAW_STATUS
.
RETRY
].
includes
(
v
.
drawStatus
))
{
if
([
DRAW_STATUS
.
WAITAWARD
,
DRAW_STATUS
.
RETRY
].
includes
(
v
.
drawStatus
))
{
v
.
drawStatus
=
DRAW_STATUS
.
EXPIRED
v
.
drawStatus
=
DRAW_STATUS
.
EXPIRED
...
@@ -152,6 +152,7 @@ export default class AwardsService extends UserService {
...
@@ -152,6 +152,7 @@ export default class AwardsService extends UserService {
}
}
}
}
v
.
expiredTime
=
awardReceiveExpiredTime
v
.
expiredTime
=
awardReceiveExpiredTime
return
v
})
})
}
}
return
myprizeList
return
myprizeList
...
@@ -183,7 +184,7 @@ export default class AwardsService extends UserService {
...
@@ -183,7 +184,7 @@ export default class AwardsService extends UserService {
if
(
awardReceiveExpiredTime
&&
Date
.
now
()
>
awardReceiveExpiredTime
)
{
if
(
awardReceiveExpiredTime
&&
Date
.
now
()
>
awardReceiveExpiredTime
)
{
return
CODE_TYPES
.
ERROR_PRIZE_EXPIRED
return
CODE_TYPES
.
ERROR_PRIZE_EXPIRED
}
}
let
award
=
await
this
.
awardsdao
.
findOne
({
_id
})
let
award
=
await
this
.
awardsdao
.
findOne
<
IAwards
>
({
_id
})
console
.
log
(
`receiveObject-award`
,
award
)
console
.
log
(
`receiveObject-award`
,
award
)
// 奖品不存在
// 奖品不存在
if
(
!
award
)
{
if
(
!
award
)
{
...
@@ -229,7 +230,7 @@ export default class AwardsService extends UserService {
...
@@ -229,7 +230,7 @@ export default class AwardsService extends UserService {
return
CODE_TYPES
.
ERROR_PRIZE_EXPIRED
return
CODE_TYPES
.
ERROR_PRIZE_EXPIRED
}
}
let
result
:
{}
=
{}
let
result
:
{}
=
{}
let
award
=
await
this
.
awardsdao
.
findOne
({
_id
})
let
award
=
await
this
.
awardsdao
.
findOne
<
IAwards
>
({
_id
})
// 奖品不存在
// 奖品不存在
if
(
!
award
)
{
if
(
!
award
)
{
return
CODE_TYPES
.
ERROR_NO_PRIZE
return
CODE_TYPES
.
ERROR_NO_PRIZE
...
...
v2.0/src/service/user.service.ts
View file @
43b8148d
...
@@ -23,7 +23,7 @@ class UserService extends BaseService {
...
@@ -23,7 +23,7 @@ class UserService extends BaseService {
async
getUserInfo
()
{
async
getUserInfo
()
{
let
{
openId
,
data
}
=
this
.
context
let
{
openId
,
data
}
=
this
.
context
let
{
activityId
}
=
data
let
{
activityId
}
=
data
let
record
=
await
this
.
userdao
.
findOne
({
openId
,
activityId
})
let
record
=
await
this
.
userdao
.
findOne
<
IUserInfo
>
({
openId
,
activityId
})
return
record
return
record
}
}
...
@@ -35,7 +35,7 @@ class UserService extends BaseService {
...
@@ -35,7 +35,7 @@ class UserService extends BaseService {
*/
*/
async
getUserInfoByOpenId
(
inviteId
:
string
)
{
async
getUserInfoByOpenId
(
inviteId
:
string
)
{
let
{
activityId
}
=
this
.
context
.
data
let
{
activityId
}
=
this
.
context
.
data
let
record
=
await
this
.
userdao
.
findOne
({
openId
:
inviteId
,
activityId
})
let
record
=
await
this
.
userdao
.
findOne
<
IUserInfo
>
({
openId
:
inviteId
,
activityId
})
return
record
return
record
}
}
...
...
v2.0/src/typings/awards.d.ts
View file @
43b8148d
...
@@ -26,4 +26,5 @@ interface IAwards {
...
@@ -26,4 +26,5 @@ interface IAwards {
createTime
?:
number
createTime
?:
number
updateTime
?:
number
updateTime
?:
number
awardsType
?:
string
awardsType
?:
string
expiredTime
?:
number
}
}
v2.0/src/typings/dao.d.ts
0 → 100644
View file @
43b8148d
/** @format */
interface
IBaseDao
{
dbName
:
string
db
:
object
constructor
(
context
:
any
,
dbName
:
string
)
/**
* 查询一条数据
* @param query
* @param projection
*/
findOne
<
T
>
(
query
:
object
,
projection
?:
object
):
Promise
<
T
|
undefined
>
/**
* 查询多条数据
* @param query
* @param projection
*/
find
<
T
>
(
query
:
object
,
projection
?:
object
):
Promise
<
T
[]
>
/**
* 插入单条数据
* @param document
*/
insertOne
(
document
:
object
):
Promise
<
number
>
/**
* 插入多条数据
* @param documents 插入对象
*/
insertMany
(
documents
:
object
[]):
Promise
<
number
[]
>
/**
* 更新数据
* @param query
* @param options
*/
update
(
query
:
object
,
options
?:
object
):
Promise
<
any
>
/**
* 删除多条数据
* @param filter
*/
delete
(
filter
:
object
):
Promise
<
any
>
/**
* 获取条目数
* @param query
* @param options
*/
count
(
query
:
object
,
options
?:
object
):
Promise
<
number
>
/**
* 聚合查询
* @param query
* @param options
*/
aggregate
(
aggregateOperation
:
object
|
any
[]):
Promise
<
any
>
}
v2.0/src/typings/index.d.ts
View file @
43b8148d
...
@@ -35,54 +35,3 @@ interface IVipInfo {
...
@@ -35,54 +35,3 @@ interface IVipInfo {
isVip
:
boolean
isVip
:
boolean
url
?:
string
url
?:
string
}
}
interface
IBaseDao
{
dbName
:
string
db
:
object
constructor
(
context
:
any
,
dbName
:
string
)
/**
* 查询一条数据
* @param query
* @param projection
*/
findOne
(
query
:
object
,
projection
?:
object
):
Promise
<
any
>
/**
* 查询多条数据
* @param query
* @param projection
*/
find
(
query
:
object
,
projection
?:
object
):
Promise
<
any
>
/**
* 插入单条数据
* @param document
*/
insertOne
(
document
:
object
):
Promise
<
any
>
/**
* 插入多条数据
* @param documents 插入对象
*/
insertMany
(
documents
:
object
[]):
Promise
<
any
>
/**
* 更新数据
* @param query
* @param options
*/
update
(
query
:
object
,
options
?:
object
):
Promise
<
any
>
/**
* 删除多条数据
* @param filter
*/
delete
(
filter
:
object
):
Promise
<
any
>
/**
* 获取条目数
* @param query
* @param options
*/
count
(
query
:
object
,
options
?:
object
):
Promise
<
any
>
/**
* 聚合查询
* @param query
* @param options
*/
aggregate
(
aggregateOperation
:
object
|
any
[]):
Promise
<
any
>
}
v2.0/src/typings/seller.d.ts
0 → 100644
View file @
43b8148d
/** @format */
interface
ISellerInfo
{
accessToken
:
string
openId
:
string
appkey
:
string
userNick
:
string
shopId
?:
string
appOwnerOpenId
:
string
createTime
:
number
updateTime
:
number
}
v2.0/src/utils/package/getSession.ts
View file @
43b8148d
...
@@ -14,10 +14,10 @@ export const getSellerSession = async (context: IContext<IParams>, activityId?:
...
@@ -14,10 +14,10 @@ export const getSellerSession = async (context: IContext<IParams>, activityId?:
}
}
let
activitydao
:
IBaseDao
=
new
BaseDao
(
context
,
ACTIVITY_CONFIG_DB_NAME
)
let
activitydao
:
IBaseDao
=
new
BaseDao
(
context
,
ACTIVITY_CONFIG_DB_NAME
)
let
sellerdao
:
IBaseDao
=
new
BaseDao
(
context
,
SELLER_INFO_DB_NAME
)
let
sellerdao
:
IBaseDao
=
new
BaseDao
(
context
,
SELLER_INFO_DB_NAME
)
let
activityConfigResult
=
await
activitydao
.
findOne
({
_id
:
activityId
})
let
activityConfigResult
=
await
activitydao
.
findOne
<
IActivityInfo
>
({
_id
:
activityId
})
if
(
!
activityConfigResult
)
return
{}
if
(
!
activityConfigResult
)
return
{}
let
result
=
await
sellerdao
.
findOne
({
let
result
=
await
sellerdao
.
findOne
<
ISellerInfo
>
({
openId
:
activityConfigResult
.
openId
openId
:
activityConfigResult
.
openId
})
})
// console.log(`getSellerSession`, result)
// console.log(`getSellerSession`, result)
...
...
v2.0/tsconfig.json
View file @
43b8148d
{
{
"compileOnSave"
:
true
,
"compileOnSave"
:
true
,
"compilerOptions"
:
{
"compilerOptions"
:
{
"target"
:
"es5"
,
"target"
:
"es5"
,
"lib"
:
[
"lib"
:
[
"es6"
,
"dom"
,
"es7"
"es6"
,
"dom"
,
"es7"
],
],
"typeRoots"
:
[
"./node_modules/@types/"
,
"./src/typings/"
],
"typeRoots"
:
[
"./node_modules/@types/"
,
"./src/typings/"
],
"outDir"
:
"./dist"
,
"outDir"
:
"./dist"
,
"sourceMap"
:
true
,
"sourceMap"
:
true
,
"module"
:
"commonjs"
,
"module"
:
"commonjs"
,
"watch"
:
true
,
"watch"
:
true
,
"moduleResolution"
:
"node"
,
"moduleResolution"
:
"node"
,
"allowJs"
:
true
,
"allowJs"
:
true
,
"isolatedModules"
:
false
,
"isolatedModules"
:
false
,
"declaration"
:
true
,
"declaration"
:
true
,
"experimentalDecorators"
:
true
,
"experimentalDecorators"
:
true
,
"emitDecoratorMetadata"
:
true
,
"emitDecoratorMetadata"
:
true
,
"suppressImplicitAnyIndexErrors"
:
true
"suppressImplicitAnyIndexErrors"
:
true
},
},
"include"
:
[
"include"
:
[
"./src/**/*"
"./src/**/*"
]
]
}
}
\ No newline at end of file
\ No newline at end of file
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