Commit 2d736987 authored by qinhaitao's avatar qinhaitao

feat: 🎸 删除compileServer

parent c0f4daf6
{
"controllers": {
"common": {
"user": {
"getVipInfo": {
"desc": "获取会员信息",
"decorators": [
{
"type": "common",
"name": "checkParams",
"params": [
"activityId"
]
}
],
"main": [
{
"type": "common",
"service": "user",
"function": "getShopVip",
"params": [
{ "type": "var", "value": "context" },
{ "type": "var", "value": "activityInfo" }
],
"return": true
}
]
},
"getRankList": {
"desc": "获取排行榜",
"decorators": [
{
"type": "common",
"name": "checkParams",
"params": [
"activityId",
"key",
"timeKey",
"limit"
]
}
],
"main": [
{
"type": "common",
"service": "user",
"function": "getMyRankInfo",
"params": [
{ "type": "var", "value": "context.data.key" },
{ "type": "var", "value": "context.data.timeKey" },
{ "type": "var", "value": "userInfo" }
],
"return": true
},
{
"type": "common",
"service": "user",
"function": "getRank",
"params": [
{ "type": "var", "value": "context.data.key" },
{ "type": "var", "value": "context.data.timeKey" },
{ "type": "var", "value": "context.data.limit" }
],
"return": true
}
]
}
},
"task": {
"getTaskList": {
"desc": "任务列表",
"decorators": [
{
"type": "common",
"name": "checkParams",
"params": [
"activityId"
]
},
{
"type": "common",
"name": "registeInfos",
"params": [
"vipInfo",
"task"
]
},
{
"type": "common",
"name": "preCheck",
"params": [
{
"type": "common",
"behave": "check",
"name": "checkActivityTime"
}
]
},
{
"type": "common",
"name": "preUpdate",
"params": [
{
"type": "common",
"behave": "update",
"name": "updateVip"
},
{
"type": "common",
"behave": "update",
"name": "updateSignGrowTask"
},
{
"type": "common",
"behave": "update",
"name": "updateGrowOrderGoods"
}
]
}
],
"main": [
{
"type": "common",
"service": "Growtask",
"function": "initTaskList",
"params": [
{ "type": "var", "value": "userInfo" },
{ "type": "var", "value": "activityInfo" },
{ "type": "var", "value": "task" }
],
"return": true
}
]
},
"doCompleteTask": {
"desc": "完成任务",
"decorators": [
{
"type": "common",
"name": "checkParams",
"params": [
"activityId",
"taskType"
]
},
{
"type": "common",
"name": "registeInfos",
"params": [
"session",
"task"
]
},
{
"type": "common",
"name": "preCheck",
"params": [
{
"type": "common",
"behave": "check",
"name": "checkActivityTime"
},
{
"type": "common",
"behave": "check",
"name": "checkGrowTaskLimit"
},
{
"type": "common",
"behave": "check",
"name": "checkExchangeCreditsTask"
}
]
}
],
"main": [
{
"type": "common",
"service": "Growtask",
"function": "completeTask",
"params": [
{ "type": "var", "value": "context.data.taskType" },
{ "type": "var", "value": "activityInfo" },
{ "type": "var", "value": "userInfo" },
{ "type": "var", "value": "task" }
],
"return": true
}
]
},
"receiveTaskRewards": {
"desc": "领取任务奖励",
"decorators": [
{
"type": "common",
"name": "checkParams",
"params": [
"activityId",
"taskType",
"rewardsKey"
]
},
{
"type": "common",
"name": "preCheck",
"params": [
{
"type": "common",
"behave": "check",
"name": "checkActivityTime"
},
{
"type": "common",
"behave": "check",
"name": "checkRemainTimes"
}
]
}
],
"main": [
{
"type": "common",
"service": "Growtask",
"function": "receiveTaskRewards",
"params": [
{ "type": "var", "value": "context.data.taskType" },
{ "type": "var", "value": "context.data.rewardsKey" },
{ "type": "var", "value": "userInfo" }
],
"return": true
}
]
},
"getCollectGoodsList": {
"desc": "获取收藏商品列表",
"decorators": [
{
"type": "common",
"name": "checkParams",
"params": [
"activityId",
"itemIds"
]
},
{
"type": "common",
"name": "registeInfos",
"params": [
"session"
]
}
],
"main": [
{
"type": "common",
"service": "base",
"function": "getItemListByIds",
"params": [
{ "type": "var", "value": "context.data.itemIds" },
{ "type": "var", "value": "session" }
]
},
{
"type": "common",
"service": "Growtask",
"function": "getItemListWithCollectStatus",
"params": [
{ "type": "var", "value": "commonBaseGetItemListByIdsResult1" },
{ "type": "var", "value": "userInfo" }
],
"return": true
}
]
}
},
"login": {
"login":{
"desc":"登录接口, 初始化/更新用户信息",
"decorators":[
{
"type": "common",
"name": "checkParams",
"params": [
"activityId",
"userNick",
"avatar",
"isFollow"
]
},
{
"type": "common",
"name": "noCheckUser","params": [
"activityId"
]
},
{
"type": "common",
"name": "registeInfos",
"params": [
"vipInfo"
]
}
],
"main": [
{
"type": "common",
"service": "user",
"function": "doLogin",
"params": [
{ "type": "var", "value": "userInfo" },
{ "type": "var", "value": "vipInfo" },
{ "type": "var", "value": "activityInfo" }
],
"return": true
},
{
"type": "common",
"service": "access",
"function": "addAccess",
"params": [
{ "type": "var", "value": "commonUserDoLoginResult1" },
{ "type": "var", "value": "vipInfo" }
],
"return": true
}
]
}
},
"base": {
"getActivityBaseInfoById":{
"desc":"活动基本信息",
"decorators":[
{
"type": "common",
"name": "checkParams",
"params": [
"activityId"
]
},
{
"type": "common",
"name": "noCheckUser","params": [
"activityId"
]
}
],
"main": [
{
"type": "common",
"service": "base",
"function": "getBaseInfo",
"params": [
{ "type": "var", "value": "context.data.activityId" }
],
"return": true
}
]
}
},
"stat": {
"addStat": {
"desc": "增加埋点记录",
"decorators": [
{
"type": "common",
"name": "checkParams",
"params": [
"activityId",
"type"
]
}
],
"main": [
{
"type": "common",
"service": "stat",
"function": "addStat",
"params": [
{ "type": "var", "value": "context.data.type" },
{ "type": "var", "value": "userInfo" }
],
"return": true
}
]
},
"getStats": {
"desc": "统计数据",
"decorators": [
{
"type": "common",
"name": "checkParams",
"params": [
"activityId",
"startDay",
"endDay"
]
}
],
"main": [
{
"type": "common",
"service": "stat",
"function": "getStats",
"params": [
{ "type": "var", "value": "context.data.activityId" },
{ "type": "var", "value": "context.data.startDay" },
{ "type": "var", "value": "context.data.endDay" }
]
},
{
"type": "common",
"service": "stat",
"function": "buildExcel",
"params": [
{ "type": "var", "value": "context.data.startDay" },
{ "type": "var", "value": "context.data.endDay" },
{ "type": "var", "value": "commonStatGetStatsResult1" }
],
"return": true
}
]
}
},
"awards": {
"getMyPrizeList": {
"desc": "我的奖品列表",
"decorators": [
{
"type": "common",
"name": "checkParams",
"params": [ "activityId" ]
}
],
"main": [
{
"type": "common",
"service": "awards",
"function": "getMyPrizeList",
"params": [
{ "type": "var", "value": "activityInfo" }
],
"return": true
}
]
},
"receiveObjectPrize": {
"desc": "领取实物",
"decorators": [
{
"type": "common",
"name": "checkParams",
"params": [ "activityId","id", "name", "phone", "province", "city", "area", "addressDetail", "streetName" ]
},
{
"type": "common",
"name": "preCheck",
"params": [
{
"type": "common",
"behave": "check",
"name": "checkPrizeExpired"
},
{
"type": "common",
"behave": "check",
"name": "checkValidObjectPrize"
}
]
}
],
"main": [
{
"type": "common",
"service": "awards",
"function": "recieveObjectPrize",
"params": [
{ "type": "var", "value": "context" }
],
"return": true
}
]
},
"receiveEnamePrize": {
"desc": "领取权益",
"decorators": [
{
"type": "common",
"name": "checkParams",
"params": [ "activityId", "id" ]
},
{
"type": "common",
"name": "registeInfos",
"params": [ "session"]
},
{
"type": "common",
"name": "preCheck",
"params": [
{
"type": "common",
"behave": "check",
"name": "checkPrizeExpired"
},
{
"type": "common",
"behave": "check",
"name": "checkValidEnamePrize"
}
]
}
],
"main": [
{
"type": "common",
"service": "awards",
"function": "recieveEnamePrize",
"params": [
{ "type": "var", "value": "context.data.id" },
{ "type": "var", "value": "awardInfo" },
{ "type": "var", "value": "session" }
],
"return": true
}
]
},
"drawLotteryPrize": {
"desc": "概率抽奖",
"decorators": [
{
"type": "common",
"name": "checkParams",
"params": [ "activityId", "prizeDataType" ]
},
{
"type": "common",
"name": "registeInfos",
"params": [ "session"]
},
{
"type": "common",
"name": "preCheck",
"params": [
{
"type": "common",
"behave": "check",
"name": "checkActivityTime"
}
]
}
],
"main": [
{
"type": "common",
"service": "awards",
"function": "drawLottery",
"params": [
{ "type": "var", "value": "context.data.activityId" },
{ "type": "var", "value": "context.data.prizeDataType" },
{ "type": "var", "value": "userInfo" }
],
"return": true
}
]
}
},
"share": {
"getShareInfo": {
"desc": "获取邀请信息",
"decorators": [
{
"type": "common",
"name": "checkParams",
"params": [ "activityId" ]
}
],
"main": [
{
"type": "common",
"service": "user",
"function": "queryDataByKey",
"params": [
{ "value": "remainTimes.invites" },
{ "type": "var", "value": "userInfo" },
{ "value": "rewards" }
],
"return": true
}
]
},
"doHelp": {
"desc": "完成分享",
"decorators": [
{
"type": "common",
"name": "checkParams",
"params": [
"activityId",
"inviteId"
]
},
{
"type": "common",
"name": "registeInfos",
"params": [
"vipInfo"
]
},
{
"type": "common",
"name": "preCheck",
"params": [
{
"type": "common",
"behave": "check",
"name": "checkActivityTime"
},
{
"type": "common",
"behave": "check",
"name": "checkInviteId"
},
{
"type": "common",
"behave": "check",
"name": "checkNewVip"
},
{
"type": "common",
"behave": "check",
"name": "checkHelpRecord"
}
]
}
],
"main": [
{
"type": "common",
"service": "task",
"function": "completeTask",
"params": [
{ "value": "invites" },
{ "type": "var", "value": "activityInfo" },
{ "type": "var", "value": "inviteUserInfo" }
]
},
{
"type": "common",
"service": "stat",
"function": "addStat",
"params": [
{ "type": "var", "value": "0" },
{ "type": "var", "value": "userInfo" }
],
"return": true
}
]
}
}
},
"custom": {
"test1": {
"testAddStat": {
"desc": "增加埋点记录",
"decorators": [
{
"type": "common",
"name": "checkParams",
"params": [
"activityId",
"type"
]
},
{
"type": "custom",
"name": "test1",
"params": [
"tt"
]
}
],
"main": [
{
"type": "common",
"service": "stat",
"function": "addStat",
"params": [
{ "type": "var", "value": "context.data.type" },
{ "type": "var", "value": "userInfo" }
],
"return": true
},
{
"type": "custom",
"service": "test",
"function": "test1",
"params": [
],
"return": true
}
]
},
"testGetStats": {
"desc": "统计数据",
"decorators": [
{
"type": "common",
"name": "checkParams",
"params": [
"activityId",
"startDay",
"endDay"
]
}
],
"main": [
{
"type": "common",
"service": "stat",
"function": "getStats",
"params": [
{ "type": "var", "value": "context.data.activityId" },
{ "type": "var", "value": "context.data.startDay" },
{ "type": "var", "value": "context.data.endDay" }
]
},
{
"type": "common",
"service": "stat",
"function": "buildExcel",
"params": [
{ "type": "var", "value": "context.data.startDay" },
{ "type": "var", "value": "context.data.endDay" },
{ "type": "var", "value": "commonStatGetStatsResult1" }
],
"return": true
}
]
}
},
"test2": {
"test2addStat": {
"desc": "增加埋点记录",
"decorators": [
{
"type": "common",
"name": "checkParams",
"params": [
"activityId",
"type"
]
}
],
"main": [
{
"type": "common",
"service": "stat",
"function": "addStat",
"params": [
{ "type": "var", "value": "context.data.type" },
{ "type": "var", "value": "userInfo" }
],
"return": true
}
]
},
"test2getStats": {
"desc": "统计数据",
"decorators": [
{
"type": "common",
"name": "checkParams",
"params": [
"activityId",
"startDay",
"endDay"
]
},
{
"type": "common",
"name": "preUpdate",
"params": [
{
"type": "common",
"behave": "update",
"name": "updateVip"
},
{
"type": "common",
"behave": "update",
"name": "updateSignTask"
},
{
"type": "common",
"behave": "update",
"name": "updateOrderGoods"
}
]
}
],
"main": [
{
"type": "common",
"service": "stat",
"function": "getStats",
"params": [
{ "type": "var", "value": "context.data.activityId" },
{ "type": "var", "value": "context.data.startDay" },
{ "type": "var", "value": "context.data.endDay" }
]
},
{
"type": "common",
"service": "stat",
"function": "buildExcel",
"params": [
{ "type": "var", "value": "context.data.startDay" },
{ "type": "var", "value": "context.data.endDay" },
{ "type": "var", "value": "commonStatGetStatsResult1" }
],
"return": true
}
]
}
}
}
}
}
\ No newline at end of file
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