method:get url: /api/v1/u/list
参数列表
参数名 | 类型 | 必需 | 描述 |
---|---|---|---|
page | int | false | 页数 |
pageSize | int | false | 每页条数 |
返回结果: Android Code | IOS Code
[ { "userId": "string //用户id", "userName": "string //用户名", "friends": [ { "userId": "string //用户id", "userName": "string //用户名" } ], "readBooks": [ { "bookId": "long //图书id", "bookName": "string //图书名称" } ], "isFollow": "boolean //是否关注" } ]
method:get url: /api/v1/u/info
参数列表
参数名 | 类型 | 必需 | 描述 |
---|---|---|---|
userId | string | true | 用户id |
返回结果: Android Code | IOS Code
{ "userId": "string //用户id", "userName": "string //用户名", "friends": [ { "userId": "string //用户id", "userName": "string //用户名" } ], "readBooks": [ { "bookId": "long //图书id", "bookName": "string //图书名称" } ], "isFollow": "boolean //是否关注" }
method:post url: /api/v1/u/favorite
参数列表
参数名 | 类型 | 必需 | 描述 |
---|---|---|---|
bookId | string | true | 图书id |
返回结果: Android Code | IOS Code
{ "bookId": "long //图书id", "bookName": "string //图书名称", "storeCount": "int //馆藏数量", "pictures": "string[] //图片", "owner": { "userId": "string //用户id", "userName": "string //用户名", "friends": [ { "userId": "string //用户id", "userName": "string //用户名" } ], "readBooks": [ { "bookId": "long //图书id", "bookName": "string //图书名称" } ], "isFollow": "boolean //是否关注" } }