# 查看邀请码详情

# 调用方式: GET

# 接口地址:

url1: https://api.freelog.com/v2/testQualifications/beta/codes/{code}
url2: https://api.freelog.com/v2/testQualifications/beta/codes/userActivateCode
1
2

# url1传入参数说明:

参数 必选 类型及范围 说明
code 必选 string 邀请码

# url2传入参数说明(自动根据登录用户获取邀请码):

参数 必选 类型及范围 说明
availableTimes 可选 int 重置后的邀请码有效次数;默认5次有效次数
endEffectiveDate 可选 date 充值后的邀请码截止有效期;默认三个月之后到期

# 返回说明:

返回值字段 字段类型 字段说明
userId int 邀请码所属人ID
username int 邀请码所属人用户名
usedCount int 已使用次数
startEffectiveDate date 开始生效时间
endEffectiveDate date or null 结束生效时间
code 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"
	}
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19