##**1.手機端和電腦端接口所有url一致**
##**2.請求接口參數格式按照架構本身封裝function , 下方提供URL參數說明 并不是請求格式,按照架構本身function 使用傳輸就ok了**
###PC導航菜單[后臺位置:店鋪管理-->首頁菜單]
~~~[api]
get:/api/page/menu
<<<
success
[{
"category_id": 10001, //分類id
"name": "首頁",//標題
"parent_id": 0, //上級分類ID
"image_id": 0, //不用理會
"status": 1,/不用理會
"sort": 100,/不用理會
"menu_type": 0, //0=顯示文字 1=圖標
"url": "http:\/\/localhost:8210\/#\/store\/menu\/index", //跳轉url
"image": null //是否上傳圖標 #如果有上傳則會有一個數組 是 配合 menu_type字段使用的
}, {
"category_id": 10004,
"name": "所有品牌",
"parent_id": 0,
"image_id": 0,
"status": 1,
"sort": 100,
"menu_type": 0,
"url": "http:\/\/localhost:8210\/#\/store\/menu\/index",
"children": [{
"category_id": 10012,
"name": "TOTO",
"parent_id": 10004,
"image_id": 10073,
"status": 1,
"sort": 100,
"menu_type": 1,
"url": "http:\/\/localhost:8210\/#\/store\/menu\/index",
"image": {
"file_id": 10073,
"group_id": 0,
"channel": 10,
"storage": "qiniu",
"domain": "http:\/\/ii.workbb.com",
"file_type": 10,
"file_name": "Logo_TOTO_black_t.webp",
"file_path": "10001\/20220725\/1430266cc9f569443a2a8ceb176783f5.webp",
"file_size": 3272,
"file_ext": "webp",
"cover": "",
"uploader_id": 0,
"is_recycle": 0,
"is_delete": 0,
"update_time": "2022-07-25 12:23:14",
"preview_url": "http:\/\/ii.workbb.com\/10001\/20220725\/1430266cc9f569443a2a8ceb176783f5.webp",
"external_url": "http:\/\/ii.workbb.com\/10001\/20220725\/1430266cc9f569443a2a8ceb176783f5.webp"
}
}],
"image": null
}, {
"category_id": 10005,
"name": "智能產品",
"parent_id": 0,
"image_id": 0,
"status": 1,
"sort": 100,
"menu_type": 0,
"url": "http:\/\/localhost:8210\/#\/store\/menu\/index",
"image": null
}, {
"category_id": 10006,
"name": "陶瓷衛具",
"parent_id": 0,
"image_id": 0,
"status": 1,
"sort": 100,
"menu_type": 0,
"url": null,
"image": null
}, {
"category_id": 10007,
"name": "龍頭花灑",
"parent_id": 0,
"image_id": 0,
"status": 1,
"sort": 100,
"menu_type": 0,
"url": null,
"image": null
}, {
"category_id": 10008,
"name": "浴室家具",
"parent_id": 0,
"image_id": 0,
"status": 1,
"sort": 100,
"menu_type": 0,
"url": null,
"image": null
}, {
"category_id": 10009,
"name": "推薦優惠",
"parent_id": 0,
"image_id": 0,
"status": 1,
"sort": 100,
"menu_type": 0,
"url": null,
"image": null
}, {
"category_id": 10010,
"name": "購物攻略",
"parent_id": 0,
"image_id": 0,
"status": 1,
"sort": 100,
"menu_type": 0,
"url": null,
"image": null
}, {
"category_id": 10011,
"name": "會員專區",
"parent_id": 0,
"image_id": 0,
"status": 1,
"sort": 100,
"menu_type": 0,
"url": null,
"image": null
}]
}
<<<
error
~~~
###獲取PC首頁輪播
~~~[api]
get:/api/page/advertisement
*string:key=home#鍵值(在后臺自行添加根據數據獲取后臺位置;[店鋪管理--->廣告管理])
<<<
success
<<<
error
~~~
##簽到積分=wap+pc
~~~[api]
get:/api/user/signIn
<<<
(所有接口):success
{
"status": 200,
"message": "success",
"data": []
}
<<<
(所有接口):error
{
"status": 500,
"message": "錯誤信息",
"data": []
}
~~~
##轉贈積分=wap+pc
~~~[api]
post:/api/user/givePoints
*int:value#轉贈數量
*int:mobile#對方賬號手機號
<<<
success
<<<
error
~~~
##生成二維歐碼=wap+pc
~~~[api]
get:/api/qrcode/make
*string:str#url或文字信息
<<<
success
<<<
error
~~~
##獲取角色升級列表=wap+pc
~~~[api]
post:/api/user/upgradeList
<<<
success
<<<
error
~~~
##角色升級(實體門店&&工程客戶&&普通用戶),先獲取角色列表再選擇id =wap+pc
~~~[api]
post:/api/user/upgrade
*int:identity_id#角色id
<<<
success
<<<
error
~~~
###獲取角色列表(無需傳參數)
~~~[api]
get:/api/user.dealer.apply/userIdentity
<<<
success
<<<
error
~~~
###角色認證申請
~~~[api]
post:/api/user.dealer.apply/submit
*string:name#申請姓名
*string:mobile#手機號
*int:identity_id#角色id(請求角色列表)接口獲得
<<<
success
<<<
error
~~~
###角色獲取邀請二維歐碼(無需傳參)
~~~[api]
get:/api/user.dealer.qrcode/poster
<<<
success
<<<
error
~~~
###分銷中心(無需傳參數)
~~~[api]
get:/api/user.dealer/center
<<<
success
以下參數選取頁面使用得到的即可
{
"is_dealer": true, // 當前是否為分銷商
//當前用戶信息
"user": {
"user_id": 10008,
"mobile": "158****9052",
"nick_name": "158****9052",
"avatar_id": 10007,
"gender": "未知",
"country": "",
"province": "",
"city": "",
"address_id": 10004,
"balance": "1109.00",
"points": 103,
"pay_money": "2.00",
"expend_money": "0.00",
"grade_id": 0,
"platform": "H5",
"last_login_time": 1658453528,
"FNumber": "0",
"mail": null,
"identity_id": 10004,
"identity_status": 1,
"referee_id": 0,
"first_num": 2,
"second_num": 0,
"third_num": 0,
"currentOauth": null
},
// 分銷商用戶信息
"dealer": {
"user_id": 10008,
"real_name": "新用戶分銷",
"mobile": "13545454545",
"money": "0.09",
"freeze_money": "0.00",
"total_money": "0.00",
"referee_id": 0,
"first_num": 0,
"second_num": 0,
"third_num": 0,
"is_delete": 0,
"store_id": 10001,
"identity_id": 10004,
"user": {
"user_id": 10008,
"mobile": "15889889052",
"nick_name": "158****9052",
"avatar_id": 10007,
"gender": "未知",
"country": "",
"province": "",
"city": "",
"address_id": 10004,
"balance": "1109.00",
"points": 103,
"pay_money": "2.00",
"expend_money": "0.00",
"grade_id": 0,
"platform": "H5",
"last_login_time": 1658453528,
"is_delete": 0,
"store_id": 10001,
"create_time": "2022-07-16 18:15:03",
"update_time": "2022-07-22 09:32:08",
"FNumber": "0",
"mail": null,
"identity_id": 10004,
"identity_status": 1,
"referee_id": 0,
"first_num": 2,
"second_num": 0,
"third_num": 0
},
"referee": null
}
}
<<<
error
~~~
###獲取分銷商訂單列表(參數:無)
###1.在角色中心查看獲得傭金的訂單
~~~[api]
get:/api/user.dealer.order/lists
<<<
success
<<<
error
~~~
###文章列表
~~~[api]
get:/api/article/list
*string:categoryId=0#分類id
<<<
success
<<<
error
~~~
###文章詳情
~~~[api]
get:/api/article/detail
*string:articleId=默認值#文章id
<<<
success
<<<
error
~~~
###文章分類
~~~[api]
get:/api/article.category/list
<<<
success
<<<
error
~~~
####列表接口
~~~[api]
get:/api/goods/list
*string:sortType=all#排序類型 all=綜合排序 sales=銷量排序 price=價格排序
*int:sortPrice=0#價格排序方式 0=首次進入綜合(0) 1=金額大排序 =0金額小排序
*int:categoryId=0#分類id
*int:page=1#分頁頁碼
goodsName#模糊搜索商品名稱 (列表搜索用到其他可以傳空)
<<<
success
<<<
error
~~~
###商品詳情
~~~[api]
get:/api/goods/detail
*string:goodsId=0#商品id
<<<
success
<<<
error
~~~
###統計購物車
~~~[api]
get:/api/cart/total
<<<
success
<<<
error
~~~
###商品標簽服務
~~~[api]
get:/api/goods.service/list
*string:goodsId=默認值#商品id
<<<
success
<<<
error
~~~
###技術列表
~~~[api]
get:/api/technology/list
<<<
success
<<<
error
~~~
###技術詳情
~~~[api]
get:/api/technology/detail
*string:articleId=默認值#技術id
<<<
success
<<<
error
~~~
###技術分類列表
~~~[api]
get:/api/technology.category/list
string:categoryId=0#分類id
<<<
success
<<<
error
~~~