個(gè)人中心相關(guān)接口數(shù)據(jù)描述
6.1?個(gè)人中心主頁(yè)信息接口
(1)請(qǐng)求路徑:xxx.com/smallprogapi/UserCenter/GetUser
(2)請(qǐng)求參數(shù):
?
參數(shù)名稱 | 必填 | 參數(shù)值說(shuō)明 | 格式要求 |
openId | 是 | OpenID | String |
?
(3)返回值說(shuō)明:JSON
返回結(jié)果:
{"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}} |
返回結(jié)果參數(shù)說(shuō)明:
?
字段名稱 | 字段編碼 | 數(shù)據(jù)類型 | 是否可空 | 備注 |
用戶賬號(hào) | UserName | String | 否 | |
用戶真實(shí)名稱 | RealName | String | 否 | |
用戶昵稱 | Nick | String | 否 | |
用戶ID | UserId | long | 否 | |
用戶頭像 | Photo | String | 否 | |
訂單總數(shù) | AllOrders | Int | 否 | |
等待付款訂單數(shù) | WaitingForPay | Int | 否 | |
等待收貨訂單數(shù) | WaitingForRecieve | Int | 否 | |
等待發(fā)貨訂單數(shù) | WaitingForDelivery | Int | 否 | |
等待評(píng)論訂單數(shù) | WaitingForComments | Int | 否 | |
售后訂單數(shù) | RefundOrders | Int | 否 | |
用戶綁定手機(jī)號(hào) | CellPhone | String | 是 | |
未使用的優(yōu)惠券數(shù) | Counpon | Int | 否 | |
我的積分 | Integral | Int | 否 | |
我的資產(chǎn) | Balance | Decimal | 否 |
?
6.2?獲取積分明細(xì)
(1)請(qǐng)求路徑:xxx.com/smallprogapi/UserCenter/GetIntegralRecordList
(2)請(qǐng)求參數(shù):
?
參數(shù)名稱 | 必填 | 參數(shù)值說(shuō)明 | 格式要求 |
openId | 是 | OpenID | String |
pageNo | 是 | 頁(yè)碼 | Int |
pageSize | 是 | 每頁(yè)記錄數(shù) | decimal |
?
(3)返回值說(shuō)明:Json格式
返回結(jié)果:
{"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":"每天登錄"}]} |
返回結(jié)果參數(shù)說(shuō)明:
?
字段名稱 | 字段編碼 | 數(shù)據(jù)類型 | 是否可空 | 備注 |
明細(xì)Id | Id | long | 否 | |
用戶id | MemberId | long | 否 | |
用戶名 | UserName | String | 否 | |
積分類型 | TypeName | String | 否 | |
積分?jǐn)?shù) | Integral | int | 否 | |
記錄日期 | RecordDate | String | 否 | |
備注 | ReMark | String | 是 |
0 Comments.