Commit 4277e2f2 authored by qinhaitao's avatar qinhaitao

feat: 🎸 export

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