文档
测试

查看充电状态

POST
/user/getChargingState

请求头

参数名
类型
描述
必填
示例
Content-Type
string
必填
application/json
Authorization
string
token
必填
eyJ0eXAiOiJKV1Q

请求参数

参数名
类型
描述
必填
示例
car_id
string
车辆编号
必填
52432

成功时返回

参数名
类型
描述
必填
示例
code
int
响应码
必填
1
message
string
响应信息
可选
查询成功
data
object
数据字典
必填
car_id
string
车辆编号
必填
bill_date
date
日期
必填
bill_id
string
详单编号
必填
pile_id
int
充电桩编号,合法编号大于等于0
必填
charge_amount
double
充电量
必填
charge_duration
double
充电时长(小时)
必填
start_time
datetime
充电开始时间
必填
end_time
datetime
充电结束时间
必填
total_charge_fee
double
充电费
必填
total_service_fee
double
服务费
必填
total_fee
double
总费用
必填

失败时返回

参数名
类型
描述
必填
示例
code
int
响应码
必填
0
message
string
响应信息
必填
充电已结束

说明 / 示例

响应码:1表示成功 0表示失败,详细失败信息在message中给出