人物接口 - MyBigMeatMeat/cost GitHub Wiki
接口地址
- /person/getAllList
请求方式
- get/post
参数
- 无
返回
- code 返回代码 0-成功 500-异常或者空 400-参数不足
- msg 返回说明
- data 返回数据 类型为数组 code为0时又返回
- id int 用户主键
- name String 人物名称
- capital double 财富金额 单位:元
- url String 头像地址
- status String 是否展示 1:展示 0:不展示
接口地址
- /person/addPerson
请求方式
- get/post
参数
- name String 人物名称 必传
- capital double 资产金额 必传
- file 文件类型 头像图片 必传
返回
- code 返回代码 0-成功 500-异常或者空 400-参数不足
- msg 返回说明
- data 返回数据 code为0时又返回
- id int 用户主键
- name String 人物名称
- capital double 财富金额 单位:元
- url String 头像地址
- status String 是否展示 1:展示 0:不展示
接口地址
- /person/deletePerson
请求方式
- get/post
参数
- id int 人物id 必传
返回
- code 返回代码 0-成功 500-异常或者空 400-参数不足
- msg 返回说明