个人中心相关接口数据描述
|6.1 个人中心主页信息接口
(1)请求路径:xxx.com/smallprogapi/UserCenter/GetUser
(2)请求参数:
参数名称 | 必填 | 参数值说明 | 格式要求 |
openId | 是 | OpenID | String |
(3)返回值说明:JSON
返回结果:
{"success":true,"msg":"","code":0,"data":{"UserName":"viange","RealName":"viange","Nick":"viange","UserId":"664","Photo":"","AllOrders":"108","WaitingForPay":"2","WaitingForRecieve":"0","WaitingForDelivery":42,"WaitingForComments":"0","RefundOrders":4,"CellPhone":null,"Counpon":"1","Integral":"29452","Balance":1000.00}} |
返回结果参数说明:
字段名称 | 字段编码 | 数据类型 | 是否可空 | 备注 |
用户账号 | UserName | String | 否 | |
用户真实名称 | RealName | String | 否 | |
用户昵称 | Nick | String | 否 | |
用户ID | UserId | long | 否 | |
用户头像 | Photo | String | 否 | |
订单总数 | AllOrders | Int | 否 | |
等待付款订单数 | WaitingForPay | Int | 否 | |
等待收货订单数 | WaitingForRecieve | Int | 否 | |
等待发货订单数 | WaitingForDelivery | Int | 否 | |
等待评论订单数 | WaitingForComments | Int | 否 | |
售后订单数 | RefundOrders | Int | 否 | |
用户绑定手机号 | CellPhone | String | 是 | |
未使用的优惠券数 | Counpon | Int | 否 | |
我的积分 | Integral | Int | 否 | |
我的资产 | Balance | Decimal | 否 |
6.2 获取积分明细
(1)请求路径:xxx.com/smallprogapi/UserCenter/GetIntegralRecordList
(2)请求参数:
参数名称 | 必填 | 参数值说明 | 格式要求 |
openId | 是 | OpenID | String |
pageNo | 是 | 页码 | Int |
pageSize | 是 | 每页记录数 | decimal |
(3)返回值说明:Json格式
返回结果:
{"success":true,"msg":"","code":0,"data":[{"Id":3554,"MemberId":664,"UserName":"viange","TypeName":"每日登录","Integral":10,"RecordDate":"2017-11-16 14:41:05","ReMark":"每天登录"},{"Id":3547,"MemberId":664,"UserName":"viange","TypeName":"每日登录","Integral":10,"RecordDate":"2017-11-15 10:22:12","ReMark":"每天登录"},{"Id":3542,"MemberId":664,"UserName":"viange","TypeName":"每日登录","Integral":10,"RecordDate":"2017-11-14 09:02:21","ReMark":"每天登录"},{"Id":3538,"MemberId":664,"UserName":"viange","TypeName":"每日登录","Integral":10,"RecordDate":"2017-11-13 08:55:37","ReMark":"每天登录"},{"Id":3533,"MemberId":664,"UserName":"viange","TypeName":"每日登录","Integral":10,"RecordDate":"2017-11-10 15:20:27","ReMark":"每天登录"},{"Id":3529,"MemberId":664,"UserName":"viange","TypeName":"每日登录","Integral":10,"RecordDate":"2017-11-09 15:19:16","ReMark":"每天登录"},{"Id":3520,"MemberId":664,"UserName":"viange","TypeName":"每日登录","Integral":10,"RecordDate":"2017-11-02 11:53:46","ReMark":"每天登录"},{"Id":3509,"MemberId":664,"UserName":"viange","TypeName":"每日登录","Integral":10,"RecordDate":"2017-10-27 16:59:53","ReMark":"每天登录"},{"Id":3496,"MemberId":664,"UserName":"viange","TypeName":"每日登录","Integral":10,"RecordDate":"2017-10-23 14:29:33","ReMark":"每天登录"},{"Id":3490,"MemberId":664,"UserName":"viange","TypeName":"每日登录","Integral":10,"RecordDate":"2017-10-19 08:51:31","ReMark":"每天登录"}]} |
返回结果参数说明:
字段名称 | 字段编码 | 数据类型 | 是否可空 | 备注 |
明细Id | Id | long | 否 | |
用户id | MemberId | long | 否 | |
用户名 | UserName | String | 否 | |
积分类型 | TypeName | String | 否 | |
积分数 | Integral | int | 否 | |
记录日期 | RecordDate | String | 否 | |
备注 | ReMark | String | 是 |
0 Comments.