##**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
~~~