|
|
新潮教室签到
|
|
|
------------
|
|
|
|
|
|
## 1. 获取当前用户亲密度,排名
|
|
|
|
|
|
`method=app.starClass.rankInfo`
|
|
|
|
|
|
#### 入参
|
|
|
|
|
|
| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 |
|
|
|
|:---------|---------:|----------:|-----:|-------:|-----:|
|
|
|
| uid | int | 否 | 213 | 0 |用户id|
|
|
|
|
|
|
#### 出参
|
|
|
|
|
|
```json
|
|
|
{
|
|
|
"alg": "SALT_MD5",
|
|
|
"code": 200,
|
|
|
"data": {
|
|
|
"userNum": 10,
|
|
|
"userRank": 2
|
|
|
},
|
|
|
"md5": "fcf7791bac08abb80ef3a2b27964386c",
|
|
|
"message": "获取用户亲密度成功"
|
|
|
}
|
|
|
```
|
|
|
|
|
|
## 2.签到
|
|
|
|
|
|
`method=app.starClass.sign`
|
|
|
|
|
|
#### 入参
|
|
|
|
|
|
| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 |
|
|
|
|:---------|---------:|----------:|-----:|-------:|-----:|
|
|
|
| uid | int | 否 | 213 | 0 |用户id|
|
|
|
|
|
|
#### 出参
|
|
|
|
|
|
```json
|
|
|
{
|
|
|
"alg": "SALT_MD5",
|
|
|
"code": 200,
|
|
|
"data": {
|
|
|
"addNum": 10,
|
|
|
"logs": [
|
|
|
{
|
|
|
"addNum": 10,
|
|
|
"createTime": 1460112775,
|
|
|
"id": 211,
|
|
|
"starId": 1,
|
|
|
"type": 1,
|
|
|
"uid": 3703860
|
|
|
}
|
|
|
],
|
|
|
"rankList": [
|
|
|
{
|
|
|
"num": 10,
|
|
|
"uid": 3566199,
|
|
|
"username": "136****8114@yohoinc.com"
|
|
|
},
|
|
|
{
|
|
|
"avatar": "http://static.yoho.cn/images/default_userhead_boy_180_180.png?imageView/{mode}/w/{width}/h/{height}",
|
|
|
"num": 10,
|
|
|
"uid": 3566423,
|
|
|
"username": "黄德才"
|
|
|
},
|
|
|
{
|
|
|
"avatar": "http://static.yoho.cn/images/default_userhead_boy_180_180.png?imageView/{mode}/w/{width}/h/{height}",
|
|
|
"num": 10,
|
|
|
"uid": 3703860,
|
|
|
"username": "曹苒"
|
|
|
}
|
|
|
]
|
|
|
},
|
|
|
"md5": "450edbd92076dfac74701cb6421f68ae",
|
|
|
"message": "获取用户签到信息成功"
|
|
|
}
|
|
|
```
|
|
|
|
|
|
## 3.转发
|
|
|
|
|
|
`method=app.starClass.forward`
|
|
|
|
|
|
#### 入参
|
|
|
|
|
|
| 参数名称 | 参数类型 | 可否为空 | 示例 | 默认值 | 备注 |
|
|
|
|:---------|---------:|----------:|-----:|-------:|-----:|
|
|
|
| uid | int | 否 | 213 | 0 |用户id|
|
|
|
|
|
|
#### 出参
|
|
|
|
|
|
```json
|
|
|
{
|
|
|
"alg": "SALT_MD5",
|
|
|
"code": 200,
|
|
|
"data": 10, // 本次增加的分数
|
|
|
"md5": "9f6ed5823862ae9009fc8084516132da",
|
|
|
"message": "用户转发"
|
|
|
}
|
|
|
```
|
|
|
|
|
|
## 前 100
|
|
|
|
|
|
`method=app.starClass.top100`
|
|
|
|
|
|
#### 出参
|
|
|
|
|
|
```json
|
|
|
{
|
|
|
"alg": "SALT_MD5",
|
|
|
"code": 200,
|
|
|
"data": [
|
|
|
{
|
|
|
"avatar": "http://static.yoho.cn/images/default_userhead_boy_180_180.png?imageView/{mode}/w/{width}/h/{height}",
|
|
|
"num": 20,
|
|
|
"uid": 3703860,
|
|
|
"username": "曹苒"
|
|
|
},
|
|
|
{
|
|
|
"num": 10,
|
|
|
"uid": 3566199,
|
|
|
"username": "136****8114@yohoinc.com"
|
|
|
},
|
|
|
{
|
|
|
"avatar": "http://static.yoho.cn/images/default_userhead_boy_180_180.png?imageView/{mode}/w/{width}/h/{height}",
|
|
|
"num": 10,
|
|
|
"uid": 3566423,
|
|
|
"username": "黄德才"
|
|
|
}
|
|
|
],
|
|
|
"md5": "fae5f8b593b1c505eb36db1d29a80eca",
|
|
|
"message": "top100"
|
|
|
}
|
|
|
```
|
|
|
|
|
|
|
...
|
...
|
|