个人中心相关接口数据描述

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

 

更多
  • 该日志由 于2020年05月30日发表在 未分类 分类下, 你可以发表评论,并在保留原文地址 及作者的情况下引用到你的网站或博客。
  • 本文链接: 个人中心相关接口数据描述 | 帮助信息-动天数据
  • 版权所有: 帮助信息-动天数据-转载请标明出处
  • 【上一篇】 【下一篇】

    0 Comments.