分銷商中心頁面

簡要描述
  • 分銷商中心頁面
請(qǐng)求url
  • https://www.商城域名.com/index.php?s=/api/dealer/center
請(qǐng)求方式
  • GET
是否需授權(quán)登錄
請(qǐng)求header
參數(shù)名 類型 是否必須 示例值 說明
storeId int 必填 10001 商城ID
platform string 必填 H5 當(dāng)前請(qǐng)求的客戶端(APP、小程序、H5等)
Access-Token string 選填 - 當(dāng)前登錄用戶的 Token
返回示例
{
  "status": 200,
  "message": "success",
  "data": {
    "isDealer": true,
    "user": {
      "user_id": 10125,
      "mobile": "130****0000",
      "nick_name": "CC",
      "avatar_id": 10738,
      "gender": "未知",
      "country": "",
      "province": "",
      "city": "",
      "address_id": 10052,
      "balance": "91624.50",
      "points": 64,
      "pay_money": "142655.51",
      "expend_money": "1437.80",
      "grade_id": 10001,
      "platform": "MP-WEIXIN",
      "last_login_time": 1645801346,
      "avatar_url": "230b880c338df99ffbdd502b42ca7dce.png"
    },
    "dealer": {
      "user_id": 10125,
      "real_name": "陳旭",
      "mobile": "13000000000",
      "money": "72875.98",
      "freeze_money": "130323.50",
      "total_money": "0.52",
      "referee_id": 0,
      "first_num": 0,
      "second_num": 0,
      "third_num": 0
    },
    "refereeName": "分銷商A",
    "setting": {}
  }
}
返回參數(shù)
參數(shù)名 類型 示例值 說明
status int 200 請(qǐng)求狀態(tài)(200:請(qǐng)求成功;500:請(qǐng)求錯(cuò)誤/失敗)
message string success 請(qǐng)求結(jié)果的信息,默認(rèn)為 success
data object - 返回的業(yè)務(wù)數(shù)據(jù)
data 參數(shù)
參數(shù)名 類型 示例值 說明
isDealer boolean true 當(dāng)前是否為分銷商
user object - 當(dāng)前用戶信息;可參考 “獲取當(dāng)前用戶詳情”API
dealer object - 分銷商用戶信息;可參考 “分銷商用戶詳情”API
refereeName string 分銷商A 推薦人昵稱
setting object - 分銷設(shè)置