文档
测试

故事馆,随机获取一封信

GET
api/letter/random

请求头

参数名
类型
描述
必填
Authorization
string
Bear +token(不要忽略Bear后的空格)
必填

请求参数

参数名
类型
描述
必填
letterType
string
新的类型 应限定为(1/2)
必填

成功

参数名
类型
描述
必填
status
number
示例:0
必填
message
string
示例:OK
必填
data
object
数据字典
必填
id
number
示例:7
必填
letterType
object
示例:null
必填
preview
object
示例:null
必填
createTime
object
示例:null
必填
author
string
示例:LiuZhen
必填
nickname
string
示例:lbwnb
必填
content
string
示例:我太难了我太难了我太难了我太难了我太难了我太难了我太难了我太难了我太难了我太难了我太难了我太难了我太难了我太难了我太难了我太难了我太难了我太难了我太难了我太...
必填
annexUrl
object
示例:null
必填
starCount
object
示例:null
必填
targetLetterId
object
示例:null
必填
targetUsername
object
示例:null
必填
commentCount
object
示例:null
必填

成功示例

~~~json { "status": 0, "message": "OK", "data": { "id": 7, "letterType": null, "preview": null, "createTime": null, "author": "LiuZhen", "nickname": "lbwnb", "content": "我太难了我太难了我太难了我太难了我太难了我太难了我太难了我太难了我太难了我太难了我太难了我太难了我太难了我太难了我太难了我太难了我太难了我太难了我太难了我太...", "annexUrl": null, "targetLetterId": null, "targetUsername": null } }

失败

参数名
类型
描述
必填
status
number
示例:500
必填
message
string
示例:一般为极小概率的服务器出错
必填
data
object
示例:null
必填