# 任务配置
# 列出任务配置(分组)
/v2/activities/task/configs/listSimpleByGroup POST JSON
| 参数名 | 参数类型 | 参数描述 | 必选 |
|---|---|---|---|
返回结构:
{
"ret": 0,
"errCode": 0,
"errcode": 0,
"msg": "success",
"data": [
{
"taskGroupCode": "G00001",
"taskGroupTitle": "基础任务",
"taskConfigs": [
{
"code": "TS000011",
"title": "查看Freelog使用教程"
},
{
"code": "TS000012",
"title": "完善个人信息"
},
{
"code": "TS000013",
"title": "Freelog社区签到"
},
{
"code": "TS000014",
"title": "激活羽币账户"
},
{
"code": "TS000015",
"title": "邀请一位好友"
}
]
},
{
"taskGroupCode": "G00002",
"taskGroupTitle": "资源任务",
"taskConfigs": [
{
"code": "TS000021",
"title": "创建1个资源"
},
{
"code": "TS000022",
"title": "发布资源版本"
},
{
"code": "TS000023",
"title": "添加资源授权策略"
},
{
"code": "TS000024",
"title": "分享资源"
}
]
},
{
"taskGroupCode": "G00003",
"taskGroupTitle": "节点任务",
"taskConfigs": [
{
"code": "TS000031",
"title": "创建1个节点"
},
{
"code": "TS000032",
"title": "添加并上线1个展品"
},
{
"code": "TS000033",
"title": "激活1个主题"
},
{
"code": "TS000034",
"title": "分享我的节点"
},
{
"code": "TS000035",
"title": "浏览推荐节点"
}
]
},
{
"taskGroupCode": "G00004",
"taskGroupTitle": "资源创作大赛任务",
"taskConfigs": [
{
"code": "TS000041",
"title": "发布1个游戏/图片/小说资源"
}
]
},
{
"taskGroupCode": "G00005",
"taskGroupTitle": "邀请注册任务",
"taskConfigs": [
{
"code": "TS000051",
"title": "被邀请注册"
},
{
"code": "TS000052",
"title": "邀请一位好友"
}
]
},
{
"taskGroupCode": "G00006",
"taskGroupTitle": "每日登录任务",
"taskConfigs": [
{
"code": "TS000061",
"title": "每日登录"
}
]
},
{
"taskGroupCode": "G00007",
"taskGroupTitle": "内测体验官任务",
"taskConfigs": [
{
"code": "TS000071",
"title": "上架1个全新的资源(游戏/主题/插件)"
},
{
"code": "TS000072",
"title": "上架1个全新的资源(小说/漫画)"
},
{
"code": "TS000073",
"title": "上架1个全新的资源(图片/音频/视频/其它)"
},
{
"code": "TS000074",
"title": "创建节点并激活主题"
},
{
"code": "TS000075",
"title": "添加并上架一个新展品"
},
{
"code": "TS000076",
"title": "分享一次节点"
},
{
"code": "TS000077",
"title": "分享一次展品"
},
{
"code": "TS000078",
"title": "提交一个反馈"
}
]
},
{
"taskGroupCode": "G00008",
"taskGroupTitle": "新春打卡任务",
"taskConfigs": [
{
"code": "TS000801",
"title": "每日上架1个全新的资源"
},
{
"code": "TS000802",
"title": "每日添加并上线1个展品"
},
{
"code": "TS000803",
"title": "每日分享我的节点"
},
{
"code": "TS000804",
"title": "每日分享一次展品"
},
{
"code": "TS000805",
"title": "每日打卡"
},
{
"code": "TS000806",
"title": "打卡挑战 (参与)"
},
{
"code": "TS000807",
"title": "打卡挑战(瓜分888)"
},
{
"code": "TS000808",
"title": "打卡挑战(瓜分1888)"
},
{
"code": "TS000809",
"title": "打卡挑战(瓜分2888)"
},
{
"code": "TS000810",
"title": "新人打卡"
}
]
},
{
"taskGroupCode": "G00009",
"taskGroupTitle": "新春锦鲤任务",
"taskConfigs": [
{
"code": "TS000901",
"title": "微博/小红书 #freelog创作激励计划# 话题打卡"
}
]
},
{
"taskGroupCode": "G00010",
"taskGroupTitle": "新春邀请任务",
"taskConfigs": [
{
"code": "TS001001",
"title": "邀请一位好友参加新春打卡"
},
{
"code": "TS001002",
"title": "邀请一位好友参加新春打卡(累计3,瓜分600)"
},
{
"code": "TS001003",
"title": "邀请一位好友参加新春打卡(累计5,瓜分600)"
}
]
}
]
}
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
结构参数:
| 参数名 | 参数类型 | 参数描述 |
|---|---|---|
| taskGroupCode | string | 任务组编号 |
| taskGroupTitle | string | 任务组标题 |
| taskConfigs | {"code":string, "title":string}[] | 任务配置数组 |
# 任务记录
# 完成任务记录
/v2/activities/task/records/complete4TaskConfigCode POST JSON
当指定条件的任务记录已存在时,则完成最高level的任务记录,若是该任务记录已完成,则抛出异常;不存在则先创建一个任务记录再完成,返回该任务记录
| 参数名 | 参数类型 | 参数描述 | 必选 |
|---|---|---|---|
| taskConfigCode | string | 任务配置编号 | 是 |
| userId | string | 用户id | 是 |
返回结构:
{
"ret": 0,
"errCode": 0,
"errcode": 0,
"msg": "success",
"data": {
"id": "9",
"taskGroupId": "1",
"taskGroupCode": "G0001",
"taskConfigId": "3",
"taskConfigCode": "T0005",
"status": 2,
"userId": "50051",
"growthValue": 1,
"growthValueLevel": 2,
"growthValueMax": 1,
"createTime": "2022-07-06T09:41:36.000Z",
"updateTime": "2022-07-06T09:41:36.000Z"
}
}
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
结构参数:
| 参数名 | 参数类型 | 参数描述 |
|---|---|---|
| id | string | 任务记录id |
| taskGroupId | string | 任务组id |
| taskGroupCode | string | 任务组编号 |
| taskConfigId | string | 任务配置id |
| taskConfigCode | string | 任务配置编号 |
| status | number | 任务记录状态 1:未完成 2:已完成 |
| userId | string | 用户id |
| growthValue | number | 成长值 |
| gowthValueLevel | number | 成长等级 |
| growthValueMax | number | 成长值最大值 |
| createTime | DateTime | 创建时间 |
| updateTime | DateTime | 更新时间 |
# 奖励组
# 创建奖励组
/v2/activities/reward/groups/create POST JSON
| 参数名 | 参数类型 | 参数描述 | 必选 |
|---|---|---|---|
| code | string | 编号 | 是 |
| title | string | 标题 | 是 |
# 列出奖励组
/v2/activities/reward/groups/listAll POST JSON
| 参数名 | 参数类型 | 参数描述 | 必选 |
|---|---|---|---|
返回结构:
{
"ret": 0,
"errCode": 0,
"errcode": 0,
"msg": "success",
"data": [
{
"id": "1",
"code": "RG00001",
"title": "新手任务奖励",
"description": "",
"createTime": "2022-07-11T08:34:03.000Z",
"updateTime": "2022-07-11T08:34:03.000Z",
"completionTimes": 0
},
{
"id": "2",
"code": "RG00002",
"title": "用户调研奖励",
"description": "",
"createTime": "2022-07-11T08:34:03.000Z",
"updateTime": "2022-07-11T08:34:03.000Z",
"completionTimes": 0
},
{
"id": "3",
"code": "RG00003",
"title": "邀请注册奖励",
"description": "",
"createTime": "2022-07-11T08:34:04.000Z",
"updateTime": "2022-07-11T08:34:04.000Z",
"completionTimes": 0
},
{
"id": "4",
"code": "RG00004",
"title": "新手任务奖励2",
"description": "",
"createTime": "2022-07-11T08:34:04.000Z",
"updateTime": "2022-07-11T08:34:04.000Z",
"completionTimes": 0
},
{
"id": "5",
"code": "RG00005",
"title": "资源创作大赛-漫画赛道奖励",
"description": "",
"createTime": "2022-07-11T08:34:04.000Z",
"updateTime": "2022-07-11T08:34:04.000Z",
"completionTimes": 0
},
{
"id": "6",
"code": "RG00006",
"title": "资源创作大赛-小说赛道奖励",
"description": "",
"createTime": "2022-07-11T08:34:04.000Z",
"updateTime": "2022-07-11T08:34:04.000Z",
"completionTimes": 0
},
{
"id": "7",
"code": "RG00007",
"title": "资源创作大赛-参与奖励",
"description": "",
"createTime": "2022-07-11T08:34:04.000Z",
"updateTime": "2022-07-11T08:34:04.000Z",
"completionTimes": 0
},
{
"id": "8",
"code": "RG00008",
"title": "内测体验官积分奖励",
"description": "",
"createTime": "2023-07-25T09:42:57.000Z",
"updateTime": "2023-07-25T09:42:57.000Z",
"completionTimes": 0
},
{
"id": "9",
"code": "RG00009",
"title": "新春打卡奖励",
"description": "",
"createTime": "2024-01-17T09:30:25.000Z",
"updateTime": "2024-01-17T09:30:25.000Z",
"completionTimes": 0
},
{
"id": "10",
"code": "RG00010",
"title": "新春锦鲤奖励",
"description": "",
"createTime": "2024-01-17T09:30:25.000Z",
"updateTime": "2024-01-17T09:30:25.000Z",
"completionTimes": 0
},
{
"id": "11",
"code": "RG00011",
"title": "新春邀请奖励",
"description": "",
"createTime": "2024-01-17T09:30:25.000Z",
"updateTime": "2024-01-17T09:30:25.000Z",
"completionTimes": 0
},
{
"id": "12",
"code": "RG99999",
"title": "龙珠GT",
"description": null,
"createTime": "2025-10-20T08:34:59.000Z",
"updateTime": "2025-10-20T08:34:59.000Z",
"completionTimes": 0
},
{
"id": "13",
"code": "RG999001",
"title": "cumis_test_group_001",
"description": null,
"createTime": "2025-11-19T06:52:30.000Z",
"updateTime": "2025-11-19T06:52:30.000Z",
"completionTimes": 0
},
{
"id": "14",
"code": "RG999002",
"title": "cumins_test_group_002",
"description": null,
"createTime": "2025-11-19T06:54:51.000Z",
"updateTime": "2025-11-19T06:54:51.000Z",
"completionTimes": 0
}
]
}
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
结构参数:
| 参数名 | 参数类型 | 参数描述 |
|---|---|---|
| code | string | 编号 |
| title | string | 标题 |
# 奖励配置
# 列出奖励配置
/v2/activities/reward/configs/list POST JSON
| 参数名 | 参数类型 | 参数描述 | 必选 |
|---|---|---|---|
| title | string | 标题 | 否 |
| tag | number | 状态 1:未生效 2:进行中 3:已过期 4:已暂停 | 否 |
| rewardType | number | 类型 1:羽币 2:人民币 3:邀请次数 4:积分 5:瓜分资格 | 否 |
| recordGenerateType | number | 生成方式 1:自动生成 2:手动录入 | 否 |
| skipSize | number | 是 | |
| pageSize | number | 是 |
返回结构:
{
"ret": 0,
"errCode": 0,
"errcode": 0,
"msg": "success",
"data": {
"num": 47,
"rewardConfigs": [
{
"code": "RS999540",
"title": "cumins_test_0032",
"description": "1212",
"note": "",
"rewardGroupCode": "RG00001",
"activityId": null,
"completionTimes": 0,
"rewardType": 1,
"rewardNum": 12,
"recordGenerateType": 1,
"recordGenerateConfig": null,
"needVerify": 2,
"pullType": 1,
"startTime": "2025-11-27T16:00:00.000Z",
"limitTime": "2025-11-28T16:00:00.000Z",
"status": 1,
"rewardTypeName": "羽币",
"tag": 2
},
{
"code": "RS999002",
"title": "奖励名称",
"description": "奖励说明",
"note": "备注-01",
"rewardGroupCode": "RG00001",
"activityId": null,
"completionTimes": 1,
"rewardType": 1,
"rewardNum": 102,
"recordGenerateType": 1,
"recordGenerateConfig": null,
"needVerify": 2,
"pullType": 1,
"startTime": "2025-12-22T16:00:00.000Z",
"limitTime": "2025-12-26T16:00:00.000Z",
"status": 1,
"rewardTypeName": "羽币",
"tag": 1
},
{
"code": "RS999004",
"title": "cumins_test_0033",
"description": "222",
"note": "",
"rewardGroupCode": "RG00001",
"completionTimes": 0,
"rewardType": 1,
"rewardNum": 1,
"recordGenerateType": 1,
"recordGenerateConfig": null,
"needVerify": 2,
"pullType": 1,
"startTime": "2025-11-30T16:00:00.000Z",
"limitTime": "2025-12-30T16:00:00.000Z",
"status": 1,
"rewardTypeName": "羽币",
"tag": 1
}
]
}
}
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# 返回参数
| 参数名 | 参数类型 | 参数描述 |
|---|---|---|
| rewardGroupCode | string | 奖励组编号 |
| code | string | 编号 |
| title | string | 名称 |
| activityId | string | 关联活动ID |
| completionTimes | number | 可完成次数,0表示可无限完成 |
| note | string | 备注 |
| rewardType | number | 奖励类型 1:羽币 2:人民币 3:邀请次数 4:积分 5:瓜分资格 |
| rewardTypeName | string | 奖励类型名称 |
| rewardNum | number | 奖励数值 |
| description | string | 描述,奖励说明 |
| needVerify | number | 是否需要审核 1:否 2:是 |
| pullType | number | 奖励领取方式 1:自动发放 2:手动领取 |
| recordGenerateType | number | 奖励记录生成方式 1:自动生成 2:手动录入 |
| startTime | Date | 开始时间 |
| limitTime | Date | 结束时间 |
| status | number | 1:正常 2:暂停 |
| tag | number | 1:未生效 2:进行中 3:已过期 4:已暂停 |
# 查询奖励配置
/v2/activities/reward/configs/find GET QUERY
| 参数名 | 参数类型 | 参数描述 | 必选 |
|---|---|---|---|
| code | string | 编号 | 是 |
返回结构:
{
"ret": 0,
"errCode": 0,
"errcode": 0,
"msg": "success",
"data": {
"recordGenerateType": 2,
"_id": "69081bd79fe8e7139c7991e3",
"code": "RS000910",
"title": "布尔玛",
"description": "二次元创作鼓励季-第二季",
"note": "龙珠手办大派送",
"rewardGroupCode": "RG99999",
"activityId": "68945cfd1bb358002f9eb8d1",
"completionTimes": 0,
"rewardType": 2,
"rewardNum": 1,
"recordGenerateConfig": {
"generateTime": "2025-11-04 10:07:00",
"hitUserList": [
{
"username": "zhaojn",
"userId": 50157
}
],
"startTime": "2025-10-01 00:00:00",
"limitTime": "2025-12-31 23:59:59",
"triggerRules": [
{
"ruleType": "and",
"taskRules": [
{
"taskConfigCode": "TS000061",
"matchNumType": 2,
"matchNumMin": 3
},
{
"taskConfigCode": "TS000012",
"matchNumType": 1,
"matchNumMin": 1
}
]
},
{
"ruleType": "or",
"taskRules": [
{
"taskConfigCode": "TS000013",
"matchNumType": 1,
"matchNumMin": 1
},
{
"taskConfigCode": "TS000014",
"matchNumType": 1,
"matchNumMin": 1
}
]
}
],
"achievableRule": {
"matchNumMax": 50,
"cycleTimeUnit": "day",
"cycleTimeElapsed": 1,
"matchNumMaxPerCycle": 10
},
"excludeRewardConfigCodes": [],
"needVerify": 1,
"rewardConfigCode": "RS000910",
"checkCode": "63fe5d498f7f4ed4ada6bfe9c1002560"
},
"needVerify": 1,
"pullType": 1,
"startTime": "2025-11-04T01:37:00.000Z",
"limitTime": "2025-12-04T02:07:00.000Z",
"status": 1,
"createTime": "2025-11-04T02:06:59.272Z",
"updateTime": "2025-11-04T02:06:59.272Z",
"__v": 0
}
}
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
# 奖励统计信息
/v2/activities/reward/configs/statisticInfo POST JSON
| 参数名 | 参数类型 | 参数描述 | 必选 |
|---|---|---|---|
| code | string | 奖励配置编号 | 是 |
返回结构:
{
"ret": 0,
"errCode": 0,
"errcode": 0,
"msg": "success",
"data": {
"sumRewardNumY": "12",
"countRewardRecordY": "4",
"countUserIdY": "4",
"sumRewardNum": "24",
"countRewardRecord": "8",
"countUserId": "8"
}
}
2
3
4
5
6
7
8
9
10
11
12
13
14
结构参数:
| 参数名 | 参数类型 | 参数描述 |
|---|---|---|
| sumRewardNumY | number | 累计发放额度(昨天) |
| countRewardRecordY | number | 累计发放次数(昨天) |
| countUserIdY | number | 累计发放用户数(昨天) |
| sumRewardNum | number | 累计发放额度 |
| countRewardRecord | number | 累计发放次数 |
| countUserId | number | 累计发放用户数 |
# 暂停或者恢复奖励
/v2/activities/reward/configs/pauseOrRecover GET QUERY
| 参数名 | 参数类型 | 参数描述 | 必选 |
|---|---|---|---|
| code | string | 奖励配置编号 | 是 |
# 修改奖励配置
/v2/activities/reward/configs/update POST JSON
# 参数结构
| 参数名 | 参数类型 | 参数描述 | 必选 |
|---|---|---|---|
| code | string | 编号 | 是 |
| title | string | 名称 | 是 |
| activityId | string | 关联活动ID | 否 |
| note | string | 备注 | 否 |
| rewardType | number | 奖励类型 1:羽币 2:人民币 3:邀请次数 4:积分 5:瓜分资格 | 是 |
| rewardNum | number | 奖励数值 | 是 |
| description | string | 描述,奖励说明 | 是 |
| pullType | number | 奖励领取方式 1:自动发放 2:手动领取 | 是 |
| recordGenerateType | number | 奖励记录生成方式 1:自动生成 2:手动录入 | 是 |
| recordGenerateConfig | RewardRecordGenerateConfig | 奖励记录生成配置 | 是 |
export class RewardRecordGenerateConfig {
rewardConfigCode?: string;
/* recordGenerateType = 2 */
// 发放时间
generateTime?: Date;
// 校验码
checkCode?: string;
// 发放名单
hitUserList?: { username: string, userId: number }[];
/* recordGenerateType = 1 */
// 有效期
startTime?: Date;
limitTime?: Date;
// 发放条件
triggerRules?: {
ruleType: "and" | "or",
taskRules: {
taskConfigCode: string,
// 1:累计 2:连续
matchNumType: number,
// 最小的匹配数值
matchNumMin: number
}[]
}[];
// 发放前置判定
achievableRule?: {
// 最大的匹配数值
matchNumMax: number,
cycleTimeUnit: "day" | "week" | "month",
cycleTimeElapsed: number,
// 每个周期限制次数
matchNumMaxPerCycle: number
};
// 不包含的奖励
excludeRewardConfigCodes?: string[];
// 是否需要审核 1:否 2:是
needVerify?: number;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# 参数示例
{
"code": "RS000910",
"title": "布尔玛",
"activityId": "68945cfd1bb358002f9eb8d1",
"note": "龙珠手办大派送",
"rewardType": 2,
"rewardNum": 1,
"description": "二次元创作鼓励季-第二季",
"pullType": 1,
"recordGenerateType": 2,
"recordGenerateConfig": {
"generateTime": "2025-11-04 10:07:00",
"hitUserList": [
{
"username": "zhaojn",
"userId": 50157
}
],
"startTime": "2025-10-01 00:00:00",
"limitTime": "2025-12-31 23:59:59",
"triggerRules": [
{
"ruleType": "and",
"taskRules": [
{
"taskConfigCode": "TS000061",
"matchNumType": 2,
"matchNumMin": 3
},
{
"taskConfigCode": "TS000012",
"matchNumType": 1,
"matchNumMin": 1
}
]
},
{
"ruleType": "or",
"taskRules": [
{
"taskConfigCode": "TS000013",
"matchNumType": 1,
"matchNumMin": 1
},
{
"taskConfigCode": "TS000014",
"matchNumType": 1,
"matchNumMin": 1
}
]
}
],
"achievableRule": {
"matchNumMax": 50,
"cycleTimeUnit": "day",
"cycleTimeElapsed": 1,
"matchNumMaxPerCycle": 10
},
"excludeRewardConfigCodes": [
"RS000909"
],
"needVerify": 1
}
}
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# 创建奖励配置
/v2/activities/reward/configs/create POST JSON
# 参数结构
| 参数名 | 参数类型 | 参数描述 | 必选 |
|---|---|---|---|
| rewardGroupCode | string | 奖励组编号 | 是 |
| code | string | 编号 | 是 |
| title | string | 名称 | 是 |
| activityId | string | 关联活动ID | 否 |
| note | string | 备注 | 否 |
| rewardType | number | 奖励类型 1:羽币 2:人民币 3:邀请次数 4:积分 5:瓜分资格 | 是 |
| rewardNum | number | 奖励数值 | 是 |
| description | string | 描述,奖励说明 | 是 |
| pullType | number | 奖励领取方式 1:自动发放 2:手动领取 | 是 |
| recordGenerateType | number | 奖励记录生成方式 1:自动生成 2:手动录入 | 是 |
| recordGenerateConfig | RewardRecordGenerateConfig | 奖励记录生成配置 | 是 |
export class RewardRecordGenerateConfig {
rewardConfigCode?: string;
/* recordGenerateType = 2 */
// 发放时间
generateTime?: Date;
// 校验码
checkCode?: string;
// 发放名单
hitUserList?: { username: string, userId: number }[];
/* recordGenerateType = 1 */
// 有效期
startTime?: Date;
limitTime?: Date;
// 发放条件
triggerRules?: {
ruleType: "and" | "or",
taskRules: {
taskConfigCode: string,
// 1:累计 2:连续
matchNumType: number,
// 最小的匹配数值
matchNumMin: number
}[]
}[];
// 发放前置判定
achievableRule?: {
// 最大的匹配数值
matchNumMax: number,
cycleTimeUnit: "day" | "week" | "month",
cycleTimeElapsed: number,
// 每个周期限制次数
matchNumMaxPerCycle: number
};
// 不包含的奖励
excludeRewardConfigCodes?: string[];
// 是否需要审核 1:否 2:是
needVerify?: number;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# 参数示例
{
"rewardGroupCode": "RG99999",
"code": "RS000910",
"title": "布尔玛",
"activityId": "68945cfd1bb358002f9eb8d1",
"note": "龙珠手办大派送",
"rewardType": 2,
"rewardNum": 1,
"description": "二次元创作鼓励季-第二季",
"pullType": 1,
"recordGenerateType": 2,
"recordGenerateConfig": {
"generateTime": "2025-11-04 10:07:00",
"hitUserList": [
{
"username": "zhaojn",
"userId": 50157
}
],
"startTime": "2025-10-01 00:00:00",
"limitTime": "2025-12-31 23:59:59",
"triggerRules": [
{
"ruleType": "and",
"taskRules": [
{
"taskConfigCode": "TS000061",
"matchNumType": 2,
"matchNumMin": 3
},
{
"taskConfigCode": "TS000012",
"matchNumType": 1,
"matchNumMin": 1
}
]
},
{
"ruleType": "or",
"taskRules": [
{
"taskConfigCode": "TS000013",
"matchNumType": 1,
"matchNumMin": 1
},
{
"taskConfigCode": "TS000014",
"matchNumType": 1,
"matchNumMin": 1
}
]
}
],
"achievableRule": {
"matchNumMax": 50,
"cycleTimeUnit": "day",
"cycleTimeElapsed": 1,
"matchNumMaxPerCycle": 10
},
"excludeRewardConfigCodes": [
"RS000909"
],
"needVerify": 1
}
}
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# 查询中奖名单
/v2/activities/reward/configs/getHitUserList POST JSON
# 参数结构
| 参数名 | 参数类型 | 参数描述 | 必选 |
|---|---|---|---|
| code | string | 编号 | 是 |
| keywords | string | 关键字 | 否 |
# 返回结构
{
"ret": 0,
"errCode": 0,
"errcode": 0,
"msg": "success",
"data": [
{
"username": "yanghongtian",
"userId": 50020,
"email": "",
"mobile": "13145959706"
},
{
"username": "zynodeconsumer",
"userId": 50157,
"email": "zynodeconsumer@mailinator.com",
"mobile": ""
}
]
}
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# 修改中奖名单
/v2/activities/reward/configs/updateHitUserList POST JSON
# 参数结构
| 参数名 | 参数类型 | 参数描述 | 必选 |
|---|---|---|---|
| code | string | 编号 | 是 |
| hitUserList | {"username":string, "userId":number} | 中奖名单 | 是 |
# 参数示例
{
"code": "RS000910",
"hitUserList": [
{
"username": "zhaojn",
"userId": 50157
},
{
"username": "yanghongtian",
"userId": 50020
}
]
}
2
3
4
5
6
7
8
9
10
11
12
13
# 奖励记录
# 批量审核奖励
/v2/activities/reward/records/verifyBatch POST JSON
| 参数名 | 参数类型 | 参数描述 | 必选 |
|---|---|---|---|
| isPass | boolean | 是否通过 true:通过 false:不通过 | 是 |
| ids | string[] | 奖励id数组 | 是 |
# 列出奖励详情
/v2/activities/reward/records/listDetails POST JSON
| 参数名 | 参数类型 | 参数描述 | 必选 |
|---|---|---|---|
| rewardConfigCode | string | 奖励配置编号 | 是 |
| tag | number | 1:待审核 2:已拒绝 3:待领取 4:已发放 5:已扣除 | 否 |
| username | string | 用户名 | 否 |
| skipSize | 是 | ||
| pageSize | 是 |
返回结构:
{
"ret": 0,
"errCode": 0,
"errcode": 0,
"msg": "success",
"data": {
"num": 11,
"rewardRecords": [
{
"id": "593",
"rewardConfigTitle": "创建一个节点并激活一个主题",
"rewardConfigDescription": "节点运营奖励 (创建新节点)",
"userId": "50155",
"username": "zyconsumer",
"completedTime": "2023-10-25T08:52:56.000Z",
"rewardNum": 2,
"tag": 4,
"extraInfo": {
"resources": [],
"presentableInfos": [
{
"presentableId": "6538d76783dd29002f319faa",
"presentableName": "gallery-theme"
}
],
"nodes": [
{
"nodeId": 80000216,
"nodeName": "jiedianship",
"nodeDomain": "jiedianship"
}
],
"linkUrl": null
},
"extraInfoType": [
"presentableInfos",
"nodes"
],
"extra": {
"nodeId": 80000216,
"nodeDomain": "jiedianship",
"presentableId": "6538d76783dd29002f319faa"
}
},
{
"id": "539",
"rewardConfigTitle": "创建一个节点并激活一个主题",
"rewardConfigDescription": "节点运营奖励 (创建新节点)",
"userId": "50167",
"username": "suibn",
"completedTime": "2023-09-25T02:36:25.000Z",
"rewardNum": 2,
"tag": 4,
"extraInfo": {
"resources": [],
"presentableInfos": [
{
"presentableId": "6510f22883dd29002f315839",
"presentableName": "novel-theme"
}
],
"nodes": [
{
"nodeId": 80000215,
"nodeName": "zhanpin",
"nodeDomain": "node-zhanpin"
}
],
"linkUrl": null
},
"extraInfoType": [
"presentableInfos",
"nodes"
],
"extra": {
"nodeId": 80000215,
"nodeDomain": "node-zhanpin",
"presentableId": "6510f22883dd29002f315839"
}
},
{
"id": "519",
"rewardConfigTitle": "创建一个节点并激活一个主题",
"rewardConfigDescription": "节点运营奖励 (创建新节点)",
"userId": "50161",
"username": "new-code",
"completedTime": "2023-09-22T03:09:13.000Z",
"rewardNum": 2,
"tag": 4,
"extraInfo": {
"resources": [],
"presentableInfos": [
{
"presentableId": "650d055883dd29002f315401",
"presentableName": "blog-theme"
}
],
"nodes": [
{
"nodeId": 80000214,
"nodeName": "sdfxcxzccxv",
"nodeDomain": "dfgdq"
}
],
"linkUrl": null
},
"extraInfoType": [
"presentableInfos",
"nodes"
],
"extra": {
"nodeId": 80000214,
"nodeDomain": "dfgdq",
"presentableId": "650d055883dd29002f315401"
}
},
{
"id": "518",
"rewardConfigTitle": "创建一个节点并激活一个主题",
"rewardConfigDescription": "节点运营奖励 (创建新节点)",
"userId": "50161",
"username": "new-code",
"completedTime": "2023-09-22T03:08:48.000Z",
"rewardNum": 2,
"tag": 4,
"extraInfo": {
"resources": [],
"presentableInfos": [
{
"presentableId": "650d053f83dd29002f3153dd",
"presentableName": "document-theme"
}
],
"nodes": [
{
"nodeId": 80000213,
"nodeName": "zxczxc",
"nodeDomain": "ghjj"
}
],
"linkUrl": null
},
"extraInfoType": [
"presentableInfos",
"nodes"
],
"extra": {
"nodeId": 80000213,
"nodeDomain": "ghjj",
"presentableId": "650d053f83dd29002f3153dd"
}
},
{
"id": "517",
"rewardConfigTitle": "创建一个节点并激活一个主题",
"rewardConfigDescription": "节点运营奖励 (创建新节点)",
"userId": "50161",
"username": "new-code",
"completedTime": "2023-09-22T03:07:45.000Z",
"rewardNum": 2,
"tag": 4,
"extraInfo": {
"resources": [],
"presentableInfos": [
{
"presentableId": "650d050083dd29002f315399",
"presentableName": "novel-theme"
}
],
"nodes": [
{
"nodeId": 80000212,
"nodeName": "asdasdasd",
"nodeDomain": "sdadas"
}
],
"linkUrl": null
},
"extraInfoType": [
"presentableInfos",
"nodes"
],
"extra": {
"nodeId": 80000212,
"nodeDomain": "sdadas",
"presentableId": "650d050083dd29002f315399"
}
},
{
"id": "487",
"rewardConfigTitle": "创建一个节点并激活一个主题",
"rewardConfigDescription": "节点运营奖励 (创建新节点)",
"userId": "50163",
"username": "codecode",
"completedTime": "2023-09-21T08:13:01.000Z",
"rewardNum": 2,
"tag": 4,
"extraInfo": {
"resources": [],
"presentableInfos": [
{
"presentableId": "650bfb0c83dd29002f314eaa",
"presentableName": "comic-theme"
}
],
"nodes": [
{
"nodeId": 80000211,
"nodeName": "法大师傅大师傅",
"nodeDomain": "asdasdasd"
}
],
"linkUrl": null
},
"extraInfoType": [
"presentableInfos",
"nodes"
],
"extra": {
"nodeId": 80000211,
"nodeDomain": "asdasdasd",
"presentableId": "650bfb0c83dd29002f314eaa"
}
},
{
"id": "422",
"rewardConfigTitle": "创建一个节点并激活一个主题",
"rewardConfigDescription": "节点运营奖励 (创建新节点)",
"userId": "50160",
"username": "code",
"completedTime": "2023-09-19T03:22:26.000Z",
"rewardNum": 2,
"tag": 4,
"extraInfo": {
"resources": [],
"presentableInfos": [
{
"presentableId": "650913f183dd29002f3140c7",
"presentableName": "gallery-theme"
}
],
"nodes": [
{
"nodeId": 80000210,
"nodeName": "caicai",
"nodeDomain": "caicai"
}
],
"linkUrl": null
},
"extraInfoType": [
"presentableInfos",
"nodes"
],
"extra": {
"nodeId": 80000210,
"nodeDomain": "caicai",
"presentableId": "650913f183dd29002f3140c7"
}
},
{
"id": "420",
"rewardConfigTitle": "创建一个节点并激活一个主题",
"rewardConfigDescription": "节点运营奖励 (创建新节点)",
"userId": "50160",
"username": "code",
"completedTime": "2023-09-19T03:19:05.000Z",
"rewardNum": 2,
"tag": 4,
"extraInfo": {
"resources": [],
"presentableInfos": [
{
"presentableId": "6509132883dd29002f314093",
"presentableName": "comic-theme"
}
],
"nodes": [
{
"nodeId": 80000209,
"nodeName": "kunKUN",
"nodeDomain": "kunkun"
}
],
"linkUrl": null
},
"extraInfoType": [
"presentableInfos",
"nodes"
],
"extra": {
"nodeId": 80000209,
"nodeDomain": "kunkun",
"presentableId": "6509132883dd29002f314093"
}
},
{
"id": "417",
"rewardConfigTitle": "创建一个节点并激活一个主题",
"rewardConfigDescription": "节点运营奖励 (创建新节点)",
"userId": "50160",
"username": "code",
"completedTime": "2023-09-19T03:08:33.000Z",
"rewardNum": 2,
"tag": 4,
"extraInfo": {
"resources": [],
"presentableInfos": [
{
"presentableId": "650910b083dd29002f31402d",
"presentableName": "novel-theme"
}
],
"nodes": [
{
"nodeId": 80000208,
"nodeName": "jigeJIGE",
"nodeDomain": "jige"
}
],
"linkUrl": null
},
"extraInfoType": [
"presentableInfos",
"nodes"
],
"extra": {
"nodeId": 80000208,
"nodeDomain": "jige",
"presentableId": "650910b083dd29002f31402d"
}
},
{
"id": "335",
"rewardConfigTitle": "创建一个节点并激活一个主题",
"rewardConfigDescription": "节点运营奖励 (创建新节点)",
"userId": "50157",
"username": "zynodeconsumer",
"completedTime": "2023-08-16T09:45:06.000Z",
"rewardNum": 2,
"tag": 4,
"extraInfo": {
"resources": [],
"presentableInfos": [
{
"presentableId": "64dc8791cc4a64002f63a3c1",
"presentableName": "document-theme"
}
],
"nodes": [
{
"nodeId": "80000206",
"nodeName": "新节点",
"nodeDomain": "new-test"
}
],
"linkUrl": null
},
"extraInfoType": [
"presentableInfos",
"nodes"
],
"extra": {
"nodeId": "80000206",
"nodeDomain": "new-test",
"presentableId": "64dc8791cc4a64002f63a3c1"
}
},
{
"id": "334",
"rewardConfigTitle": "创建一个节点并激活一个主题",
"rewardConfigDescription": "节点运营奖励 (创建新节点)",
"userId": "50157",
"username": "zynodeconsumer",
"completedTime": "2023-08-16T09:43:29.000Z",
"rewardNum": 2,
"tag": 4,
"extraInfo": {
"resources": [],
"presentableInfos": [
{
"presentableId": "64dc8791cc4a64002f63a3c1",
"presentableName": "document-theme"
}
],
"nodes": [
{
"nodeId": "80000206",
"nodeName": "新节点",
"nodeDomain": "new-test"
}
],
"linkUrl": null
},
"extraInfoType": [
"presentableInfos",
"nodes"
],
"extra": {
"nodeId": "80000206",
"nodeDomain": "new-test",
"presentableId": "64dc8791cc4a64002f63a3c1"
}
}
]
}
}
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
结构参数:
| 参数名 | 参数类型 | 参数描述 |
|---|---|---|
| id | string | 记录编号 |
| rewardConfigTitle | string | 关联信息 |
| rewardConfigDescription | string | 关联简介 |
| userId | string | |
| username | string | 用户 |
| completedTime | date | 生成日期 |
| rewardNum | number | 发放额度 |
| tag | number | 1:待审核 2:已拒绝 3:待领取 4:已发放 |
| extra | 额外信息 | |
| extraInfo | {resources:[],presentableInfos:[],nodes:[],linkUrl:string} | 额外信息对象 |
| extraInfoType | string[] | 额外信息类型 resources | presentableInfos | nodes | linkUrl |
# 扣除奖励
/v2/activities/reward/records/deduct POST JSON
| 参数名 | 参数类型 | 参数描述 | 必选 |
|---|---|---|---|
| id | string | 奖励记录id | 是 |
| reason | string | 扣除原因 | 是 |
# 批量扣除奖励
/v2/activities/reward/records/deductBatch POST JSON
| 参数名 | 参数类型 | 参数描述 | 必选 |
|---|---|---|---|
| ids | string[] | 奖励记录id数组 | 是 |
| reason | string | 扣除原因 | 是 |
# 取消扣除奖励
/v2/activities/reward/records/cancelDeduct POST JSON
| 参数名 | 参数类型 | 参数描述 | 必选 |
|---|---|---|---|
| id | string | 奖励记录id | 是 |
| reason | string | 扣除原因 | 否 |
# 批量取消扣除奖励
/v2/activities/reward/records/cancelDeductBatch POST JSON
| 参数名 | 参数类型 | 参数描述 | 必选 |
|---|---|---|---|
| ids | string[] | 奖励记录id数组 | 是 |
| reason | string | 扣除原因 | 否 |