文档
测试

更具精灵id查精灵详情

POST
http://192.168.8.21:8061/v1.4/api/spirit/state

请求头

参数名
类型
描述
必填
token
string
示例:HQytcgZhK7FB3EFrQLcxcsy8SNENDMdmje1GZ3HJJEn1RkZHi2vbWBTJcvFpZYSl9pKvCMoM5iduHxLVKy+3pGxa0FLgaUihYr53tUu4WiI=
必填

请求参数

参数名
类型
描述
必填
spiritId
string
示例:21
必填

响应参数

参数名
类型
描述
必填
code
int
示例:200
必填
data
object
数据字典
必填
id
int
示例:21
必填
spiritName
string
示例:玛卡巴卡
必填
spiritDesc
string
示例:我是玛卡巴卡
必填
thumbPath
string
示例:http://schongdian.hengqifeng.com/chargespirit/封面/玛卡巴卡_v1.png
必填
spiritPath
string
示例:http://schongdian.hengqifeng.com/chargespirit/makabaka_v3.zip
必填
spiritState
int
示例:1
必填
createUserId
int
示例:1
必填
createTime
string
示例:2021-06-01 13:19:39
必填
updateTime
string
示例:2021-06-01 13:19:39
必填
updateUserId
int
示例:1
必填
volt
int
示例:188
必填
type
int
示例:2
必填
locked
int
示例:1
必填
background
string
示例:http://schongdian.hengqifeng.com/chargespirit/背景/makabaka.jpg
必填
width
int
示例:70
必填
height
int
示例:109
必填
sex
object
示例:null
必填
status
int
示例:1
必填
satietyValue
int
示例:3
必填
cleaningValue
int
示例:2
必填
healthValue
int
示例:1
必填
message
string
示例:操作成功
必填

说明 / 示例

{ "code": 200, "data": { "id": 21, "spiritName": "玛卡巴卡", // 精灵名称 "spiritDesc": "我是玛卡巴卡", // 精灵描述 "thumbPath": "", // 精灵封面图 "spiritPath": "", // 精灵动画 "spiritState": 1, "createUserId": 1, "createTime": "2021-06-01 13:19:39", "updateTime": "2021-06-01 13:19:39", "updateUserId": 1, "volt": 188, // 伏特 "type": 2, "locked": 1, // 精灵付费类型 "background": "", // 精灵背景图 "width": 70, "height": 109, "sex": null, "status": 1, "satietyValue": 3, // 饱腹值 "cleaningValue": 2, // 清洁值 "healthValue": 1 // 健康值 }, "message": "操作成功" }