Commit b417c6c6 authored by qinhaitao's avatar qinhaitao

feat: 🎸 preCheck

parent b31d858e
......@@ -46,7 +46,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
}
};
Object.defineProperty(exports, "__esModule", { value: true });
var decorator_1 = require("../decorator");
var common_1 = require("../decorator/common");
var sdk_1 = require("../sdk");
var service_1 = require("../service");
var constants_1 = require("../constants");
......@@ -208,33 +208,33 @@ var AwardsController = /** @class */ (function () {
});
};
__decorate([
decorator_1.paramsCheck(['activityId']),
decorator_1.userCheck({ intercept: true }),
decorator_1.services([service_1.AwardsService]),
common_1.paramsCheck(['activityId']),
common_1.userCheck({ intercept: true }),
common_1.services([service_1.AwardsService]),
__metadata("design:type", Function),
__metadata("design:paramtypes", [Object, Object, Array]),
__metadata("design:returntype", Promise)
], AwardsController.prototype, "getMyPrizeList", null);
__decorate([
decorator_1.paramsCheck(['activityId', 'id', 'name', 'phone', 'province', 'city', 'area', 'addressDetail', 'streetName']),
decorator_1.userCheck({ intercept: true }),
decorator_1.services([service_1.AwardsService]),
common_1.paramsCheck(['activityId', 'id', 'name', 'phone', 'province', 'city', 'area', 'addressDetail', 'streetName']),
common_1.userCheck({ intercept: true }),
common_1.services([service_1.AwardsService]),
__metadata("design:type", Function),
__metadata("design:paramtypes", [Object, Object, Array]),
__metadata("design:returntype", Promise)
], AwardsController.prototype, "receiveObjectPrize", null);
__decorate([
decorator_1.paramsCheck(['activityId', 'id']),
decorator_1.userCheck({ intercept: true }),
decorator_1.services([service_1.AwardsService]),
common_1.paramsCheck(['activityId', 'id']),
common_1.userCheck({ intercept: true }),
common_1.services([service_1.AwardsService]),
__metadata("design:type", Function),
__metadata("design:paramtypes", [Object, Object, Array]),
__metadata("design:returntype", Promise)
], AwardsController.prototype, "receiveEnamePrize", null);
__decorate([
decorator_1.paramsCheck(['activityId', 'prizeDataType']),
decorator_1.activityTimeCheck,
decorator_1.services([service_1.AwardsService]),
common_1.paramsCheck(['activityId', 'prizeDataType']),
common_1.activityTimeCheck,
common_1.services([service_1.AwardsService]),
__metadata("design:type", Function),
__metadata("design:paramtypes", [Object, Object, Array]),
__metadata("design:returntype", Promise)
......
{"version":3,"file":"awards.controller.js","sourceRoot":"","sources":["../../src/controller/awards.controller.ts"],"names":[],"mappings":";AAAA,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEd,0CAAkF;AAClF,8BAAqC;AACrC,sCAA0C;AAC1C,0CAAkE;AAClE,kCAA2C;AAwB3C;IAAA;IA+IA,CAAC;IA9IC;;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,KAAmF,OAAO,CAAC,IAAI,EAA7F,QAAQ,cAAA,EAAE,IAAI,UAAA,EAAE,IAAI,UAAA,EAAE,UAAU,gBAAA,EAAE,aAAa,mBAAA,EAAE,EAAE,QAAA,EAAE,IAAI,UAAA,EAAE,KAAK,WAAA,EAAE,UAAU,gBAAA,CAAiB;wBAEtF,qBAAM,QAAQ,CAAC,kBAAkB,CAAC,EAAE,EAAE;gCACjD,UAAU,YAAA;gCACV,QAAQ,UAAA;gCACR,IAAI,MAAA;gCACJ,IAAI,MAAA;gCACJ,UAAU,YAAA;gCACV,aAAa,eAAA;gCACb,IAAI,MAAA;gCACJ,KAAK,OAAA;6BACN,CAAC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AC;gCAC1B,EAAE,EAAE,MAAM;gCACV,IAAI,MAAA;gCACJ,IAAI,MAAA;gCACJ,KAAK,OAAA;6BACN,CAAC,EAAA;;;;KACH;IAvID;QAHC,oBAAW,CAAC,CAAC,YAAY,CAAC,CAAC;QAC3B,kBAAS,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;QAC9B,iBAAQ,CAAC,CAAC,uBAAa,CAAC,CAAC;;;;0DAczB;IAQD;QAHC,oBAAW,CAAC,CAAC,YAAY,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,eAAe,EAAE,YAAY,CAAC,CAAC;QAC7G,kBAAS,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;QAC9B,iBAAQ,CAAC,CAAC,uBAAa,CAAC,CAAC;;;;8DAuBzB;IAQD;QAHC,oBAAW,CAAC,CAAC,YAAY,EAAE,IAAI,CAAC,CAAC;QACjC,kBAAS,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;QAC9B,iBAAQ,CAAC,CAAC,uBAAa,CAAC,CAAC;;;;6DAYzB;IAQD;QAHC,oBAAW,CAAC,CAAC,YAAY,EAAE,eAAe,CAAC,CAAC;QAC5C,0BAAiB;QACjB,iBAAQ,CAAC,CAAC,uBAAa,CAAC,CAAC;;;;4DAkEzB;IACH,uBAAC;CAAA,AA/ID,IA+IC;kBA/IoB,gBAAgB"}
\ No newline at end of file
......@@ -47,7 +47,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
};
Object.defineProperty(exports, "__esModule", { value: true });
var constants_1 = require("./../constants");
var decorator_1 = require("../decorator");
var common_1 = require("../decorator/common");
var sdk_1 = require("../sdk");
var service_1 = require("../service");
var BaseController = /** @class */ (function () {
......@@ -97,16 +97,16 @@ var BaseController = /** @class */ (function () {
});
};
__decorate([
decorator_1.paramsCheck(['activityId']),
decorator_1.services([service_1.BaseService]),
common_1.paramsCheck(['activityId']),
common_1.services([service_1.BaseService]),
__metadata("design:type", Function),
__metadata("design:paramtypes", [Object, Object, Array]),
__metadata("design:returntype", Promise)
], BaseController.prototype, "getActivityBaseInfoById", null);
__decorate([
decorator_1.paramsCheck(['itemIds']),
decorator_1.registeInfos(['session']),
decorator_1.services([service_1.BaseService]),
common_1.paramsCheck(['itemIds']),
common_1.registeInfos(['session']),
common_1.services([service_1.BaseService]),
__metadata("design:type", Function),
__metadata("design:paramtypes", [Object, Object, Array]),
__metadata("design:returntype", Promise)
......
{"version":3,"file":"base.controller.js","sourceRoot":"","sources":["../../src/controller/base.controller.ts"],"names":[],"mappings":";AAAA,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEd,4CAA2C;AAC3C,0CAAkE;AAElE,8BAAqC;AAErC,sCAAwC;AACxC;IAAA;IAwCA,CAAC;IAvCC;;OAEG;IAGG,gDAAuB,GAA7B,UACE,OAEE,EACF,EAAE,EACF,EAA4B;YAA3B,WAAW,QAAA;;;;;;wBAEJ,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;IAIG,6CAAoB,GAA1B,UACE,OAAsC,EACtC,EAA6B,EAC7B,EAA4B;YAD1B,OAAO,aAAA;YACR,WAAW,QAAA;;;;;;wBAEJ,OAAO,GAAK,OAAO,CAAC,IAAI,QAAjB,CAAiB;wBAEnB,qBAAM,WAAW,CAAC,gBAAgB,CAAC,OAAO,EAAE,OAAO,CAAC,EAAA;;wBAA3D,IAAI,GAAG,SAAoD;wBAEjE,sBAAO,kBAAY,CAAC,OAAO,CAAC,IAAI,CAAC,EAAA;;;;KAClC;IAjCD;QAFC,uBAAW,CAAC,CAAC,YAAY,CAAC,CAAC;QAC3B,oBAAQ,CAAC,CAAC,qBAAW,CAAC,CAAC;;;;iEAgBvB;IAQD;QAHC,uBAAW,CAAC,CAAC,SAAS,CAAC,CAAC;QACxB,wBAAY,CAAC,CAAC,SAAS,CAAC,CAAC;QACzB,oBAAQ,CAAC,CAAC,qBAAW,CAAC,CAAC;;;;8DAWvB;IACH,qBAAC;CAAA,AAxCD,IAwCC;kBAxCoB,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,8CAAyE;AAEzE,8BAAqC;AAErC,sCAAwC;AACxC;IAAA;IAwCA,CAAC;IAvCC;;OAEG;IAGG,gDAAuB,GAA7B,UACE,OAEE,EACF,EAAE,EACF,EAA4B;YAA3B,WAAW,QAAA;;;;;;wBAEJ,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;IAIG,6CAAoB,GAA1B,UACE,OAAsC,EACtC,EAA6B,EAC7B,EAA4B;YAD1B,OAAO,aAAA;YACR,WAAW,QAAA;;;;;;wBAEJ,OAAO,GAAK,OAAO,CAAC,IAAI,QAAjB,CAAiB;wBAEnB,qBAAM,WAAW,CAAC,gBAAgB,CAAC,OAAO,EAAE,OAAO,CAAC,EAAA;;wBAA3D,IAAI,GAAG,SAAoD;wBAEjE,sBAAO,kBAAY,CAAC,OAAO,CAAC,IAAI,CAAC,EAAA;;;;KAClC;IAjCD;QAFC,oBAAW,CAAC,CAAC,YAAY,CAAC,CAAC;QAC3B,iBAAQ,CAAC,CAAC,qBAAW,CAAC,CAAC;;;;iEAgBvB;IAQD;QAHC,oBAAW,CAAC,CAAC,SAAS,CAAC,CAAC;QACxB,qBAAY,CAAC,CAAC,SAAS,CAAC,CAAC;QACzB,iBAAQ,CAAC,CAAC,qBAAW,CAAC,CAAC;;;;8DAWvB;IACH,qBAAC;CAAA,AAxCD,IAwCC;kBAxCoB,cAAc"}
\ No newline at end of file
......@@ -47,15 +47,15 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
};
Object.defineProperty(exports, "__esModule", { value: true });
var constants_1 = require("./../constants");
var check_1 = require("../decorator/check");
var services_1 = require("../decorator/services");
var check_1 = require("../decorator/common/check");
var services_1 = require("../decorator/common/services");
var sdk_1 = require("../sdk");
var utils_1 = require("../utils");
var service_1 = require("../service");
var registeInfos_1 = require("../decorator/registeInfos");
var registeInfos_1 = require("../decorator/common/registeInfos");
var constants_2 = require("../constants");
var checkActivityTime_1 = require("../utils/check/checkActivityTime");
var preCheck_1 = require("../decorator/preCheck");
var preCheck_1 = require("../decorator/common/preCheck");
var Share = /** @class */ (function () {
function Share() {
}
......
{"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,kCAAmE;AACnE,sCAAiF;AACjF,0DAAwD;AACxD,0CAAwC;AACxC,sEAAoE;AACpE,kDAAgD;AAEhD;IAAA;IAoGA,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;QAC9B,2BAAY,CAAC,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC1C,mBAAQ,CAAC,CAAC,qBAAW,CAAC,CAAC;;;;6CAkBvB;IAQD;QAJC,mBAAW,CAAC,CAAC,YAAY,EAAE,UAAU,CAAC,CAAC;QACvC,2BAAY,CAAC,CAAC,UAAU,EAAE,SAAS,EAAE,cAAc,CAAC,CAAC;QACrD,mBAAQ,CAAC,CAAC,qCAAiB,CAAC,CAAC;QAC7B,mBAAQ,CAAC,CAAC,qBAAW,EAAE,qBAAW,EAAE,qBAAW,EAAE,uBAAa,CAAC,CAAC;;;;uCAmEhE;IACH,YAAC;CAAA,AApGD,IAoGC;kBApGoB,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,mDAAqF;AACrF,yDAAuD;AAEvD,8BAAqC;AACrC,kCAAmE;AACnE,sCAAiF;AACjF,iEAA+D;AAC/D,0CAAwC;AACxC,sEAAoE;AACpE,yDAAuD;AAEvD;IAAA;IAoGA,CAAC;IAnGC;;OAEG;IAKG,4BAAY,GAAlB,UACE,OAEE,EACF,EAA8B;YAA5B,QAAQ,cAAA;;;;gBAOO,OAAO,GACpB,QAAQ,oBADY,CACZ;gBAEZ,sBAAO,kBAAY,CAAC,OAAO,CAAC;wBAC1B,OAAO,EAAE,OAAO;qBACjB,CAAC,EAAA;;;KACH;IACD;;OAEG;IAKG,sBAAM,GAAZ,UACE,OAGE,EACF,EAAqD,EACrD,EAA+F;YAD7F,QAAQ,cAAA,EAAE,OAAO,aAAA,EAAE,YAAY,kBAAA;YAChC,WAAW,QAAA,EAAE,WAAW,QAAA,EAAE,WAAW,QAAA;;;;;;;wBAEhC,KAA2B,OAAO,CAAC,IAAI,EAArC,QAAQ,cAAA,EAAE,UAAU,gB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_1 = require("../db");
var sdk_1 = require("../sdk");
var constants_1 = require("../constants");
var xlsx = require("node-xlsx");
var services_1 = require("../decorator/services");
var services_1 = require("../decorator/common/services");
var service_1 = require("../service");
var decorator_1 = require("../decorator");
var common_1 = require("../decorator/common");
/** @format */
var StatController = /** @class */ (function () {
function StatController() {
......@@ -247,7 +247,7 @@ var StatController = /** @class */ (function () {
});
};
__decorate([
decorator_1.registeInfos(['userInfo']),
common_1.registeInfos(['userInfo']),
services_1.services([service_1.StatService]),
__metadata("design:type", Function),
__metadata("design:paramtypes", [Object, Object, Array]),
......
{"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;AACjC,kDAAgD;AAChD,sCAAwC;AACxC,0CAA2C;AAa3C,cAAc;AACd;IAAA;IA8JA,CAAC;IA7JC;;OAEG;IAGG,gCAAO,GAAb,UAAc,OAAkC,EAAE,EAA8B,EAAE,EAA4B;YAA1D,QAAQ,cAAA;YAAuB,WAAW,QAAA;;;;;;wBACpF,IAAI,GAAK,OAAO,CAAC,IAAI,KAAjB,CAAiB;wBAC7B,qBAAM,WAAW,CAAC,OAAO,CAAC,IAAI,EAAE,QAAQ,CAAC,EAAA;;wBAAzC,SAAyC,CAAA;wBACzC,sBAAO,kBAAY,CAAC,OAAO,CAAC,IAAI,CAAC,EAAA;;;;KAClC;IACD;;OAEG;IACG,iCAAQ,GAAd,UAAe,OAAkC;;;;;;;;wBACzC,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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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,EAAA;;;wBAEnC,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;IAvJD;QAFC,qBAAY,CAAC,CAAC,UAAU,CAAC,CAAC;QAC1B,mBAAQ,CAAC,CAAC,qBAAW,CAAC,CAAC;;;;iDAKvB;IAoJH,qBAAC;CAAA,AA9JD,IA8JC;kBA9JoB,cAAc"}
\ No newline at end of file
......@@ -58,7 +58,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
};
Object.defineProperty(exports, "__esModule", { value: true });
var constants_1 = require("./../constants");
var decorator_1 = require("../decorator");
var common_1 = require("../decorator/common");
var sdk_1 = require("../sdk");
var service_1 = require("../service");
var Task = /** @class */ (function () {
......@@ -357,78 +357,78 @@ var Task = /** @class */ (function () {
});
};
__decorate([
decorator_1.paramsCheck(['activityId']),
decorator_1.userCheck({ intercept: true }),
decorator_1.activityTimeCheck,
decorator_1.registeInfos(['userInfo', 'vipInfo', 'activityInfo']),
decorator_1.services([service_1.TaskService]),
common_1.paramsCheck(['activityId']),
common_1.userCheck({ intercept: true }),
common_1.activityTimeCheck,
common_1.registeInfos(['userInfo', 'vipInfo', 'activityInfo']),
common_1.services([service_1.TaskService]),
__metadata("design:type", Function),
__metadata("design:paramtypes", [Object, Object, Array]),
__metadata("design:returntype", Promise)
], Task.prototype, "getTaskList", null);
__decorate([
decorator_1.paramsCheck(['activityId']),
decorator_1.activityTimeCheck,
decorator_1.registeInfos(['userInfo', 'activityInfo']),
decorator_1.services([service_1.TaskService]),
common_1.paramsCheck(['activityId']),
common_1.activityTimeCheck,
common_1.registeInfos(['userInfo', 'activityInfo']),
common_1.services([service_1.TaskService]),
__metadata("design:type", Function),
__metadata("design:paramtypes", [Object, Object, Array]),
__metadata("design:returntype", Promise)
], Task.prototype, "doFollowTask", null);
__decorate([
decorator_1.paramsCheck(['activityId', 'credits']),
decorator_1.userCheck({ intercept: true }),
decorator_1.activityTimeCheck,
decorator_1.registeInfos(['userInfo', 'activityInfo', 'session']),
decorator_1.services([service_1.TaskService]),
common_1.paramsCheck(['activityId', 'credits']),
common_1.userCheck({ intercept: true }),
common_1.activityTimeCheck,
common_1.registeInfos(['userInfo', 'activityInfo', 'session']),
common_1.services([service_1.TaskService]),
__metadata("design:type", Function),
__metadata("design:paramtypes", [Object, Object, Array]),
__metadata("design:returntype", Promise)
], Task.prototype, "doExchangeCreditsTask", null);
__decorate([
decorator_1.paramsCheck(['activityId', 'itemId']),
decorator_1.userCheck({ intercept: true }),
decorator_1.activityTimeCheck,
decorator_1.registeInfos(['userInfo', 'activityInfo']),
decorator_1.services([service_1.TaskService]),
common_1.paramsCheck(['activityId', 'itemId']),
common_1.userCheck({ intercept: true }),
common_1.activityTimeCheck,
common_1.registeInfos(['userInfo', 'activityInfo']),
common_1.services([service_1.TaskService]),
__metadata("design:type", Function),
__metadata("design:paramtypes", [Object, Object, Array]),
__metadata("design:returntype", Promise)
], Task.prototype, "doBrowseGoodsTask", null);
__decorate([
decorator_1.paramsCheck(['activityId', 'itemId']),
decorator_1.userCheck({ intercept: true }),
decorator_1.activityTimeCheck,
decorator_1.registeInfos(['userInfo', 'activityInfo']),
decorator_1.services([service_1.TaskService]),
common_1.paramsCheck(['activityId', 'itemId']),
common_1.userCheck({ intercept: true }),
common_1.activityTimeCheck,
common_1.registeInfos(['userInfo', 'activityInfo']),
common_1.services([service_1.TaskService]),
__metadata("design:type", Function),
__metadata("design:paramtypes", [Object, Object, Array]),
__metadata("design:returntype", Promise)
], Task.prototype, "doCollectGoodsTask", null);
__decorate([
decorator_1.paramsCheck(['activityId']),
decorator_1.userCheck({ intercept: true }),
decorator_1.activityTimeCheck,
decorator_1.registeInfos(['userInfo', 'activityInfo']),
decorator_1.services([service_1.TaskService]),
common_1.paramsCheck(['activityId']),
common_1.userCheck({ intercept: true }),
common_1.activityTimeCheck,
common_1.registeInfos(['userInfo', 'activityInfo']),
common_1.services([service_1.TaskService]),
__metadata("design:type", Function),
__metadata("design:paramtypes", [Object, Object, Array]),
__metadata("design:returntype", Promise)
], Task.prototype, "doJumpLinkTask", null);
__decorate([
decorator_1.paramsCheck(['activityId', 'taskType']),
decorator_1.userCheck({ intercept: true }),
decorator_1.activityTimeCheck,
decorator_1.registeInfos(['userInfo']),
decorator_1.services([service_1.TaskService]),
common_1.paramsCheck(['activityId', 'taskType']),
common_1.userCheck({ intercept: true }),
common_1.activityTimeCheck,
common_1.registeInfos(['userInfo']),
common_1.services([service_1.TaskService]),
__metadata("design:type", Function),
__metadata("design:paramtypes", [Object, Object, Array]),
__metadata("design:returntype", Promise)
], Task.prototype, "receiveTaskRewards", null);
__decorate([
decorator_1.paramsCheck(['activityId', 'itemIds']),
decorator_1.registeInfos(['userInfo', 'session']),
decorator_1.services([service_1.BaseService, service_1.TaskService]),
common_1.paramsCheck(['activityId', 'itemIds']),
common_1.registeInfos(['userInfo', 'session']),
common_1.services([service_1.BaseService, service_1.TaskService]),
__metadata("design:type", Function),
__metadata("design:paramtypes", [Object, Object, Array]),
__metadata("design:returntype", Promise)
......
This diff is collapsed.
......@@ -46,7 +46,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
}
};
Object.defineProperty(exports, "__esModule", { value: true });
var decorator_1 = require("../decorator");
var common_1 = require("../decorator/common");
var sdk_1 = require("../sdk");
var service_1 = require("../service");
var vip_1 = require("../utils/package/vip");
......@@ -138,26 +138,25 @@ var User = /** @class */ (function () {
});
};
__decorate([
decorator_1.paramsCheck(['activityId', 'userNick', 'avatar', 'isFollow']),
decorator_1.activityTimeCheck,
decorator_1.registeInfos(['userInfo', 'vipInfo', 'activityInfo']),
decorator_1.services([service_1.UserService, service_1.AccessService]),
common_1.paramsCheck(['activityId', 'userNick', 'avatar', 'isFollow']),
common_1.registeInfos(['userInfo', 'vipInfo', 'activityInfo']),
common_1.services([service_1.UserService, service_1.AccessService]),
__metadata("design:type", Function),
__metadata("design:paramtypes", [Object, Object, Array]),
__metadata("design:returntype", Promise)
], User.prototype, "login", null);
__decorate([
decorator_1.paramsCheck(['activityId']),
decorator_1.registeInfos(['session']),
decorator_1.services([]),
common_1.paramsCheck(['activityId']),
common_1.registeInfos(['session']),
common_1.services([]),
__metadata("design:type", Function),
__metadata("design:paramtypes", [Object, Object]),
__metadata("design:returntype", Promise)
], User.prototype, "getVipInfo", null);
__decorate([
decorator_1.paramsCheck(['activityId']),
decorator_1.userCheck({ intercept: true }),
decorator_1.services([service_1.UserService]),
common_1.paramsCheck(['activityId']),
common_1.userCheck({ intercept: true }),
common_1.services([service_1.UserService]),
__metadata("design:type", Function),
__metadata("design:paramtypes", [Object, Object, Array]),
__metadata("design:returntype", Promise)
......
{"version":3,"file":"user.controller.js","sourceRoot":"","sources":["../../src/controller/user.controller.ts"],"names":[],"mappings":";AAAA,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEd,0CAAgG;AAChG,8BAAqC;AACrC,sCAAuD;AACvD,4CAAiE;AAcjE;IAAA;IA2EA,CAAC;IA1EC;;OAEG;IAKG,oBAAK,GAAX,UACE,OAA+B,EAC/B,EAAqD,EACrD,EAA0D;YADxD,QAAQ,cAAA,EAAE,OAAO,aAAA,EAAE,YAAY,kBAAA;YAChC,WAAW,QAAA,EAAE,aAAa,QAAA;;;;;;wBAEnB,MAAM,GAAK,OAAO,OAAZ,CAAY;6BAEtB,CAAC,QAAQ,EAAT,wBAAS;wBACA,qBAAM,WAAW,CAAC,YAAY,CAAC,OAAO,EAAE,YAAY,CAAC,EAAA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BAAY,CAAC,OAAO,CAAC;gCAC1B,QAAQ,UAAA;gCACR,MAAM,QAAA;gCACN,IAAI,MAAA;gCACJ,KAAK,EAAE,QAAQ,CAAC,OAAO,CAAC;gCACxB,IAAI,MAAA;6BACL,CAAC,EAAA;;;;KACH;IAlED;QAJC,uBAAW,CAAC,CAAC,YAAY,EAAE,UAAU,EAAE,QAAQ,EAAE,UAAU,CAAC,CAAC;QAC7D,6BAAiB;QACjB,wBAAY,CAAC,CAAC,UAAU,EAAE,SAAS,EAAE,cAAc,CAAC,CAAC;QACrD,oBAAQ,CAAC,CAAC,qBAAW,EAAE,uBAAa,CAAC,CAAC;;;;qCAoBtC;IAOD;QAHC,uBAAW,CAAC,CAAC,YAAY,CAAC,CAAC;QAC3B,wBAAY,CAAC,CAAC,SAAS,CAAC,CAAC;QACzB,oBAAQ,CAAC,EAAE,CAAC;;;;0CAUZ;IAQD;QAHC,uBAAW,CAAC,CAAC,YAAY,CAAC,CAAC;QAC3B,qBAAS,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;QAC9B,oBAAQ,CAAC,CAAC,qBAAW,CAAC,CAAC;;;;2CAwBvB;IACH,WAAC;CAAA,AA3ED,IA2EC;kBA3EoB,IAAI"}
\ No newline at end of file
{"version":3,"file":"user.controller.js","sourceRoot":"","sources":["../../src/controller/user.controller.ts"],"names":[],"mappings":";AAAA,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEd,8CAAuG;AACvG,8BAAqC;AACrC,sCAAuD;AACvD,4CAAiE;AAgBjE;IAAA;IA0EA,CAAC;IAzEC;;OAEG;IAIG,oBAAK,GAAX,UACE,OAA+B,EAC/B,EAAqD,EACrD,EAA0D;YADxD,QAAQ,cAAA,EAAE,OAAO,aAAA,EAAE,YAAY,kBAAA;YAChC,WAAW,QAAA,EAAE,aAAa,QAAA;;;;;;wBAEnB,MAAM,GAAK,OAAO,OAAZ,CAAY;6BAEtB,CAAC,QAAQ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AAE,QAAQ,EAAE,GAAG,CAAC,EAAA;;wBAAxD,IAAI,GAAG,SAAiD;wBAE9D,sBAAO,kBAAY,CAAC,OAAO,CAAC;gCAC1B,QAAQ,UAAA;gCACR,MAAM,QAAA;gCACN,IAAI,MAAA;gCACJ,KAAK,EAAE,QAAQ,CAAC,OAAO,CAAC;gCACxB,IAAI,MAAA;6BACL,CAAC,EAAA;;;;KACH;IAlED;QAHC,oBAAW,CAAC,CAAC,YAAY,EAAE,UAAU,EAAE,QAAQ,EAAE,UAAU,CAAC,CAAC;QAC7D,qBAAY,CAAC,CAAC,UAAU,EAAE,SAAS,EAAE,cAAc,CAAC,CAAC;QACrD,iBAAQ,CAAC,CAAC,qBAAW,EAAE,uBAAa,CAAC,CAAC;;;;qCAoBtC;IAOD;QAHC,oBAAW,CAAC,CAAC,YAAY,CAAC,CAAC;QAC3B,qBAAY,CAAC,CAAC,SAAS,CAAC,CAAC;QACzB,iBAAQ,CAAC,EAAE,CAAC;;;;0CAUZ;IAQD;QAHC,oBAAW,CAAC,CAAC,YAAY,CAAC,CAAC;QAC3B,kBAAS,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;QAC9B,iBAAQ,CAAC,CAAC,qBAAW,CAAC,CAAC;;;;2CAwBvB;IACH,WAAC;CAAA,AA1ED,IA0EC;kBA1EoB,IAAI"}
\ No newline at end of file
/** @format */
import { services, paramsCheck, userCheck, activityTimeCheck } from '../decorator'
import { services, paramsCheck, userCheck, activityTimeCheck } from '../decorator/common'
import { resultsModel } from '../sdk'
import { AwardsService } from '../service'
import { PRIZE_TYPE, DRAW_STATUS, CODE_TYPES } from '../constants'
......
/** @format */
import { CODE_TYPES } from './../constants'
import { services, paramsCheck, registeInfos } from '../decorator'
import { services, paramsCheck, registeInfos } from '../decorator/common'
import { resultsModel } from '../sdk'
import { logger } from '../utils'
......
/** @format */
import { CODE_TYPES } from './../constants'
import { paramsCheck, userCheck, activityTimeCheck } from '../decorator/check'
import { services } from '../decorator/services'
import { paramsCheck, userCheck, activityTimeCheck } from '../decorator/common/check'
import { services } from '../decorator/common/services'
import { resultsModel } from '../sdk'
import { getToday, setNewVipUserData, checkNewVip } from '../utils'
import { UserService, AccessService, TaskService, StatService } from '../service'
import { registeInfos } from '../decorator/registeInfos'
import { registeInfos } from '../decorator/common/registeInfos'
import { STAT_TYPE } from '../constants'
import { checkActivityTime } from '../utils/check/checkActivityTime'
import { preCheck } from '../decorator/preCheck'
import { preCheck } from '../decorator/common/preCheck'
export default class Share {
/**
......
......@@ -4,9 +4,9 @@ import { USER_DB_NAME, ACCESS_DB_NAME, AWARDS_DB_NAME } from '../db'
import { resultsModel, dateFormatter, transformBeijingDate, BaseDao } from '../sdk'
import { CODE_TYPES } from '../constants'
import * as xlsx from 'node-xlsx'
import { services } from '../decorator/services'
import { services } from '../decorator/common/services'
import { StatService } from '../service'
import { registeInfos } from '../decorator'
import { registeInfos } from '../decorator/common'
export interface IGetStatsParams {
activityId: string
......
/** @format */
import { CODE_TYPES, TASK_RATE_TYPE } from './../constants'
import { paramsCheck, userCheck, activityTimeCheck, noCatch, services, registeInfos } from '../decorator'
import { paramsCheck, userCheck, activityTimeCheck, noCatch, services, registeInfos } from '../decorator/common'
import { resultsModel, TBAPIS } from '../sdk'
import { TaskService, BaseService } from '../service'
......
/** @format */
import { services, paramsCheck, activityTimeCheck, registeInfos, userCheck } from '../decorator'
import { services, paramsCheck, activityTimeCheck, registeInfos, userCheck } from '../decorator/common'
import { resultsModel } from '../sdk'
import { UserService, AccessService } from '../service'
import { formatVipCbUrl, getShopVip } from '../utils/package/vip'
import { preCheck } from '../decorator/common/preCheck'
import { checkActivityTime } from '../utils/check/checkActivityTime'
export interface IVipParams {
activityId: string
......@@ -22,7 +24,6 @@ export default class User {
* 登录接口, 初始化/更新用户信息
*/
@paramsCheck(['activityId', 'userNick', 'avatar', 'isFollow'])
@activityTimeCheck
@registeInfos(['userInfo', 'vipInfo', 'activityInfo'])
@services([UserService, AccessService])
async login(
......
/** @format */
import { resultsModel } from '../sdk'
import { CODE_TYPES } from '../constants'
import { UserService, BaseService } from '../service'
import { getSellerSession, logFn } from '../utils'
import { getConfig } from '../config'
import { formatVipCbUrl, getShopVip } from '../utils/package/vip'
import { resultsModel } from '../../sdk'
import { CODE_TYPES } from '../../constants'
import { UserService, BaseService } from '../../service'
import { getSellerSession, logFn } from '../../utils'
import { getConfig } from '../../config'
import { formatVipCbUrl, getShopVip } from '../../utils/package/vip'
// 检验参数是否存在
export const paramsCheck = (params: string[]) => {
return function (target: Object, name: string, descriptor: PropertyDescriptor) {
......
/** @format */
import { resultsModel } from '../../sdk'
// 检验参数是否存在
export const preCheck = (checks: any[]) => {
export const preCheck = (checks: IFunction[]) => {
return function (target: Object, name: string, descriptor: PropertyDescriptor) {
const method = descriptor.value
descriptor.value = async function (...args: any[]) {
let [context, otherArgs = {}] = args
const dataKeys = Object.keys(context.data)
let [context, otherArgs = {}, services = []] = args
for (let i = 0; i < checks.length; i++) {
const checkFn = checks[i]
const result = await checkFn.apply(target, [context, { ...otherArgs }])
const result = await checkFn.apply(target, [context, { ...otherArgs }, services])
if ((result as IErrorResult).success === false && (result as IErrorResult).code) {
return resultsModel.error(result)
}
otherArgs = { ...otherArgs, ...result }
}
return method.apply(target, [context, { ...otherArgs }])
return method.apply(target, [context, { ...otherArgs }, services])
}
}
}
/** @format */
import { UserService } from '../service'
import { getSellerSession } from '../utils'
import { formatVipCbUrl, getShopVip } from '../utils/package/vip'
import { UserService, BaseService } from '../../service'
import { getSellerSession } from '../../utils'
import { formatVipCbUrl, getShopVip } from '../../utils/package/vip'
export type IInfo = 'userInfo' | 'session' | 'activityInfo' | 'vipInfo'
......@@ -20,6 +20,14 @@ async function initBaseInfo(context: IContext<IParams>, baseInfos: IControllerIn
baseInfos.activityUserNick = userNick
}
if (needInfos.includes('activityInfo') && !baseInfos.activityInfo) {
const baseService = new BaseService(context)
// 活动基本情况
const activityInfo = await baseService.getBaseInfo(context.data.activityId)
baseInfos.activityInfo = activityInfo
}
if (needInfos.includes('vipInfo') && !baseInfos.vipInfo && handler !== 'getVipInfo') {
if (!baseInfos.session) {
const { session, userNick } = await getSellerSession(context)
......
/** @format */
import { logFn, recordErrorLog } from '../utils'
import { resultsModel } from '../sdk'
import { CODE_TYPES } from '../constants'
import { logFn, recordErrorLog } from '../../utils'
import { resultsModel } from '../../sdk'
import { CODE_TYPES } from '../../constants'
import { doHandler } from '../../utils/common/doHandler'
type Constructor = new (...args: any[]) => {}
......@@ -24,15 +25,15 @@ export const services = (services: Constructor[]) => {
delete baseInfos.noCatch
return method.apply(target, [context, baseInfos, servicesInstance])
}
let ret: IResult<any>
try {
ret = await method.apply(target, [context, baseInfos, servicesInstance])
} catch (error) {
console.log('error', error)
await recordErrorLog(context, baseInfos, error.toString(), error.stack)
ret = resultsModel.error(CODE_TYPES.SYSTEM_ERROR)
}
return ret
// let ret: IResult<any>
// try {
// ret = await method.apply(target, [context, baseInfos, servicesInstance])
// } catch (error) {
// console.log('error', error)
// await recordErrorLog(context, baseInfos, error.toString(), error.stack)
// ret = resultsModel.error(CODE_TYPES.SYSTEM_ERROR)
// }
return await doHandler(target, method, [context, baseInfos, servicesInstance])
}
}
}
src
├─constants.ts
├─db.ts
├─errorCode.ts
├─index.ts
├─sdk.ts
├─vipMock.ts
├─utils
| ├─index.ts
| ├─package
| | ├─exportHandlers.ts
| | ├─format.ts
| | ├─getSession.ts
| | ├─getToday.ts
| | ├─getUserOrderlist.ts
| | ├─helper.ts
| | ├─lockUpdate.ts
| | ├─logger.ts
| | ├─rand.ts
| | ├─sendTBAward.ts
| | ├─task.ts
| | ├─userUpdate.ts
| | └vip.ts
| ├─custom
| ├─common
| ├─check
| | ├─checkActivityTime.ts
| | └checkTaskLimit.ts
├─typings
| ├─activityConfig.d.ts
| ├─awards.d.ts
| ├─dao.d.ts
| ├─index.d.ts
| ├─item.d.ts
| ├─prizeConfig.d.ts
| ├─resultModel.d.ts
| ├─seller.d.ts
| └user.d.ts
├─test
├─service
| ├─access.service.ts
| ├─awards.service.ts
| ├─base.service.ts
| ├─index.ts
| ├─stat.service.ts
| ├─task.service.ts
| ├─user.service.ts
| ├─custom
| ├─common
├─decorator
| ├─check.ts
| ├─index.ts
| ├─noCatch.ts
| ├─preCheck.ts
| ├─registeInfos.ts
| ├─services.ts
| ├─custom
| ├─common
├─controller
| ├─awards.controller.ts
| ├─base.controller.ts
| ├─share.controller.ts
| ├─stat.controller.ts
| ├─task.controller.ts
| ├─user.controller.ts
| ├─custom
| ├─common
├─config
| ├─index.ts
| ├─online.ts
| └test.ts
├─check
\ No newline at end of file
......@@ -36,3 +36,5 @@ interface IVipInfo {
isVip: boolean
url?: string
}
type IFunction = (...args: any[]) => any
/** @format */
export const checkActivityTime = async () => {}
export const checkActivityTime = async () => {
return {}
}
/** @format */
import { resultsModel } from '../../sdk'
import { recordErrorLog } from '../package/logger'
import { CODE_TYPES } from '../../errorCode'
/** @format */
export async function doHandler(target: Object, method: IFunction, args: any[]) {
let ret: IResult<any>
try {
ret = await method.apply(target, args)
} catch (error) {
console.log('error', error)
await recordErrorLog(args[0], args[1], error.toString(), error.stack)
ret = resultsModel.error(CODE_TYPES.SYSTEM_ERROR)
}
return ret
}
/**
/** @format */
import { getToday } from './getToday'
/**
* 根据任务类型获取任务完成情况
*
* @param {IUserInfo} userInfo
......@@ -6,13 +10,13 @@
* @returns {array}
* @memberof TaskService
*/
export getCompleteTaskByUserTaskInfo(
export default function getCompleteTaskByUserTaskInfo(
taskType: string,
userInfo: IUserInfo
): {
): {
completeTimes: number
taskInfo: ITaskDetail[]
} {
} {
const { taskInfo = {} } = userInfo
let targetTaskList = []
......@@ -29,4 +33,27 @@
completeTimes: targetTaskList?.length || 0,
taskInfo: targetTaskList
}
}
/**
*
* 获取任务今天完成的次数
*
* @param {string} taskType 任务类型
* @param {IUserInfo} userInfo 用户信息
* @returns {number} todayTimes 今日任务完成次数 todayTaskInfo 今日对应任务完成详情
* @memberof TaskService
*/
export function getTodayCompleteTask(
taskType: string,
userInfo: IUserInfo
): {
todayCompleteTimes: number
todayTaskInfo: ITaskDetail[]
} {
const today = getToday()
return {
todayCompleteTimes: userInfo?.taskInfo?.[today]?.[taskType]?.length || 0,
todayTaskInfo: userInfo?.taskInfo?.[today]?.[taskType] || []
}
}
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