通用接口
商城配置信息
接口地址
请求方式:GET 不需要授权
{host}/api/common/config
请求参数
| 参数名 | 数据类型 | 是否必须 |
|---|---|---|
| key | string | 是 |
响应结果
{
"code": "200",
"msg": "ok",
"data": {
"mall_name": "灵狐云商城演示",
"mall_introduce": "灵狐云商城优秀的商城系统",
"mall_logo": "h5GZ14lFdygY4bAerpPqaRqGa5dh91P5KS5aYAjuP.png",
"mall_telephone": "13888888888",
"mall_version": "1.0.0",
"mall_address": "廊坊市万达广场",
"hot_search": "",
"wechat": {
"qrcode": "3coQdJMzzPQHnAHpR0t6YKbgCC4RJ3dP5ErlDVtX.jpg",
"kf_type": 1,
"kf_corp_id": "23",
"kf_url": "2323"
},
"coupon": {
"status": 1
},
"groupon": {
"status": 1,
"describe": "拼团规则"
}
}
}
| 字段名 | 说明 |
|---|---|
| mall_name | 商城名称 |
| mall_introduce | 商城介绍 |
| mall_telephone | 商城联系电话 |
| mall_version | 商城版本 |
| mall_address | 商城地址 |
| wechat.qrcode | 微信小程序二维码 |
| wechat.kf_type | 客户类型 |
| wechat.kf_corp_id | 客服ID |
| wechat.kf_url | 客服URL开启企业微信后使用 |
| coupon.status | 优惠券功能开启状态 |
| groupon.status | 拼团功能开启状态 |
手机验证码
接口地址
请求方式:GET 不需要授权
{host}/api/verify_code
文章详情
接口地址
请求方式:GET 不需要授权
{host}/api/article/{key}
请求参数
| 参数名 | 数据类型 | 是否必须 |
|---|---|---|
| key | string | 是 |
响应结果
{
"code": "200",
"msg": "ok",
"data": {
"title": "用户协议",
"content": "这里是用户协议详细内容"
}
}
通用图片上传接口
接口地址
请求方式:GET 需要授权
{host}/api/common/upload
意见反馈
接口地址
请求方式:POST 需要授权
{host}/api/feedbacks
请求参数
| 参数名 | 数据类型 | 是否必须 |
|---|---|---|
| title | string | 是 |
| contact | string | 是 |
| content | string | 是 |
Banner列表
接口地址
请求方式:GET 不需要授权
{host}/api/banners
响应结果
{
"code": "200",
"msg": "ok",
"data": [{
"image_url": "zelAYvFvTrCB53kmSj5zCBwQYCn6CdlKXvDwXiJA.jpg",
"skip_link": null
}]
}