文档
测试

油卡兑换

POST
http://yun-pay.hs499.com/app/fuel/card/exchange

接口描述

油卡兑换

请求参数

参数名
类型
描述
必填
user_id
String
当前登录用户id 示例:1c1fa12253494122b181508baf39671a
必填
page
int
页数,默认1
必填
limit
int
条数,默认3
必填

响应参数

参数名
类型
描述
必填
code
number
示例:0 成功 -1 失败
必填
errors
object
数据字典
必填
msg
string
示例:操作成功
必填
result
object
数据字典
必填
user_score
decimal
可用积分
必填
tips
string
兑换提示,例如:每1000积分可以兑换100元油卡
必填
exchange_list
list
兑换列表
必填
id
string
主键
必填
title
string
标题
必填
img_path
string
图片地址
必填
price
decimal
价值
必填
score
int
需要积分
必填

说明 / 示例

{ "code": 1, "errors": {}, "msg": "操作成功", "result": { "user_score": 0, "exchange_list": [ { "score": 1000, "img_path": "upload//202008/1598239068532.png", "price": 100, "id": "ed2f0b90ad25476c8f9eaf34e2ef0f29", "title": "100元中国石油现金礼卡", "oem_id": "5988" }, { "score": 2000, "img_path": "upload//202008/1598239127691.png", "price": 200, "id": "9a7930a0d5cc4482bb1856c9e46adad8", "title": "200元中国石油现金礼卡", "oem_id": "5988" }, { "score": 3000, "img_path": "upload//202008/1598239262401.png", "price": 300, "id": "be5a2d00f12f4b3eb058ff739cb85b13", "title": "300元中国石油现金礼卡", "oem_id": "5988" } ], "tips": "每1000积分可以兑换100元油卡" } }