# 批量生成邀请码
# 调用方式: POST
# 接口地址:
https://api.freelog.com/v2/testQualifications/beta/codes/batchCreate
1
# body传入参数说明:
参数 | 必选 | 类型及范围 | 说明 |
---|---|---|---|
createQuantity | 必选 | int | 生成数量,1-50之间 |
limitCount | 必选 | int | 使用次数,0:不限制 |
startEffectiveDate | 可选 | date | 开始生效时间 |
endEffectiveDate | 可选 | date | 结束生效时间 |
remark | 可选 | string | 备注 |
# body示例
{
"createQuantity":2,
"limitCount":10,
"startEffectiveDate":"2020-12-04 00:00:00"
}
1
2
3
4
5
2
3
4
5
# 返回说明:
返回值字段 | 字段类型 | 字段说明 |
---|---|---|
userId | int | 邀请码所属人ID |
username | int | 邀请码所属人用户名 |
usedCount | int | 已使用次数 |
startEffectiveDate | date | 开始生效时间 |
endEffectiveDate | date or null | 结束生效时间 |
code | string | 邀请码 |
remark | string | 备注 |
# 返回示例
{
"ret": 0,
"errCode": 0,
"errcode": 0,
"msg": "success",
"data": [
{
"userId": 0,
"username": "",
"usedCount": 0,
"limitCount": 10,
"startEffectiveDate": "2020-12-03T16:00:00.000Z",
"endEffectiveDate": null,
"status": 0,
"code": "ZGJkMGU4",
"codeType": "beta",
"createDate": "2020-12-04T02:50:46.932Z",
"updateDate": "2020-12-04T02:50:46.932Z"
},
{
"userId": 0,
"username": "",
"usedCount": 0,
"limitCount": 10,
"startEffectiveDate": "2020-12-03T16:00:00.000Z",
"endEffectiveDate": null,
"status": 0,
"code": "YzAzODg4",
"codeType": "beta",
"createDate": "2020-12-04T02:50:46.932Z",
"updateDate": "2020-12-04T02:50:46.932Z"
}
]
}
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
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
← 校验短信或邮件验证码 批量修改邀请码 →