Commit 4277e2f2 authored by qinhaitao's avatar qinhaitao

feat: 🎸 export

parent 67fec37f
...@@ -656,7 +656,7 @@ ...@@ -656,7 +656,7 @@
}, },
"custom": { "custom": {
"test1": { "test1": {
"addStat": { "testAddStat": {
"desc": "增加埋点记录", "desc": "增加埋点记录",
"decorators": [ "decorators": [
{ {
...@@ -697,7 +697,7 @@ ...@@ -697,7 +697,7 @@
} }
] ]
}, },
"getStats": { "testGetStats": {
"desc": "统计数据", "desc": "统计数据",
"decorators": [ "decorators": [
{ {
...@@ -736,7 +736,7 @@ ...@@ -736,7 +736,7 @@
} }
}, },
"test2": { "test2": {
"addStat": { "test2addStat": {
"desc": "增加埋点记录", "desc": "增加埋点记录",
"decorators": [ "decorators": [
{ {
...@@ -761,7 +761,7 @@ ...@@ -761,7 +761,7 @@
} }
] ]
}, },
"getStats": { "test2getStats": {
"desc": "统计数据", "desc": "统计数据",
"decorators": [ "decorators": [
{ {
......
...@@ -9,7 +9,7 @@ export default { ...@@ -9,7 +9,7 @@ export default {
{%- for type, type_item in controllers -%} {%- for type, type_item in controllers -%}
{%- for controller, controller_item in type_item -%} {%- for controller, controller_item in type_item -%}
{%- for function, fucntion_item in controller_item %} {%- for function, fucntion_item in controller_item %}
{{type}}{{controller | capitalize}}{{function | capitalize}}: {{type | capitalize}}{{controller | capitalize}}ControllerInstance.{{function}} {{function}}: {{type | capitalize}}{{controller | capitalize}}ControllerInstance.{{function}}
{%-if loop.last-%}{%else%},{%-endif-%} {%-if loop.last-%}{%else%},{%-endif-%}
{%- endfor -%} {%- endfor -%}
{%-if loop.last-%}{%else%},{%-endif-%} {%-if loop.last-%}{%else%},{%-endif-%}
......
...@@ -13,7 +13,7 @@ export default class Test1Controller { ...@@ -13,7 +13,7 @@ export default class Test1Controller {
@checkParams(['activityId', 'type']) @checkParams(['activityId', 'type'])
@test1(['tt']) @test1(['tt'])
@services([CommonStatService, CustomTestService]) @services([CommonStatService, CustomTestService])
async addStat( async testAddStat(
context: IContext<IParams>, context: IContext<IParams>,
{ activityInfo, userInfo }: IControllerInfos, { activityInfo, userInfo }: IControllerInfos,
[commonStatService, customTestService]: [CommonStatService, CustomTestService] [commonStatService, customTestService]: [CommonStatService, CustomTestService]
...@@ -30,7 +30,7 @@ export default class Test1Controller { ...@@ -30,7 +30,7 @@ export default class Test1Controller {
*/ */
@checkParams(['activityId', 'startDay', 'endDay']) @checkParams(['activityId', 'startDay', 'endDay'])
@services([CommonStatService]) @services([CommonStatService])
async getStats( async testGetStats(
context: IContext<IParams>, context: IContext<IParams>,
{ activityInfo, userInfo }: IControllerInfos, { activityInfo, userInfo }: IControllerInfos,
[commonStatService]: [CommonStatService] [commonStatService]: [CommonStatService]
......
...@@ -10,7 +10,7 @@ export default class Test2Controller { ...@@ -10,7 +10,7 @@ export default class Test2Controller {
*/ */
@checkParams(['activityId', 'type']) @checkParams(['activityId', 'type'])
@services([CommonStatService]) @services([CommonStatService])
async addStat( async test2addStat(
context: IContext<IParams>, context: IContext<IParams>,
{ activityInfo, userInfo }: IControllerInfos, { activityInfo, userInfo }: IControllerInfos,
[commonStatService]: [CommonStatService] [commonStatService]: [CommonStatService]
...@@ -25,7 +25,7 @@ export default class Test2Controller { ...@@ -25,7 +25,7 @@ export default class Test2Controller {
*/ */
@checkParams(['activityId', 'startDay', 'endDay']) @checkParams(['activityId', 'startDay', 'endDay'])
@services([CommonStatService]) @services([CommonStatService])
async getStats( async test2getStats(
context: IContext<IParams>, context: IContext<IParams>,
{ activityInfo, userInfo }: IControllerInfos, { activityInfo, userInfo }: IControllerInfos,
[commonStatService]: [CommonStatService] [commonStatService]: [CommonStatService]
......
/** @format */
import CommonUserController from './controller/common/user.controller' import CommonUserController from './controller/common/user.controller'
const CommonUserControllerInstance = new CommonUserController() const CommonUserControllerInstance = new CommonUserController()
...@@ -19,24 +20,24 @@ import CustomTest2Controller from './controller/custom/test2.controller' ...@@ -19,24 +20,24 @@ import CustomTest2Controller from './controller/custom/test2.controller'
const CustomTest2ControllerInstance = new CustomTest2Controller() const CustomTest2ControllerInstance = new CustomTest2Controller()
export default { export default {
commonUserGetvipinfo: CommonUserControllerInstance.getVipInfo, getVipInfo: CommonUserControllerInstance.getVipInfo,
commonUserGetranklist: CommonUserControllerInstance.getRankList, getRankList: CommonUserControllerInstance.getRankList,
commonTaskGettasklist: CommonTaskControllerInstance.getTaskList, getTaskList: CommonTaskControllerInstance.getTaskList,
commonTaskDocompletetask: CommonTaskControllerInstance.doCompleteTask, doCompleteTask: CommonTaskControllerInstance.doCompleteTask,
commonTaskReceivetaskrewards: CommonTaskControllerInstance.receiveTaskRewards, receiveTaskRewards: CommonTaskControllerInstance.receiveTaskRewards,
commonTaskGetcollectgoodslist: CommonTaskControllerInstance.getCollectGoodsList, getCollectGoodsList: CommonTaskControllerInstance.getCollectGoodsList,
commonLoginLogin: CommonLoginControllerInstance.login, login: CommonLoginControllerInstance.login,
commonBaseGetactivitybaseinfobyid: CommonBaseControllerInstance.getActivityBaseInfoById, getActivityBaseInfoById: CommonBaseControllerInstance.getActivityBaseInfoById,
commonStatAddstat: CommonStatControllerInstance.addStat, addStat: CommonStatControllerInstance.addStat,
commonStatGetstats: CommonStatControllerInstance.getStats, getStats: CommonStatControllerInstance.getStats,
commonAwardsGetmyprizelist: CommonAwardsControllerInstance.getMyPrizeList, getMyPrizeList: CommonAwardsControllerInstance.getMyPrizeList,
commonAwardsReceiveobjectprize: CommonAwardsControllerInstance.receiveObjectPrize, receiveObjectPrize: CommonAwardsControllerInstance.receiveObjectPrize,
commonAwardsReceiveenameprize: CommonAwardsControllerInstance.receiveEnamePrize, receiveEnamePrize: CommonAwardsControllerInstance.receiveEnamePrize,
commonAwardsDrawlotteryprize: CommonAwardsControllerInstance.drawLotteryPrize, drawLotteryPrize: CommonAwardsControllerInstance.drawLotteryPrize,
commonShareGetshareinfo: CommonShareControllerInstance.getShareInfo, getShareInfo: CommonShareControllerInstance.getShareInfo,
commonShareDohelp: CommonShareControllerInstance.doHelp, doHelp: CommonShareControllerInstance.doHelp,
customTest1Addstat: CustomTest1ControllerInstance.addStat, testAddStat: CustomTest1ControllerInstance.testAddStat,
customTest1Getstats: CustomTest1ControllerInstance.getStats, testGetStats: CustomTest1ControllerInstance.testGetStats,
customTest2Addstat: CustomTest2ControllerInstance.addStat, test2addStat: CustomTest2ControllerInstance.test2addStat,
customTest2Getstats: CustomTest2ControllerInstance.getStats test2getStats: CustomTest2ControllerInstance.test2getStats
} }
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