Commit 1c93be02 authored by qinhaitao's avatar qinhaitao

refactor: 💡 统一命名

parent 165f2044
......@@ -2,5 +2,5 @@
interface Iconfig {
generateVipCallBackUrl(activityId?: string): string;
}
export declare const getConfig: (context: Context) => Iconfig;
export declare const getConfig: (context: IContext) => Iconfig;
export {};
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/config/index.ts"],"names":[],"mappings":";AAAA,cAAc;;;AAEd,mCAA6B;AAC7B,+BAAyB;AAMzB,IAAM,OAAO,GAAG;IACd,MAAM,kBAAA;IACN,IAAI,gBAAA;IACJ,IAAI,EAAE,cAAI;CACX,CAAA;AAED,aAAa;AACA,QAAA,SAAS,GAAG,UAAC,OAAgB;IACxC,IAAM,GAAG,GAAG,OAAO,CAAC,GAAG,CAAA;IACvB,OAAO,OAAO,CAAC,GAAG,CAAC,IAAI,OAAO,CAAC,MAAM,CAAA;AACvC,CAAC,CAAA"}
\ No newline at end of file
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/config/index.ts"],"names":[],"mappings":";AAAA,cAAc;;;AAEd,mCAA6B;AAC7B,+BAAyB;AAMzB,IAAM,OAAO,GAAG;IACd,MAAM,kBAAA;IACN,IAAI,gBAAA;IACJ,IAAI,EAAE,cAAI;CACX,CAAA;AAED,aAAa;AACA,QAAA,SAAS,GAAG,UAAC,OAAiB;IACzC,IAAM,GAAG,GAAG,OAAO,CAAC,GAAG,CAAA;IACvB,OAAO,OAAO,CAAC,GAAG,CAAC,IAAI,OAAO,CAAC,MAAM,CAAA;AACvC,CAAC,CAAA"}
\ No newline at end of file
......@@ -4,17 +4,17 @@ export default class AwardsController {
/**
* 我的奖品列表
*/
getMyPrizeList(context: Context, {}: {}, [awardSer]: [AwardsService]): Promise<import("taobao-mini-sdk/lib/utils/resultmodel").Result>;
getMyPrizeList(context: IContext, {}: {}, [awardSer]: [AwardsService]): Promise<import("taobao-mini-sdk/lib/utils/resultmodel").Result>;
/**
* 领取实物
*/
receiveObjectPrize(context: Context, {}: {}, [awardSer]: [AwardsService]): Promise<import("taobao-mini-sdk/lib/utils/resultmodel").Result>;
receiveObjectPrize(context: IContext, {}: {}, [awardSer]: [AwardsService]): Promise<import("taobao-mini-sdk/lib/utils/resultmodel").Result>;
/**
* 权益重新领取
*/
receiveEnamePrize(context: Context, {}: {}, [awardSer]: [AwardsService]): Promise<import("taobao-mini-sdk/lib/utils/resultmodel").Result>;
receiveEnamePrize(context: IContext, {}: {}, [awardSer]: [AwardsService]): Promise<import("taobao-mini-sdk/lib/utils/resultmodel").Result>;
/**
* 概率抽奖
*/
drawLotteryPrize(context: Context, { userInfo }: IControllerInfos, [awardSer]: [AwardsService]): Promise<import("taobao-mini-sdk/lib/utils/resultmodel").Result>;
drawLotteryPrize(context: IContext, { userInfo }: IControllerInfos, [awardSer]: [AwardsService]): Promise<import("taobao-mini-sdk/lib/utils/resultmodel").Result>;
}
{"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;AAC3C;IAAA;IAsIA,CAAC;IArIC;;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,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,UAAyB,OAAgB,EAAE,EAAE,EAAE,EAA2B;YAA1B,QAAQ,QAAA;;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AAE,eAAe,CAAC,CAAC;QAC5C,6BAAiB;QACjB,oBAAQ,CAAC,CAAC,uBAAa,CAAC,CAAC;;;;4DA+DzB;IACH,uBAAC;CAAA,AAtID,IAsIC;kBAtIoB,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;AAC3C;IAAA;IAsIA,CAAC;IArIC;;OAEG;IAIG,yCAAc,GAApB,UAAqB,OAAiB,EAAE,EAAE,EAAE,EAA2B;YAA1B,QAAQ,QAAA;;;;;;wBAEjD,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,UAAyB,OAAiB,EAAE,EAAE,EAAE,EAA2B;YAA1B,QAAQ,QAAA;;;;;;wBACnD,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;6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,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAA;;wBAAxC,MAAM,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;IA9HD;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;IAQD;QAHC,uBAAW,CAAC,CAAC,YAAY,EAAE,eAAe,CAAC,CAAC;QAC5C,6BAAiB;QACjB,oBAAQ,CAAC,CAAC,uBAAa,CAAC,CAAC;;;;4DA+DzB;IACH,uBAAC;CAAA,AAtID,IAsIC;kBAtIoB,gBAAgB"}
\ No newline at end of file
......@@ -4,9 +4,9 @@ export default class BaseController {
/**
* 活动基本信息
*/
getActivityBaseInfoById(context: Context, {}: {}, [baseService]: [BaseService]): Promise<import("taobao-mini-sdk/lib/utils/resultmodel").Result>;
getActivityBaseInfoById(context: IContext, {}: {}, [baseService]: [BaseService]): Promise<import("taobao-mini-sdk/lib/utils/resultmodel").Result>;
/**
* 获取商品列表
*/
getItemListByItemIds(context: Context, { session }: IControllerInfos, [baseService]: [BaseService]): Promise<import("taobao-mini-sdk/lib/utils/resultmodel").Result>;
getItemListByItemIds(context: IContext, { session }: IControllerInfos, [baseService]: [BaseService]): Promise<import("taobao-mini-sdk/lib/utils/resultmodel").Result>;
}
{"version":3,"file":"base.controller.js","sourceRoot":"","sources":["../../src/controller/base.controller.ts"],"names":[],"mappings":";AAAA,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEd,4CAA2C;AAC3C,0CAAoD;AAEpD,8BAAqC;AACrC,kCAAiC;AACjC,sCAAwC;AACxC;IAAA;IA8BA,CAAC;IA7BC;;OAEG;IAGG,gDAAuB,GAA7B,UAA8B,OAAgB,EAAE,EAAE,EAAE,EAA4B;YAA3B,WAAW,QAAA;;;;;;wBACtD,UAAU,GAAK,OAAO,CAAC,IAAI,WAAjB,CAAiB;wBACnC,OAAO;wBACP,IAAI,CAAC,UAAU,EAAE;4BACf,sBAAO,kBAAY,CAAC,KAAK,CAAC,sBAAU,CAAC,YAAY,EAAE,wBAAc,CAAC,EAAA;yBACnE;wBAEoB,qBAAM,WAAW,CAAC,WAAW,CAAC,UAAU,CAAC,EAAA;;wBAAxD,YAAY,GAAG,SAAyC;wBAC9D,sBAAO,kBAAY,CAAC,OAAO,CAAC,YAAY,CAAC,EAAA;;;;KAC1C;IAED;;OAEG;IAGG,6CAAoB,GAA1B,UAA2B,OAAgB,EAAE,EAA6B,EAAE,EAA4B;YAAzD,OAAO,aAAA;YAAuB,WAAW,QAAA;;;;;;wBAC9E,OAAO,GAAK,OAAO,CAAC,IAAI,QAAjB,CAAiB;wBAEnB,qBAAM,WAAW,CAAC,gBAAgB,CAAC,OAAO,EAAE,OAAO,CAAC,EAAA;;wBAA3D,IAAI,GAAG,SAAoD;wBACjE,cAAM,CAAC,IAAI,CAAC,CAAA;wBAEZ,sBAAO,kBAAY,CAAC,OAAO,CAAC,IAAI,CAAC,EAAA;;;;KAClC;IAvBD;QAFC,uBAAW,CAAC,CAAC,YAAY,CAAC,CAAC;QAC3B,oBAAQ,CAAC,CAAC,qBAAW,CAAC,CAAC;;;;iEAUvB;IAOD;QAFC,uBAAW,CAAC,CAAC,SAAS,CAAC,CAAC;QACxB,oBAAQ,CAAC,CAAC,qBAAW,CAAC,CAAC;;;;8DAQvB;IACH,qBAAC;CAAA,AA9BD,IA8BC;kBA9BoB,cAAc"}
\ No newline at end of file
{"version":3,"file":"base.controller.js","sourceRoot":"","sources":["../../src/controller/base.controller.ts"],"names":[],"mappings":";AAAA,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEd,4CAA2C;AAC3C,0CAAoD;AAEpD,8BAAqC;AACrC,kCAAiC;AACjC,sCAAwC;AACxC;IAAA;IA8BA,CAAC;IA7BC;;OAEG;IAGG,gDAAuB,GAA7B,UAA8B,OAAiB,EAAE,EAAE,EAAE,EAA4B;YAA3B,WAAW,QAAA;;;;;;wBACvD,UAAU,GAAK,OAAO,CAAC,IAAI,WAAjB,CAAiB;wBACnC,OAAO;wBACP,IAAI,CAAC,UAAU,EAAE;4BACf,sBAAO,kBAAY,CAAC,KAAK,CAAC,sBAAU,CAAC,YAAY,EAAE,wBAAc,CAAC,EAAA;yBACnE;wBAEoB,qBAAM,WAAW,CAAC,WAAW,CAAC,UAAU,CAAC,EAAA;;wBAAxD,YAAY,GAAG,SAAyC;wBAC9D,sBAAO,kBAAY,CAAC,OAAO,CAAC,YAAY,CAAC,EAAA;;;;KAC1C;IAED;;OAEG;IAGG,6CAAoB,GAA1B,UAA2B,OAAiB,EAAE,EAA6B,EAAE,EAA4B;YAAzD,OAAO,aAAA;YAAuB,WAAW,QAAA;;;;;;wBAC/E,OAAO,GAAK,OAAO,CAAC,IAAI,QAAjB,CAAiB;wBAEnB,qBAAM,WAAW,CAAC,gBAAgB,CAAC,OAAO,EAAE,OAAO,CAAC,EAAA;;wBAA3D,IAAI,GAAG,SAAoD;wBACjE,cAAM,CAAC,IAAI,CAAC,CAAA;wBAEZ,sBAAO,kBAAY,CAAC,OAAO,CAAC,IAAI,CAAC,EAAA;;;;KAClC;IAvBD;QAFC,uBAAW,CAAC,CAAC,YAAY,CAAC,CAAC;QAC3B,oBAAQ,CAAC,CAAC,qBAAW,CAAC,CAAC;;;;iEAUvB;IAOD;QAFC,uBAAW,CAAC,CAAC,SAAS,CAAC,CAAC;QACxB,oBAAQ,CAAC,CAAC,qBAAW,CAAC,CAAC;;;;8DAQvB;IACH,qBAAC;CAAA,AA9BD,IA8BC;kBA9BoB,cAAc"}
\ No newline at end of file
......@@ -4,5 +4,5 @@ export default class Share {
/**
* 完成分享
*/
doHelp(context: Context, { userInfo, vipInfo, activityInfo }: IControllerInfos, [userService, taskService, accessService]: [UserService, TaskService, AccessService]): Promise<import("taobao-mini-sdk/lib/utils/resultmodel").Result>;
doHelp(context: IContext, { userInfo, vipInfo, activityInfo }: IControllerInfos, [userService, taskService, accessService]: [UserService, TaskService, AccessService]): Promise<import("taobao-mini-sdk/lib/utils/resultmodel").Result>;
}
{"version":3,"file":"share.controller.js","sourceRoot":"","sources":["../../src/controller/share.controller.ts"],"names":[],"mappings":";AAAA,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEd,4CAA2C;AAC3C,4CAA8E;AAC9E,kDAAgD;AAEhD,8BAAqC;AACrC,kCAAmC;AACnC,sCAAoE;AAEpE;IAAA;IAyDA,CAAC;IAxDC;;OAEG;IAIG,sBAAM,GAAZ,UACE,OAAgB,EAChB,EAAqD,EACrD,EAAoF;YADlF,QAAQ,cAAA,EAAE,OAAO,aAAA,EAAE,YAAY,kBAAA;YAChC,WAAW,QAAA,EAAE,WAAW,QAAA,EAAE,aAAa,QAAA;;;;;;;wBAEhC,QAAQ,GAAK,OAAO,CAAC,IAAI,SAAjB,CAAiB;wBACzB,MAAM,GAAK,OAAO,OAAZ,CAAY;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sBAAO,kBAAY,CAAC,OAAO,CAAC,IAAI,CAAC,EAAA;;;;KAClC;IAjDD;QAHC,mBAAW,CAAC,CAAC,YAAY,EAAE,UAAU,CAAC,CAAC;QACvC,yBAAiB;QACjB,mBAAQ,CAAC,CAAC,qBAAW,EAAE,qBAAW,EAAE,uBAAa,CAAC,CAAC;;;;uCAkDnD;IACH,YAAC;CAAA,AAzDD,IAyDC;kBAzDoB,KAAK"}
\ No newline at end of file
{"version":3,"file":"share.controller.js","sourceRoot":"","sources":["../../src/controller/share.controller.ts"],"names":[],"mappings":";AAAA,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEd,4CAA2C;AAC3C,4CAA8E;AAC9E,kDAAgD;AAEhD,8BAAqC;AACrC,kCAAmC;AACnC,sCAAoE;AAEpE;IAAA;IAyDA,CAAC;IAxDC;;OAEG;IAIG,sBAAM,GAAZ,UACE,OAAiB,EACjB,EAAqD,EACrD,EAAoF;YADlF,QAAQ,cAAA,EAAE,OAAO,aAAA,EAAE,YAAY,kBAAA;YAChC,WAAW,QAAA,EAAE,WAAW,QAAA,EAAE,aAAa,QAAA;;;;;;;wBAEhC,QAAQ,GAAK,OAAO,CAAC,IAAI,SAAjB,CAAiB;wBACzB,MAAM,GAAK,OAAO,OAAZ,CAAY;wBAEQ,qBAAM,WAAW,CAAC,mBAAmB,CAAC,QAAQ,CAAC;4BACjF,iCAAiC;0BADgD;;wBAA3E,cAAc,GAAc,SAA+C;wBACjF,iCAAiC;wBACjC,IAAI,CAAC,cAAc;4BAAE,sBAAO,kBAAY,CAAC,KAAK,CAAC,sBAAU,CAAC,uBAAuB,CAAC,EAAA;wBAE5E,kBAAkB,GAAG,WAAW,CAAC,6BAA6B,CAAC,SAAS,EAAE,cAAc,CAAC,CAAA;wBAE/F,eAAe;wBACf,IAAI,kBAAkB,CAAC,IAAI,CAAC,UAAA,CAAC,IAAI,OAAA,CAAC,CAAC,MAAM,KAAK,MAAM,EAAnB,CAAmB,CAAC,EAAE;4BACrD,sBAAO,kBAAY,CAAC,KAAK,CAAC,sBAAU,CAAC,2BAA2B,CAAC,EAAA;yBAClE;wBAKO,KAAK,GAAK,YAAY,MAAjB,CAAiB;wBAGX,KAAK,GACZ,CAAA,KAAK,IAAI,EAAE,CAAA,oBADC,CACD;wBAGjB,QAAQ,GAAG,WAAW,CAAC,iBAAiB,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAA;wBAG3D,YAAY,GAAG,CAAC,QAAQ,CAAC,CAAC,KAAK,CAAC,UAAA,CAAC,IAAI,OAAA,CAAC,CAAC,CAAC,EAAH,CAAG,CAAC,CAAA;wBAEzC,KAAK,GAAG,gBAAQ,EAAE,CAAA;6BACpB,YAAY,EAAZ,wBAAY;wBACD,YAAY,GAAK,cAAc,IAAnB,CAAmB;wBAC5C,mBAAmB;wBACnB,qBAAM,WAAW,CAAC,UAAU,CAAC,YAAY,EAAE;gCACzC,IAAI,EAAE;oCACJ,qBAAqB,EAAE,KAAK;iCAC7B;gCACD,KAAK;oCACH,GAAC,cAAY,KAAK,aAAU,IAAG,EAAE,MAAM,QAAA,EAAE,UAAU,EAAE,IAAI,CAAC,GAAG,EAAE,EAAE;uCAClE;6BACF,CAAC,EAAA;;wBARF,mBAAmB;wBACnB,SAOE,CAAA;;4BAGJ,sBAAO,kBAAY,CAAC,OAAO,CAAC,IAAI,CAAC,EAAA;;;;KAClC;IAjDD;QAHC,mBAAW,CAAC,CAAC,YAAY,EAAE,UAAU,CAAC,CAAC;QACvC,yBAAiB;QACjB,mBAAQ,CAAC,CAAC,qBAAW,EAAE,qBAAW,EAAE,uBAAa,CAAC,CAAC;;;;uCAkDnD;IACH,YAAC;CAAA,AAzDD,IAyDC;kBAzDoB,KAAK"}
\ No newline at end of file
......@@ -4,5 +4,5 @@ export default class StatController {
/**
* 统计数据
*/
getStats(context: Context): Promise<import("taobao-mini-sdk/lib/utils/resultmodel").Result>;
getStats(context: IContext): Promise<import("taobao-mini-sd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AAO,CAAC,KAAK,EAAE,GAAG,CAAC,SAAI,MAAM,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,UAAO;6BACnF,CAAC,EAAA;;wBAHE,MAAM,GAAG,SAGX;wBACF,OAAO,CAAC,GAAG,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAA;wBACjC,IAAI,MAAM,CAAC,GAAG,EAAE;4BACd,MAAM,CAAC,GAAG,GAAG,MAAM,CAAC,GAAG,CAAC,OAAO,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,OAAO,CAAC,WAAW,EAAE,EAAE,CAAC,CAAA;yBAC1E;wBACD,sBAAO,kBAAY,CAAC,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,EAAA;;;wBAEvC,OAAO,CAAC,GAAG,CAAC,QAAQ,EAAE,GAAC,CAAC,CAAA;wBACxB,OAAO;wBACP,sBAAO,kBAAY,CAAC,KAAK,CAAC,sBAAU,CAAC,YAAY,EAAE,sCAAQ,CAAC,EAAA;;;;;KAE/D;IACH,qBAAC;AAAD,CAAC,AA/GD,IA+GC"}
\ No newline at end of file
{"version":3,"file":"stat.controller.js","sourceRoot":"","sources":["../../src/controller/stat.controller.ts"],"names":[],"mappings":";AAAA,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEd,4BAAoE;AACpE,8BAAmF;AACnF,0CAAyC;AACzC,gCAAiC;AAEjC,cAAc;AACd;IAAA;IA+GA,CAAC;IA9GC;;OAEG;IACG,iCAAQ,GAAd,UAAe,OAAiB;;;;;;wBACxB,KAAmC,OAAO,CAAC,IAAI,EAA7C,UAAU,gBAAA,EAAE,QAAQ,cAAA,EAAE,MAAM,YAAA,CAAiB;wBAE/C,OAAO,GAAa,IAAI,aAAO,CAAC,OAAO,EAAE,iBAAY,CAAC,CAAA;wBACtD,SAAS,GAAa,IAAI,aAAO,CAAC,OAAO,EAAE,mBAAc,CAAC,CAAA;wBAC1D,MAAM,GAAG,EAAE,GAAG,IAAI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BAAU,CAAC,YAAY,EAAE,sCAAQ,CAAC,EAAA;;;;;KAE/D;IACH,qBAAC;AAAD,CAAC,AA/GD,IA+GC"}
\ No newline at end of file
......@@ -4,33 +4,33 @@ export default class Task {
/**
* 任务列表
*/
getTaskList(context: Context, { userInfo, vipInfo, activityInfo, session }: IControllerInfos, [taskService]: [TaskService]): Promise<IResult>;
getTaskList(context: IContext, { userInfo, vipInfo, activityInfo, session }: IControllerInfos, [taskService]: [TaskService]): Promise<IResult>;
/**
* 完成关注店铺任务
*/
doFollowTask(context: Context, { userInfo, activityInfo }: IControllerInfos, [TaskService]: [TaskService]): Promise<import("taobao-mini-sdk/lib/utils/resultmodel").Result>;
doFollowTask(context: IContext, { userInfo, activityInfo }: IControllerInfos, [TaskService]: [TaskService]): Promise<import("taobao-mini-sdk/lib/utils/resultmodel").Result>;
/**
* 积分兑换次数
*/
doExchangeCreditsTask(context: Context, { userInfo, activityInfo, session }: IControllerInfos, [taskService]: [TaskService]): Promise<import("taobao-mini-sdk/lib/utils/resultmodel").Result>;
doExchangeCreditsTask(context: IContext, { userInfo, activityInfo, session }: IControllerInfos, [taskService]: [TaskService]): Promise<import("taobao-mini-sdk/lib/utils/resultmodel").Result>;
/**
* 浏览商品
*/
doBrowseGoodsTask(context: Context, { userInfo, activityInfo }: IControllerInfos, [taskService]: [TaskService]): Promise<import("taobao-mini-sdk/lib/utils/resultmodel").Result>;
doBrowseGoodsTask(context: IContext, { userInfo, activityInfo }: IControllerInfos, [taskService]: [TaskService]): Promise<import("taobao-mini-sdk/lib/utils/resultmodel").Result>;
/**
* 收藏商品
*/
doCollectGoodsTask(context: Context, { userInfo, activityInfo }: IControllerInfos, [taskService]: [TaskService]): Promise<import("taobao-mini-sdk/lib/utils/resultmodel").Result>;
doCollectGoodsTask(context: IContext, { userInfo, activityInfo }: IControllerInfos, [taskService]: [TaskService]): Promise<import("taobao-mini-sdk/lib/utils/resultmodel").Result>;
/**
* 浏览链接
*/
doJumpLinkTask(context: Context, { userInfo, activityInfo }: IControllerInfos, [taskService]: [TaskService]): Promise<import("taobao-mini-sdk/lib/utils/resultmodel").Result>;
doJumpLinkTask(context: IContext, { userInfo, activityInfo }: IControllerInfos, [taskService]: [TaskService]): Promise<import("taobao-mini-sdk/lib/utils/resultmodel").Result>;
/**
* 领取任务奖励
*/
receiveTaskRewards(context: Context, { userInfo }: IControllerInfos, [taskService]: [TaskService]): Promise<IResult>;
receiveTaskRewards(context: IContext, { userInfo }: IControllerInfos, [taskService]: [TaskService]): Promise<IResult>;
/**
* 获取收藏商品列表
*/
getCollectGoodsList(context: Context, { session, userInfo }: IControllerInfos, [baseService, taskService]: [BaseService, TaskService]): Promise<import("taobao-mini-sdk/lib/utils/resultmodel").Result>;
getCollectGoodsList(context: IContext, { session, userInfo }: IControllerInfos, [baseService, taskService]: [BaseService, TaskService]): Promise<import("taobao-mini-sdk/lib/utils/resultmodel").Result>;
}
This diff is collapsed.
/** @format */
import { UserService, AccessService } from '../service';
interface IVipContext extends Context {
interface IVipContext extends IContext {
data: {
activityId: string;
callbackUrl?: string;
};
}
interface ILoginContext extends Context {
interface ILoginContext extends IContext {
data: {
activityId: string;
userNick: string;
......
{"version":3,"file":"services.js","sourceRoot":"","sources":["../../src/decorator/services.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,cAAc;AACd,sCAAwC;AACxC,kCAAkE;AAClE,8BAAqC;AACrC,0CAAyC;AACzC,SAAe,YAAY,CAAC,OAAgB,EAAE,SAA2B;;;;;;oBACjE,WAAW,GAAG,IAAI,qBAAW,CAAC,OAAO,CAAC,CAAA;yBAExC,CAAC,SAAS,CAAC,QAAQ,EAAnB,wBAAmB;oBACJ,qBAAM,WAAW,CAAC,WAAW,EAAE,EAAA;;oBAA1C,QAAQ,GAAG,SAA+B;oBAChD,SAAS,CAAC,QAAQ,GAAG,QAAQ,CAAA;;;yBAG3B,CAAC,SAAS,CAAC,OAAO,EAAlB,wBAAkB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,OAAO,EAAE,OAAK,CAAC,CAAA;4BAC3B,qBAAM,sBAAc,CAAC,OAAO,EAAE,SAAS,EAAE,OAAK,CAAC,QAAQ,EAAE,EAAE,OAAK,CAAC,KAAK,CAAC,EAAA;;4BAAvE,SAAuE,CAAA;4BACvE,GAAG,GAAG,kBAAY,CAAC,KAAK,CAAC,sBAAU,CAAC,YAAY,CAAC,CAAA;;gCAEnD,sBAAO,GAAG,EAAA;;;;SACX,CAAA;IACH,CAAC,CAAA;AACH,CAAC,CAAA"}
\ No newline at end of file
/** @format */
declare namespace AAA {
interface IContext extends Context {
data: {
activityId: string;
};
}
}
//# sourceMappingURL=base.controller.js.map
\ No newline at end of file
{"version":3,"file":"base.controller.js","sourceRoot":"","sources":["../../src/model/base.controller.ts"],"names":[],"mappings":""}
\ No newline at end of file
/** @format */
declare namespace getActivityBaseInfoById {
interface Context extends IContext {
data: {
activityId: string;
};
}
interface Result extends IResult {
data: IActivityInfo;
}
}
//# sourceMappingURL=base.js.map
\ No newline at end of file
{"version":3,"file":"base.js","sourceRoot":"","sources":["../../src/model/base.ts"],"names":[],"mappings":""}
\ No newline at end of file
......@@ -4,9 +4,9 @@
* @format
*/
export default class UserAccessService {
context: Context;
context: IContext;
accessdao: IBaseDao;
constructor(context: Context);
constructor(context: IContext);
/**
* 增加访问记录
* @param {是否关注店铺} isFollow
......
{"version":3,"file":"access.service.js","sourceRoot":"","sources":["../../src/service/access.service.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,8BAAgC;AAChC,kCAAmC;AACnC,4BAAsC;AAEtC;IAGE,2BAAY,OAAgB;QAC1B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAA;QACtB,IAAI,CAAC,SAAS,GAAG,IAAI,aAAO,CAAC,OAAO,EAAE,mBAAc,CAAC,CAAA;IACvD,CAAC;IACD;;;OAGG;IACG,qCAAS,GAAf,UAAgB,QAAiB,EAAE,KAAc;;;;;;wBAC3C,KAAmB,IAAI,CAAC,OAAO,EAA7B,MAAM,YAAA,EAAE,IAAI,UAAA,CAAiB;wBAC7B,UAAU,GAAiC,IAAI,WAArC,EAAE,QAAQ,GAAuB,IAAI,SAA3B,EAAE,MAAM,GAAe,IAAI,OAAnB,EAAE,QAAQ,GAAK,IAAI,SAAT,CAAS;wBAE9C,qBAAM,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC;gCACpC,MAAM,QAAA;gCACN,UAAU,YAAA;gCACV,QAAQ,UAAA;gCACR,MAAM,QAAA;gCACN,cAAc,EAAE,CAAC,CAAC,QAAQ;gCAC1B,QAAQ,UAAA;gCACR,QAAQ,UAAA;gCACR,KAAK,OAAA;gCACL,UAAU,EAAE,IAAI,CAAC,GAAG,EAAE;gCACtB,UAAU,EAAE,IAAI,CAAC,GAAG,EAAE;gCACtB,UAAU,EAAE,IAAI,CAAC,GAAG,EAAE;gCACtB,SAAS,EAAE,gBAAQ,EAAE;6BACtB,CAAC,EAAA;4BAbF,sBAAO,SAaL,EAAA;;;;KACH;IAEK,0CAAc,GAApB;;;;;;wBACM,KAAmB,IAAI,CAAC,OAAO,EAA7B,MAAM,YAAA,EAAE,IAAI,UAAA,CAAiB;wBAC7B,UAAU,GAAK,IAAI,WAAT,CAAS;wBAClB,qBAAM,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC;gCAChC,MAAM,QAAA;gCACN,UAAU,YAAA;6BACX,CAAC,EAAA;4BAHF,sBAAO,SAGL,EAAA;;;;KACH;IACH,wBAAC;AAAD,CAAC,AAvCD,IAuCC"}
\ No newline at end of file
{"version":3,"file":"access.service.js","sourceRoot":"","sources":["../../src/service/access.service.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,8BAAgC;AAChC,kCAAmC;AACnC,4BAAsC;AAEtC;IAGE,2BAAY,OAAiB;QAC3B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAA;QACtB,IAAI,CAAC,SAAS,GAAG,IAAI,aAAO,CAAC,OAAO,EAAE,mBAAc,CAAC,CAAA;IACvD,CAAC;IACD;;;OAGG;IACG,qCAAS,GAAf,UAAgB,QAAiB,EAAE,KAAc;;;;;;wBAC3C,KAAmB,IAAI,CAAC,OAAO,EAA7B,MAAM,YAAA,EAAE,IAAI,UAAA,CAAiB;wBAC7B,UAAU,GAAiC,IAAI,WAArC,EAAE,QAAQ,GAAuB,IAAI,SAA3B,EAAE,MAAM,GAAe,IAAI,OAAnB,EAAE,QAAQ,GAAK,IAAI,SAAT,CAAS;wBAE9C,qBAAM,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC;gCACpC,MAAM,QAAA;gCACN,UAAU,YAAA;gCACV,QAAQ,UAAA;gCACR,MAAM,QAAA;gCACN,cAAc,EAAE,CAAC,CAAC,QAAQ;gCAC1B,QAAQ,UAAA;gCACR,QAAQ,UAAA;gCACR,KAAK,OAAA;gCACL,UAAU,EAAE,IAAI,CAAC,GAAG,EAAE;gCACtB,UAAU,EAAE,IAAI,CAAC,GAAG,EAAE;gCACtB,UAAU,EAAE,IAAI,CAAC,GAAG,EAAE;gCACtB,SAAS,EAAE,gBAAQ,EAAE;6BACtB,CAAC,EAAA;4BAbF,sBAAO,SAaL,EAAA;;;;KACH;IAEK,0CAAc,GAApB;;;;;;wBACM,KAAmB,IAAI,CAAC,OAAO,EAA7B,MAAM,YAAA,EAAE,IAAI,UAAA,CAAiB;wBAC7B,UAAU,GAAK,IAAI,WAAT,CAAS;wBAClB,qBAAM,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC;gCAChC,MAAM,QAAA;gCACN,UAAU,YAAA;6BACX,CAAC,EAAA;4BAHF,sBAAO,SAGL,EAAA;;;;KACH;IACH,wBAAC;AAAD,CAAC,AAvCD,IAuCC"}
\ No newline at end of file
......@@ -7,7 +7,7 @@ import UserService from './user.service';
export default class AwardsService extends UserService {
awardsdao: IBaseDao;
activityprizedao: IBaseDao;
constructor(context: Context);
constructor(context: IContext);
reduceStock(_id: string): Promise<any>;
/**
* 插入奖品记录
......
This diff is collapsed.
......@@ -4,9 +4,9 @@
* @format
*/
export default class BaseService {
context: Context;
context: IContext;
activitydao: IBaseDao;
constructor(context: Context);
constructor(context: IContext);
/**
* @desc 活动基本信息
* @param {活动id} activityId
......
{"version":3,"file":"base.service.js","sourceRoot":"","sources":["../../src/service/base.service.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,8BAAwC;AACxC,4BAA+C;AAG/C;IAGE,qBAAY,OAAgB;QAC1B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAA;QACtB,IAAI,CAAC,WAAW,GAAG,IAAI,aAAO,CAAC,OAAO,EAAE,4BAAuB,CAAC,CAAA;IAClE,CAAC;IACD;;;;OAIG;IACG,iCAAW,GAAjB,UAAkB,UAAkB;;;;;wBAClC,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,iBAAiB,CAAC,CAAA;wBACxC,qBAAM,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,EAAE,GAAG,EAAE,UAAU,EAAE,YAAY,gBAAwB,EAAE,CAAC,EAAA;4BAAhG,sBAAO,SAAyF,EAAA;;;;KACjG;IAED;;;;;;;;OAQG;IACG,sCAAgB,GAAtB,UAAuB,OAAe,EAAE,OAAe;;;;;;;wBAC/C,SAAS,GACb,+NAA+N,CAAA;wBAClN,qBAAM,YAAM,CAAC,oBAAoB,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,EAAA;;wBAAjG,MAAM,GAAG,SAAwF;wBACjG,KAAK,GAAG,OAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,KAAK,0CAAE,IAAI,KAAI,EAAE,CAAA;wBACjC,IAAI,GAAG,KAAK,CAAC,GAAG,CACpB,UAAC,CAAuG;4BACtG,OAAO;gCACL,MAAM,EAAE,CAAC,CAAC,OAAO;gCACjB,IAAI,EAAE,CAAC,CAAC,KAAK;gCACb,KAAK,EAAE,CAAC,CAAC,KAAK;gCACd,GAAG,EAAE,CAAC,CAAC,UAAU;gCACjB,KAAK,EAAE,CAAC,CAAC,OAAO;gCAChB,IAAI,EAAE,CAAC,CAAC,IAAI;6BACb,CAAA;wBACH,CAAC,CACF,CAAA;wBACD,sBAAO,IAAI,EAAA;;;;KACZ;IACH,kBAAC;AAAD,CAAC,AA7CD,IA6CC"}
\ No newline at end of file
{"version":3,"file":"base.service.js","sourceRoot":"","sources":["../../src/service/base.service.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,8BAAwC;AACxC,4BAA+C;AAG/C;IAGE,qBAAY,OAAiB;QAC3B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAA;QACtB,IAAI,CAAC,WAAW,GAAG,IAAI,aAAO,CAAC,OAAO,EAAE,4BAAuB,CAAC,CAAA;IAClE,CAAC;IACD;;;;OAIG;IACG,iCAAW,GAAjB,UAAkB,UAAkB;;;;;wBAClC,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,iBAAiB,CAAC,CAAA;wBACxC,qBAAM,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,EAAE,GAAG,EAAE,UAAU,EAAE,YAAY,gBAAwB,EAAE,CAAC,EAAA;4BAAhG,sBAAO,SAAyF,EAAA;;;;KACjG;IAED;;;;;;;;OAQG;IACG,sCAAgB,GAAtB,UAAuB,OAAe,EAAE,OAAe;;;;;;;wBAC/C,SAAS,GACb,+NAA+N,CAAA;wBAClN,qBAAM,YAAM,CAAC,oBAAoB,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,EAAA;;wBAAjG,MAAM,GAAG,SAAwF;wBACjG,KAAK,GAAG,OAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,KAAK,0CAAE,IAAI,KAAI,EAAE,CAAA;wBACjC,IAAI,GAAG,KAAK,CAAC,GAAG,CACpB,UAAC,CAAuG;4BACtG,OAAO;gCACL,MAAM,EAAE,CAAC,CAAC,OAAO;gCACjB,IAAI,EAAE,CAAC,CAAC,KAAK;gCACb,KAAK,EAAE,CAAC,CAAC,KAAK;gCACd,GAAG,EAAE,CAAC,CAAC,UAAU;gCACjB,KAAK,EAAE,CAAC,CAAC,OAAO;gCAChB,IAAI,EAAE,CAAC,CAAC,IAAI;6BACb,CAAA;wBACH,CAAC,CACF,CAAA;wBACD,sBAAO,IAAI,EAAA;;;;KACZ;IACH,kBAAC;AAAD,CAAC,AA7CD,IA6CC"}
\ No newline at end of file
......@@ -18,7 +18,7 @@ interface ITaskInfo {
status: number;
}
export default class TaskService extends UserService {
constructor(context: Context);
constructor(context: IContext);
initVipTask(userInfo: IUserInfo, vipInfo: IVipInfo, tasks: ITasks): ITaskInfo;
initOrderGoodsTask(userInfo: IUserInfo, tasks: ITasks): ITaskInfo;
initBrowseGoodsTask(userInfo: IUserInfo, tasks: ITasks): ITaskInfo;
......
This diff is collapsed.
......@@ -6,7 +6,7 @@
import BaseService from './base.service';
declare class UserService extends BaseService {
userdao: IBaseDao;
constructor(context: Context);
constructor(context: IContext);
/**
* @desc 获取当前打开活动的用户详情
* @returns 若用户不存在,返回null; 用户存在,返回用户信息(object对象)
......
This diff is collapsed.
......@@ -3,7 +3,7 @@
*
* @format
*/
export declare const getSellerSession: (context: Context, activityId?: string) => Promise<{
export declare const getSellerSession: (context: IContext, activityId?: string) => Promise<{
session?: undefined;
userNick?: undefined;
} | {
......
{"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,OAAgB,EAAE,UAAmB;;;;;gBAC1E,IAAI,CAAC,UAAU,EAAE;oBACf,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC,UAAU,CAAA;iBACrC;gBACG,WAAW,GAAa,IAAI,aAAO,CAAC,OAAO,EAAE,4BAAuB,CAAC,CAAA;gBACrE,SAAS,GAAa,IAAI,aAAO,CAAC,OAAO,EAAE,wBAAmB,CAAC,CAAA;gBACxC,qBAAM,WAAW,CAAC,OAAO,CAAC,EAAE,GAAG,EAAE,UAAU,EAAE,CAAC,EAAA;;gBAArE,oBAAoB,GAAG,SAA8C;gBACzE,IAAI,CAAC,oBAAoB;oBAAE,sBAAO,EAAE,EAAA;gBAEvB,qBAAM,SAAS,CAAC,OAAO,CAAC;wBACnC,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
{"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,OAAiB,EAAE,UAAmB;;;;;gBAC3E,IAAI,CAAC,UAAU,EAAE;oBACf,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC,UAAU,CAAA;iBACrC;gBACG,WAAW,GAAa,IAAI,aAAO,CAAC,OAAO,EAAE,4BAAuB,CAAC,CAAA;gBACrE,SAAS,GAAa,IAAI,aAAO,CAAC,OAAO,EAAE,wBAAmB,CAAC,CAAA;gBACxC,qBAAM,WAAW,CAAC,OAAO,CAAC,EAAE,GAAG,EAAE,UAAU,EAAE,CAAC,EAAA;;gBAArE,oBAAoB,GAAG,SAA8C;gBACzE,IAAI,CAAC,oBAAoB;oBAAE,sBAAO,EAAE,EAAA;gBAEvB,qBAAM,SAAS,CAAC,OAAO,CAAC;wBACnC,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
/** @format */
export declare const isUseVipMock: (context: Context, userNick: string) => boolean;
export declare const isUseVipMock: (context: IContext, userNick: string) => boolean;
{"version":3,"file":"isUseVipMock.js","sourceRoot":"","sources":["../../../src/utils/package/isUseVipMock.ts"],"names":[],"mappings":";AAAA,cAAc;;;AAEd,qBAAqB;AACR,QAAA,YAAY,GAAG,UAAC,OAAgB,EAAE,QAAgB;IAC7D,IAAM,SAAS,GAAG,OAAO,CAAC,GAAG,KAAK,MAAM,CAAA;IACxC,IAAM,cAAc,GAAG,QAAQ,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAA;IAEpD,OAAO,SAAS,IAAI,cAAc,CAAA;AACpC,CAAC,CAAA"}
\ No newline at end of file
{"version":3,"file":"isUseVipMock.js","sourceRoot":"","sources":["../../../src/utils/package/isUseVipMock.ts"],"names":[],"mappings":";AAAA,cAAc;;;AAEd,qBAAqB;AACR,QAAA,YAAY,GAAG,UAAC,OAAiB,EAAE,QAAgB;IAC9D,IAAM,SAAS,GAAG,OAAO,CAAC,GAAG,KAAK,MAAM,CAAA;IACxC,IAAM,cAAc,GAAG,QAAQ,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAA;IAEpD,OAAO,SAAS,IAAI,cAAc,CAAA;AACpC,CAAC,CAAA"}
\ No newline at end of file
export declare const logFn: (context: Context) => void;
export declare const recordErrorLog: (context: Context, baseInfos: IControllerInfos, errorMsg: string, stack: string) => Promise<any>;
export declare const logFn: (context: IContext) => void;
export declare const recordErrorLog: (context: IContext, baseInfos: IControllerInfos, errorMsg: string, stack: string) => Promise<any>;
export declare const logger: (message: any) => void;
{"version":3,"file":"logger.js","sourceRoot":"","sources":["../../../src/utils/package/logger.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,cAAc;AACd,iCAAmC;AACnC,+BAA4C;AAC5C,qCAAsC;AAEzB,QAAA,KAAK,GAAG,UAAC,OAAgB;;IACpC,IAAM,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,IAAI,CAAC,CAAA;IACzC,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAA;IACpB,OAAO,CAAC,GAAG,CACT,6BAAgB,OAAO,CAAC,MAAM,IAAI,EAAE,WAClC,mBAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,KAAK,0CAAE,SAAS,0CAAE,OAAO,0CAAE,OAAO,KAAI,OAAO,CAAC,OAAO,kBAClD,CACf,CAAA;IACD,OAAO,CAAC,GAAG,CAAC,wCAAkB,IAAI,iBAAc,CAAC,CAAA;AACnD,CAAC,CAAA;AAED,SAAS;AACI,QAAA,cAAc,GAAG,UAC5B,OAAgB,EAChB,SAA2B,EAC3B,QAAgB,EAChB,KAAa;;;;;;gBAEL,MAAM,GAAK,OAAO,OAAZ,CAAY;gBAClB,UAAU,GAAK,CAAA,OAAO,CAAC,IAAI,IAAI,EAAE,CAAA,WAAvB,CAAuB;gBACjC,QAAQ,GAAK,SAAS,SAAd,CAAc;gBACtB,QAAQ,GAAK,CAAA,QAAQ,IAAI,EAAE,CAAA,SAAnB,CAAmB;gBAC7B,MAAM,GAAa,IAAI,aAAO,CAAC,OAAO,EAAE,sBAAiB,CAAC,CAAA;gBAC1D,YAAY,GAAW,CAAG,OAAO,CAAC,MAAM,IAAI,EAAE,WAClD,mBAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,KAAK,0CAAE,SAAS,0CAAE,OAAO,0CAAE,OAAO,KAAI,OAAO,CAAC,OAAO,CAC9D,CAAA;gBACK,qBAAM,MAAM,CAAC,SAAS,CAAC;wBAC5B,MAAM,QAAA;wBACN,UAAU,YAAA;wBACV,QAAQ,UAAA;wBACR,UAAU,EAAE,KAAK;wBACjB,YAAY,cAAA;wBACZ,QAAQ,UAAA;wBACR,UAAU,EAAE,OAAO,CAAC,UAAU;wBAC9B,MAAM,EAAE,OAAO,CAAC,IAAI;wBACpB,UAAU,EAAE,IAAI,CAAC,GAAG,EAAE;wBACtB,SAAS,EAAE,gBAAQ,EAAE;wBACrB,SAAS,EAAE,CAAC;qBACb,CAAC,EAAA;oBAZF,sBAAO,SAYL,EAAA;;;KACH,CAAA;AAED,iBAAiB;AACJ,QAAA,MAAM,GAAG,UAAC,OAAY;IACjC,OAAO,CAAC,GAAG,CAAC,mBAAmB,EAAE,6DAAmD,CAAC,CAAA;IACrF,OAAO,CAAC,GAAG,CAAC,mBAAmB,EAAE,IAAI,CAAC,SAAS,CAAC,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAA;IAClE,OAAO,CAAC,GAAG,CAAC,mBAAmB,EAAE,6DAAmD,CAAC,CAAA;IAErF,+DAA+D;AACjE,CAAC,CAAA"}
\ No newline at end of file
{"version":3,"file":"logger.js","sourceRoot":"","sources":["../../../src/utils/package/logger.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,cAAc;AACd,iCAAmC;AACnC,+BAA4C;AAC5C,qCAAsC;AAEzB,QAAA,KAAK,GAAG,UAAC,OAAiB;;IACrC,IAAM,IAAI,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,GAAG,EAAE;wBACtB,SAAS,EAAE,gBAAQ,EAAE;wBACrB,SAAS,EAAE,CAAC;qBACb,CAAC,EAAA;oBAZF,sBAAO,SAYL,EAAA;;;KACH,CAAA;AAED,iBAAiB;AACJ,QAAA,MAAM,GAAG,UAAC,OAAY;IACjC,OAAO,CAAC,GAAG,CAAC,mBAAmB,EAAE,6DAAmD,CAAC,CAAA;IACrF,OAAO,CAAC,GAAG,CAAC,mBAAmB,EAAE,IAAI,CAAC,SAAS,CAAC,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAA;IAClE,OAAO,CAAC,GAAG,CAAC,mBAAmB,EAAE,6DAAmD,CAAC,CAAA;IAErF,+DAA+D;AACjE,CAAC,CAAA"}
\ No newline at end of file
......@@ -6,7 +6,7 @@ import { CodeType } from 'taobao-mini-sdk/lib/utils/codetypes';
* @param {*} session
* @param {*} context
*/
export declare const sendTBAward: (context: Context, session: string, document: IAwards) => Promise<IAwards | CodeType>;
export declare const sendTBAward: (context: IContext, session: string, document: IAwards) => Promise<IAwards | CodeType>;
/**
* 发放积分
* @param {发放的积分数} credits
......@@ -14,7 +14,7 @@ export declare const sendTBAward: (context: Context, session: string, document:
* @param {*} context
* @returns {drawStatus, remark}
*/
export declare const sendCredits: (credits: number, session: string, context: Context) => Promise<{
export declare const sendCredits: (credits: number, session: string, context: IContext) => Promise<{
drawStatus: number;
remark: string;
}>;
......@@ -26,7 +26,7 @@ export declare const sendCredits: (credits: number, session: string, context: Co
* @param {*} context
* @returns { drawStatus, remark }
*/
export declare const sendEname: (ename: string, uniqueId: string, session: string, context: Context) => Promise<{
export declare const sendEname: (ename: string, uniqueId: string, session: string, context: IContext) => Promise<{
remark: string;
drawStatus: number;
}>;
{"version":3,"file":"sendTBAward.js","sourceRoot":"","sources":["../../../src/utils/package/sendTBAward.ts"],"names":[],"mappings":";AAAA,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEd,6CAA0F;AAC1F,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,EAAE,GAAC,CAAC,CAAA;gBACxB,MAAM,GAAG,GAAC,CAAA;;;gBAGR,UAAU,GAAG,CAAC,CAAA;gBACd,MAAM,GAAG,EAAE,CAAA;gBACf,IAAI,MAAM,CAAC,cAAc,EAAE;oBACzB,UAAU,GAAG,uBAAW,CAAC,OAAO,CAAA;iBACjC;qBAAM;oBACD,WAAW,GAAG,MAAM,CAAC,WAAW,CAAA;oBACpC,IACE;wBACE,wCAAwC;wBACxC,qCAAqC;wBACrC,+CAA+C;qBAChD,CAAC,QAAQ,CAAC,WAAW,CAAC,EACvB;wBACA,UAAU,GAAG,uBAAW,CAAC,KAAK,CAAA;qBAC/B;yBAAM;wBACL,UAAU,GAAG,uBAAW,CAAC,IAAI,CAAA;qBAC9B;oBACD,MAAM,GAAG,mBAAO,CAAC,WAAW,IAAI,MAAM,CAAC,GAAG,CAAC,IAAI,MAAM,CAAC,UAAU,IAAI,MAAM,CAAC,OAAO,IAAI,0BAAM,CAAA;iBAC7F;gBACD,sBAAO,EAAE,MAAM,QAAA,EAAE,UAAU,YAAA,EAAE,EAAA;;;KAC9B,CAAA"}
\ No newline at end of file
{"version":3,"file":"sendTBAward.js","sourceRoot":"","sources":["../../../src/utils/package/sendTBAward.ts"],"names":[],"mappings":";AAAA,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEd,6CAA0F;AAC1F,iCAAgD;AAGhD;;;;;GAKG;AACU,QAAA,WAAW,GAAG,UACzB,OAAiB,EACjB,OAAe,EACf,QAAiB;;;;;gBAEX,IAAI,GAA0B,QAAQ,KAAlC,EAAE,KAAK,GAAmB,QAAQ,MAA3B,EAAE,GAAG,GAAc,QAAQ,IAAtB,EAAE,OAAO,GAAK,QAAQ,QAAb,CAAa;gBAC5C,IAAI,CAAC,IAAI,EAAE;oBACT,sBAAO,sBAAU,CAAC,YAAY,EAAA;iBAC/B;gBACD,IAAI,IAAI,KAAK,sBAAU,CAAC,MAAM,EAAE;oBAC9B,sB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AU,GAAG,uBAAW,CAAC,KAAK,CAAA;qBAC/B;yBAAM;wBACL,UAAU,GAAG,uBAAW,CAAC,IAAI,CAAA;qBAC9B;oBACD,MAAM,GAAG,mBAAO,CAAC,WAAW,IAAI,MAAM,CAAC,GAAG,CAAC,IAAI,MAAM,CAAC,UAAU,IAAI,MAAM,CAAC,OAAO,IAAI,0BAAM,CAAA;iBAC7F;gBACD,sBAAO,EAAE,MAAM,QAAA,EAAE,UAAU,YAAA,EAAE,EAAA;;;KAC9B,CAAA"}
\ No newline at end of file
......@@ -14,7 +14,7 @@ const configs = {
}
// 根据服务环境获取配置
export const getConfig = (context: Context): Iconfig => {
export const getConfig = (context: IContext): Iconfig => {
const env = context.env
return configs[env] || configs.online
}
......@@ -12,7 +12,7 @@ export default class AwardsController {
@paramsCheck(['activityId'])
@userCheck({ intercept: true })
@services([AwardsService])
async getMyPrizeList(context: Context, {}, [awardSer]: [AwardsService]) {
async getMyPrizeList(context: IContext, {}, [awardSer]: [AwardsService]) {
const {
openId,
data: { activityId }
......@@ -27,7 +27,7 @@ export default class AwardsController {
@paramsCheck(['activityId', '_id', 'name', 'phone', 'province', 'city', 'area', 'addressdetail'])
@userCheck({ intercept: true })
@services([AwardsService])
async receiveObjectPrize(context: Context, {}, [awardSer]: [AwardsService]) {
async receiveObjectPrize(context: IContext, {}, [awardSer]: [AwardsService]) {
let { province, city, area, addressdetail, _id, name, phone, activityId } = context.data
let result = await awardSer.recieveObjectPrize(_id, {
......@@ -53,7 +53,7 @@ export default class AwardsController {
@paramsCheck(['activityId', '_id'])
@userCheck({ intercept: true })
@services([AwardsService])
async receiveEnamePrize(context: Context, {}, [awardSer]: [AwardsService]) {
async receiveEnamePrize(context: IContext, {}, [awardSer]: [AwardsService]) {
let { _id, activityId } = context.data
let result = await awardSer.recieveEnamePrize(_id, activityId)
......@@ -76,7 +76,7 @@ export default class AwardsController {
@paramsCheck(['activityId', 'prizeDataType'])
@activityTimeCheck
@services([AwardsService])
async drawLotteryPrize(context: Context, { userInfo }: IControllerInfos, [awardSer]: [AwardsService]) {
async drawLotteryPrize(context: IContext, { userInfo }: IControllerInfos, [awardSer]: [AwardsService]) {
const { openId } = context
const { activityId, prizeDataType } = context.data
......
......@@ -12,7 +12,7 @@ export default class BaseController {
*/
@paramsCheck(['activityId'])
@services([BaseService])
async getActivityBaseInfoById(context: Context, {}, [baseService]: [BaseService]) {
async getActivityBaseInfoById(context: IContext, {}, [baseService]: [BaseService]) {
const { activityId } = context.data
// 参数校验
if (!activityId) {
......@@ -28,7 +28,7 @@ export default class BaseController {
*/
@paramsCheck(['itemIds'])
@services([BaseService])
async getItemListByItemIds(context: Context, { session }: IControllerInfos, [baseService]: [BaseService]) {
async getItemListByItemIds(context: IContext, { session }: IControllerInfos, [baseService]: [BaseService]) {
const { itemIds } = context.data
const list = await baseService.getItemListByIds(itemIds, session)
......
......@@ -16,7 +16,7 @@ export default class Share {
@activityTimeCheck
@services([UserService, TaskService, AccessService])
async doHelp(
context: Context,
context: IContext,
{ userInfo, vipInfo, activityInfo }: IControllerInfos,
[userService, taskService, accessService]: [UserService, TaskService, AccessService]
) {
......
......@@ -10,7 +10,7 @@ export default class StatController {
/**
* 统计数据
*/
async getStats(context: Context) {
async getStats(context: IContext) {
const { activityId, startDay, endDay } = context.data
const userDao: IBaseDao = new BaseDao(context, USER_DB_NAME)
......
......@@ -16,7 +16,7 @@ export default class Task {
@activityTimeCheck
@services([TaskService])
async getTaskList(
context: Context,
context: IContext,
{ userInfo, vipInfo, activityInfo, session }: IControllerInfos,
[taskService]: [TaskService]
): Promise<IResult> {
......@@ -75,7 +75,7 @@ export default class Task {
@paramsCheck(['activityId'])
@activityTimeCheck
@services([TaskService])
async doFollowTask(context: Context, { userInfo, activityInfo }: IControllerInfos, [TaskService]: [TaskService]) {
async doFollowTask(context: IContext, { userInfo, activityInfo }: IControllerInfos, [TaskService]: [TaskService]) {
let { follow } = userInfo
const { flag, newFollow } = follow
......@@ -97,7 +97,7 @@ export default class Task {
@activityTimeCheck
@services([TaskService])
async doExchangeCreditsTask(
context: Context,
context: IContext,
{ userInfo, activityInfo, session }: IControllerInfos,
[taskService]: [TaskService]
) {
......@@ -147,7 +147,7 @@ export default class Task {
@activityTimeCheck
@services([TaskService])
async doBrowseGoodsTask(
context: Context,
context: IContext,
{ userInfo, activityInfo }: IControllerInfos,
[taskService]: [TaskService]
) {
......@@ -195,7 +195,7 @@ export default class Task {
@activityTimeCheck
@services([TaskService])
async doCollectGoodsTask(
context: Context,
context: IContext,
{ userInfo, activityInfo }: IControllerInfos,
[taskService]: [TaskService]
) {
......@@ -242,7 +242,7 @@ export default class Task {
@userCheck({ intercept: true })
@activityTimeCheck
@services([TaskService])
async doJumpLinkTask(context: Context, { userInfo, activityInfo }: IControllerInfos, [taskService]: [TaskService]) {
async doJumpLinkTask(context: IContext, { userInfo, activityInfo }: IControllerInfos, [taskService]: [TaskService]) {
const taskType = 'jumpLink'
const {
......@@ -278,7 +278,7 @@ export default class Task {
@activityTimeCheck
@services([TaskService])
async receiveTaskRewards(
context: Context,
context: IContext,
{ userInfo }: IControllerInfos,
[taskService]: [TaskService]
): Promise<IResult> {
......@@ -312,7 +312,7 @@ export default class Task {
@paramsCheck(['activityId', 'itemIds'])
@services([BaseService, TaskService])
async getCollectGoodsList(
context: Context,
context: IContext,
{ session, userInfo }: IControllerInfos,
[baseService, taskService]: [BaseService, TaskService]
) {
......
......@@ -5,14 +5,14 @@ import { services, paramsCheck, activityTimeCheck } from '../decorator'
import { resultsModel } from '../sdk'
import { UserService, AccessService } from '../service'
import { getConfig } from '../config'
interface IVipContext extends Context {
interface IVipContext extends IContext {
data: {
activityId: string
callbackUrl?: string
}
}
interface ILoginContext extends Context {
interface ILoginContext extends IContext {
data: {
activityId: string
userNick: string
......
......@@ -3,7 +3,7 @@ import { UserService } from '../service'
import { getSellerSession, logFn, recordErrorLog } from '../utils'
import { resultsModel } from '../sdk'
import { CODE_TYPES } from '../constants'
async function initBaseInfo(context: Context, baseInfos: IControllerInfos) {
async function initBaseInfo(context: IContext, baseInfos: IControllerInfos) {
const userService = new UserService(context)
if (!baseInfos.userInfo) {
......
/** @format */
namespace getActivityBaseInfoById {
export interface Context extends IContext {
data: {
activityId: string
}
}
export interface Result extends IResult {
data: IActivityInfo
}
}
......@@ -9,9 +9,9 @@ import { getToday } from '../utils'
import { ACCESS_DB_NAME } from '../db'
export default class UserAccessService {
context: Context
context: IContext
accessdao: IBaseDao
constructor(context: Context) {
constructor(context: IContext) {
this.context = context
this.accessdao = new BaseDao(context, ACCESS_DB_NAME)
}
......
......@@ -13,7 +13,7 @@ import { sendTBAward, getSellerSession, rand, signFigures } from '../utils'
export default class AwardsService extends UserService {
awardsdao: IBaseDao
activityprizedao: IBaseDao
constructor(context: Context) {
constructor(context: IContext) {
super(context)
this.awardsdao = new BaseDao(context, AWARDS_DB_NAME)
this.activityprizedao = new BaseDao(context, PRIZE_CONFIG_DB_NAME)
......
......@@ -9,9 +9,9 @@ import { ACTIVITY_CONFIG_DB_NAME } from '../db'
import { ACTIVITY_STATUS } from '../constants'
export default class BaseService {
context: Context
context: IContext
activitydao: IBaseDao
constructor(context: Context) {
constructor(context: IContext) {
this.context = context
this.activitydao = new BaseDao(context, ACTIVITY_CONFIG_DB_NAME)
}
......
......@@ -23,7 +23,7 @@ interface ITaskInfo {
status: number // 任务状态 1未完成 2 待领取 3 已完成
}
export default class TaskService extends UserService {
constructor(context: Context) {
constructor(context: IContext) {
super(context)
}
......
......@@ -12,7 +12,7 @@ import { VIP_MOCK } from '../vipMock'
class UserService extends BaseService {
userdao: IBaseDao
constructor(context: Context) {
constructor(context: IContext) {
super(context)
this.userdao = new BaseDao(context, USER_DB_NAME)
}
......
/** @format */
interface Context {
interface IContext {
appkey: string
sourceAppKey: string
userNick?: string
......
......@@ -8,7 +8,7 @@ import { SELLER_INFO_DB_NAME, ACTIVITY_CONFIG_DB_NAME } from '../../db'
import { BaseDao } from '../../sdk'
export const getSellerSession = async (context: Context, activityId?: string) => {
export const getSellerSession = async (context: IContext, activityId?: string) => {
if (!activityId) {
activityId = context.data.activityId
}
......
/** @format */
// 测试环境 duib2账户mock数据
export const isUseVipMock = (context: Context, userNick: string) => {
export const isUseVipMock = (context: IContext, userNick: string) => {
const isTestEnv = context.env === 'test'
const isDuibaAccount = userNick.startsWith('duiba2')
......
......@@ -3,7 +3,7 @@ import { BaseDao } from '../../sdk'
import { ERROR_LOG_DB_NAME } from '../../db'
import { getToday } from '../../utils'
export const logFn = (context: Context) => {
export const logFn = (context: IContext) => {
const data = JSON.stringify(context.data)
console.log(context)
console.log(
......@@ -16,7 +16,7 @@ export const logFn = (context: Context) => {
// 记录错误日志
export const recordErrorLog = async (
context: Context,
context: IContext,
baseInfos: IControllerInfos,
errorMsg: string,
stack: string
......
......@@ -11,7 +11,7 @@ import { CodeType } from 'taobao-mini-sdk/lib/utils/codetypes'
* @param {*} context
*/
export const sendTBAward = async (
context: Context,
context: IContext,
session: string,
document: IAwards
): Promise<IAwards | CodeType> => {
......@@ -51,7 +51,7 @@ export const sendTBAward = async (
* @param {*} context
* @returns {drawStatus, remark}
*/
export const sendCredits = async (credits: number, session: string, context: Context) => {
export const sendCredits = async (credits: number, session: string, context: IContext) => {
let drawStatus = 0
let remark = ''
let result = await TBAPIS.changeCredits(context, session, {
......@@ -77,7 +77,7 @@ export const sendCredits = async (credits: number, session: string, context: Con
* @returns { drawStatus, remark }
*/
export const sendEname = async (ename: string, uniqueId: string, session: string, context: Context) => {
export const sendEname = async (ename: string, uniqueId: string, session: string, context: IContext) => {
let result = {
result_success: '',
result_code: '',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment