[toc]
酒水 copy
环境
本地开发
key | value |
---|---|
base_url |
http://192.168.1.173/module/alcohol |
|token
|eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjQwLCJpc3MiOiJodHRwOi8vMTkyLjE2OC4xLjE3My9tb2R1bGUvYWxjb2hvbC9sb2dpbiIsImlhdCI6MTU5MTY4MzY3NywiZXhwIjoxNTk2ODY3Njc3LCJuYmYiOjE1OTE2ODM2NzcsImp0aSI6InJjMmFpOVR2NTFvV0J1OGkifQ._lKOKeHWiSCy8cBrtqmXF5GV5aPIpk52g8kgOOVg5H0|
线上测试
key | value |
---|---|
base_url |
https://alcohol.union-home.cn/module/alcohol |
|token
|eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjQzLCJpc3MiOiJodHRwczovL2FsY29ob2wudW5pb24taG9tZS5jbi9tb2R1bGUvYWxjb2hvbC9yZWdpc3RlciIsImlhdCI6MTU5MTY2OTI3NCwiZXhwIjoxNTk2ODUzMjc0LCJuYmYiOjE1OTE2NjkyNzQsImp0aSI6ImVwU2U0alk2N3hXREd5OEUifQ.R_NtRm7EPeIgquFZ_kVQaUDWF1uqvVjq8ClmRbsql68|
酒市行情
删除自选
POST {{base_url}}/market/delOptional
Header
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
Authorization |
string | 1 | bearer {{token}} |
Body
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
category_id |
string | 1 |
返回示例
{
"status": 200,
"msg": "success",
"data": null
}
返回参数
参数名 | 类型 | 描述 |
---|---|---|
data.systemMessage |
number | 系统消息 |
data.fansMessage |
number | 新粉丝提醒 |
data.likeMessage |
number | 点赞 |
data.collectionMessage |
number | 收藏 |
data.commentMessage |
number | 评论 |
#### 添加自选 | ||
` |
||
POST {{base_url}}/market/addOptional | ||
` |
Header
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
Authorization |
string | 1 | bearer {{token}} |
Body
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
category_id |
string | 1 |
返回示例
{
"status": 200,
"msg": "success",
"data": null
}
返回参数
参数名 | 类型 | 描述 |
---|---|---|
data.systemMessage |
number | 系统消息 |
data.fansMessage |
number | 新粉丝提醒 |
data.likeMessage |
number | 点赞 |
data.collectionMessage |
number | 收藏 |
data.commentMessage |
number | 评论 |
#### 获取行情 | ||
` |
||
GET {{base_url}}/market/getMarket | ||
` |
Query
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
category_id |
string | 1 | 分类ID | 0 |
year |
string | 0 | 年份 | |
spec |
string | 0 | 规格 | |
bale |
string | 0 | 套装 |
Header
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
Authorization |
string | 1 | bearer {{token}} |
返回示例
{
"status": 200,
"msg": "success",
"data": [
{
"id": 2,
"category_id": 7,
"year": "2020",
"spec": "100ml",
"bale": "3瓶装",
"price": "789.00",
"created_at": "2020-05-27 11:02:20",
"updated_at": "2020-05-27 11:41:15"
}
]
}
返回参数
参数名 | 类型 | 描述 |
---|---|---|
data.systemMessage |
number | 系统消息 |
data.fansMessage |
number | 新粉丝提醒 |
data.likeMessage |
number | 点赞 |
data.collectionMessage |
number | 收藏 |
data.commentMessage |
number | 评论 |
#### 我的自选 | ||
` |
||
GET {{base_url}}/market/getMyOptional | ||
` |
Header
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
Authorization |
string | 1 | bearer {{token}} |
返回示例
{
"status": 200,
"msg": "success",
"data": [
{
"id": 15,
"uid": 3,
"category_id": 6,
"created_at": "2020-05-27 14:45:35",
"updated_at": "2020-05-27 14:45:35",
"category_name": "普通茅台"
}
]
}
返回参数
参数名 | 类型 | 描述 |
---|---|---|
data.systemMessage |
number | 系统消息 |
data.fansMessage |
number | 新粉丝提醒 |
data.likeMessage |
number | 点赞 |
data.collectionMessage |
number | 收藏 |
data.commentMessage |
number | 评论 |
#### 获取行情分类 | ||
` |
||
GET {{base_url}}/market/getGoodsCategory | ||
` |
Query
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
pid |
string | 1 | 0 |
Header
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
Authorization |
string | 1 | bearer {{token}} |
返回示例
{
"status": 200,
"msg": "success",
"data": [
{
"category_id": 1,
"pid": 0,
"pid_all_path": "",
"name": "茅台",
"img_type": "",
"logo": "user/file/2020-05-25/5ecb8709e1b13.jpg",
"order": 0,
"status": 1,
"created_at": "2020-05-25 15:58:10",
"updated_at": "2020-05-25 16:05:15"
},
{
"category_id": 2,
"pid": 0,
"pid_all_path": "",
"name": "白酒",
"img_type": "",
"logo": "user/file/2020-05-25/5ecb8709e1b13.jpg",
"order": 0,
"status": 1,
"created_at": "2020-05-25 15:59:48",
"updated_at": "2020-05-25 16:51:22"
},
{
"category_id": 3,
"pid": 0,
"pid_all_path": "",
"name": "葡萄酒",
"img_type": "",
"logo": "user/file/2020-05-25/5ecb872c3d797.jpg",
"order": 0,
"status": 1,
"created_at": "2020-05-25 16:00:01",
"updated_at": "2020-05-25 16:51:56"
},
{
"category_id": 4,
"pid": 0,
"pid_all_path": "",
"name": "洋酒",
"img_type": "",
"logo": "user/file/2020-05-25/5ecb873c06643.jpg",
"order": 0,
"status": 1,
"created_at": "2020-05-25 16:00:21",
"updated_at": "2020-05-25 16:52:12"
},
{
"category_id": 5,
"pid": 0,
"pid_all_path": "",
"name": "威士忌",
"img_type": "",
"logo": "user/file/2020-05-25/5ecb87497dc4d.jpg",
"order": 0,
"status": 1,
"created_at": "2020-05-25 16:01:30",
"updated_at": "2020-05-25 16:52:25"
}
]
}
返回参数
参数名 | 类型 | 描述 |
---|---|---|
data.systemMessage |
number | 系统消息 |
data.fansMessage |
number | 新粉丝提醒 |
data.likeMessage |
number | 点赞 |
data.collectionMessage |
number | 收藏 |
data.commentMessage |
number | 评论 |
## 登录注册 |
发送验证码
GET {{base_url}}/getCode
Query
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
phone |
string | 1 | 18617004852 | |
getType |
string | 1 | 1 |
第三方登录
POST {{base_url}}/threeLogin
Body
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
three_tig |
string | 1 | 第三方标识(wx_app:微信APP登录) | |
openid |
string | 1 |
返回示例
{
"status": 200,
"msg": "登录成功",
"data": {
"uid": 4,
"avatar": "http://192.168.1.173/uploads/avatar/avatar.jpg",
"c_code": "",
"phone": "18617004851",
"email": "",
"username": "186170048519451",
"male": "",
"birthday": "",
"nickname": "186170048519451",
"type": "member",
"phone_active": 1,
"email_active": 0,
"status": 1,
"create_at": "2020-05-28 14:31:28",
"update_at": "2020-05-28 14:31:28",
"change_username": 0,
"integral": null,
"signature": "",
"pid": 0,
"deep": 0,
"path": null,
"invite_code": "77777777",
"user_grade": 0,
"vip_expired_time": null,
"user_type": 0,
"user_auth": 0,
"bind_status": true,
"token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjQsImlzcyI6Imh0dHA6Ly8xOTIuMTY4LjEuMTczL21vZHVsZS9hbGNvaG9sL3RocmVlTG9naW4iLCJpYXQiOjE1OTE1OTc3NjcsImV4cCI6MTU5Njc4MTc2NywibmJmIjoxNTkxNTk3NzY3LCJqdGkiOiJ0VkNyb1ExMXlESXM5c2g2In0.lvV8sArNgjv_zBBkGg5HHefClqfuCmxI9Fdlx4r2i2U",
"set_password": false,
"user_grade_name": null,
"user_type_name": "用户",
"user_auth_name": "未认证"
}
}
设置登录密码
POST {{base_url}}/setPassword
Header
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
Authorization |
string | 1 |
Body
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
password |
string | 1 | 123456 |
返回示例
{
"status": 200,
"msg": "success",
"data": null
}
修改登录密码
POST {{base_url}}/updatePassword
Header
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
Authorization |
string | 1 |
Body
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
password |
string | 1 | 13113691111 | |
phone |
string | 1 | ||
code |
string | 1 |
密码登录
POST {{base_url}}/login
Body
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
phone |
string | 1 | ||
password |
string | 1 |
返回示例
{
"status": 200,
"msg": "登录成功",
"data": {
"uid": 3,
"avatar": "http://local.alcohol.com/uploads/avatar/avatar.jpg",
"c_code": "",
"phone": "18617004850",
"email": "",
"username": "186170048506873",
"male": "",
"birthday": "",
"nickname": "186170048506873",
"password": "4c24663352e2bd67f430e3f3b53aabae",
"type": "member",
"phone_active": 1,
"email_active": 0,
"gid": "",
"status": 1,
"create_at": "2020-05-20 10:23:21",
"update_at": "2020-05-20 10:23:21",
"change_username": 0,
"integral": null,
"signature": "",
"pid": 0,
"token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjMsImlzcyI6Imh0dHA6Ly9sb2NhbC5hbGNvaG9sLmNvbS9tb2R1bGUvYWxjb2hvbC9sb2dpbiIsImlhdCI6MTU4OTk0MTc3OCwiZXhwIjoxNTg5OTQ1Mzc4LCJuYmYiOjE1ODk5NDE3NzgsImp0aSI6ImxWWnNNN21TTHJZcTNmcjkifQ.1GDTWbbMBfvcHZECh7P3WG0gbECTZHFeG5tnGIOkRUw",
"set_password": false
}
}
注册
POST {{base_url}}/register
Body
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
phone |
string | 1 | 18617004851 | |
code |
string | 1 | 123456 |
返回示例
{
"status": 200,
"msg": "注册成功",
"data": {
"uid": 9,
"avatar": "http://192.168.1.173/uploads/avatar/avatar.jpg",
"c_code": "",
"phone": "18617004856",
"email": "",
"username": "186170048568855",
"male": "",
"birthday": "",
"nickname": "186170048568855",
"type": "member",
"phone_active": 1,
"email_active": 0,
"status": 1,
"create_at": "2020-06-05 12:07:12",
"update_at": "2020-06-05 12:07:12",
"change_username": 0,
"integral": null,
"signature": "",
"pid": 0,
"deep": 0,
"path": null,
"invite_code": null,
"user_grade": 0,
"vip_expired_time": null,
"user_type": 0,
"user_auth": 0,
"token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjksImlzcyI6Imh0dHA6Ly8xOTIuMTY4LjEuMTczL21vZHVsZS9hbGNvaG9sL3JlZ2lzdGVyIiwiaWF0IjoxNTkxMzMwMDMyLCJleHAiOjE1OTY1MTQwMzIsIm5iZiI6MTU5MTMzMDAzMiwianRpIjoiUjR4NUFnZzhtM1VhWVQwVyJ9.ysxFNO30Ptf0xXjvDretsesmQJXOZ5g0a07Ebm_tr1E",
"set_password": true,
"user_grade_name": null,
"user_type_name": "用户",
"user_auth_name": "未认证"
}
}
第三方注册和绑定
POST {{base_url}}/threeRegisterAndBind
Body
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
phone |
string | 1 | 手机号 | 18617004851 |
code |
string | 1 | 手机验证码 | 123456 |
three_tig |
string | 1 | 第三方标识(wx_app:微信APP登录) | wx_app |
openid |
string | 1 | 46456464654 |
返回示例
{
"status": 200,
"msg": "注册成功",
"data": {
"uid": 41,
"avatar": "http://192.168.1.173/uploads/avatar/avatar.jpg",
"c_code": "",
"phone": "18617004863",
"email": "",
"username": "186170048636059",
"male": "",
"birthday": "",
"nickname": "186170048636059",
"type": "member",
"phone_active": 1,
"email_active": 0,
"status": 1,
"create_at": "2020-06-08 14:30:55",
"update_at": "2020-06-08 14:30:55",
"change_username": 0,
"integral": null,
"signature": "",
"pid": 0,
"deep": 0,
"path": null,
"invite_code": null,
"user_grade": 0,
"vip_expired_time": null,
"user_type": 0,
"user_auth": 0,
"token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjQxLCJpc3MiOiJodHRwOi8vMTkyLjE2OC4xLjE3My9tb2R1bGUvYWxjb2hvbC90aHJlZVJlZ2lzdGVyQW5kQmluZCIsImlhdCI6MTU5MTU5Nzg1NSwiZXhwIjoxNTk2NzgxODU1LCJuYmYiOjE1OTE1OTc4NTUsImp0aSI6Inl3Z3h5azMwZXpackdxdUYifQ.B-Ni0oHGsUZIR5dxNMEdD63hYsOrEF1zVHjW_G_8joY",
"set_password": true,
"user_grade_name": null,
"user_type_name": "用户",
"user_auth_name": "未认证"
}
}
验证码登录
POST {{base_url}}/verifyLogin
Body
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
phone |
string | 1 | ||
code |
string | 1 |
返回示例
{
"status": 200,
"msg": "登录成功",
"data": {
"uid": 3,
"avatar": "http://192.168.1.173/uploads/avatar/avatar.jpg",
"c_code": "",
"phone": "18617004850",
"email": "",
"username": "哇哈哈哈哈",
"male": "",
"birthday": "",
"nickname": "186170048506873",
"type": "member",
"phone_active": 1,
"email_active": 0,
"status": 1,
"create_at": "2020-05-28 14:31:24",
"update_at": "2020-05-28 14:31:24",
"change_username": 0,
"integral": null,
"signature": "",
"pid": 0,
"deep": 0,
"path": null,
"invite_code": "88888888",
"user_grade": 0,
"vip_expired_time": null,
"user_type": 1,
"user_auth": 1,
"token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjMsImlzcyI6Imh0dHA6Ly8xOTIuMTY4LjEuMTczL21vZHVsZS9hbGNvaG9sL3ZlcmlmeUxvZ2luIiwiaWF0IjoxNTkxMzQ1NzgzLCJleHAiOjE1OTY1Mjk3ODMsIm5iZiI6MTU5MTM0NTc4MywianRpIjoiZ0RRc3pZdWpiU2lETlg2MCJ9.0_-NuNfRazSeFIYt6IzqEtr1Wn3ZZ9cki_rRE_4NBs8",
"set_password": false,
"user_grade_name": null,
"user_type_name": "商家",
"user_auth_name": "实名认证"
}
}
订单支付
订单支付
POST {{base_url}}/order/pay
Header
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
Authorization |
string | 1 | bearer {{token}} |
Body
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
order_id |
string | 1 | 订单ID | 8 |
pay_method |
string | 1 | 支付方式 | 1 |
返回示例
{
"status": 200,
"msg": "success",
"data": {
"appid": "wxd65a13300ecaae03",
"partnerid": "1523813651",
"prepayid": "wx08120301069709664e55b3f81271886500",
"package": "Sign=WXPay",
"noncestr": "q7bt25cp8l0kac7zbq7wk19chjkwrsxg",
"timestamp": "1591588972",
"sign": "CDA3FC623342377F2C7E21E7B91D5E88"
}
}
通用
上传图片
POST {{base_url}}/uploadFile
Body
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
file |
string | 1 |
返回示例
{
"status": 200,
"msg": "上传成功",
"data": {
"file_url": "user/file/2020-05-21/5ec6270bcae31.jpg",
"file_view_url": "http://local.alcohol.com/uploads/user/file/2020-05-21/5ec6270bcae31.jpg"
}
}
广告位购买规则
GET {{base_url}}/adv_rule
返回示例
{
"status": 200,
"msg": "success",
"data": {
"id": 3,
"name": "广告位购买规则",
"content": "广告位购买规则广告位购买规则广告位购买规则广告位购买规则广告位购买规则",
"url": "adv_rule",
"default": 0,
"create_at": "2020-06-06 17:48:48",
"update_at": "2020-06-06 17:48:48",
"seo_keywords": "",
"seo_description": ""
}
}
刷新token
GET {{base_url}}/refreshToken
Header
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
Authorization |
string | 1 |
返回示例
{
"status": 200,
"msg": "success",
"data": {
"token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjMsImlzcyI6Imh0dHA6Ly9sb2NhbC5hbGNvaG9sLmNvbS9tb2R1bGUvYWxjb2hvbC9yZWZyZXNoVG9rZW4iLCJpYXQiOjE1OTAwNTQ2NDIsImV4cCI6MTU5NjQyNzE0MywibmJmIjoxNTkxMjQzMTQzLCJqdGkiOiJwdkY4VjBlNzVaMlY3dEM0In0.GdYSDl9H00PUJ2XcIFbbnu3dULxT4kxIqvsHwPxjO0U"
}
}
获取协议内容
GET {{base_url}}/getAgreement
Query
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
type |
string | 1 | 协议类型 | 3 |
返回示例
{
"status": 200,
"msg": "success",
"data": {
"id": 1,
"title": "注册协议",
"content": "<h1 style=\"text-align: center;\">注册协议</h1><p><br></p>",
"seo_keywords": "注册协议",
"seo_description": "注册协议",
"created_at": "2020-03-11 14:47:56",
"updated_at": "2020-03-11 14:47:56",
"deleted_at": null
}
}
关于我们
GET {{base_url}}/about_us
返回示例
{
"status": 200,
"msg": "success",
"data": {
"id": 1,
"name": "关于我们",
"content": "关于我们关于我们",
"url": "about",
"default": 1,
"create_at": "2020-06-06 10:40:11",
"update_at": "2020-06-06 10:40:11",
"seo_keywords": "123",
"seo_description": "321"
}
}
获取轮播图
GET {{base_url}}/getBanner
Query
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
limit |
string | 0 | 获取条数 | 3 |
返回示例
{
"status": 200,
"msg": "success",
"data": [
{
"id": 1,
"req_type": "app",
"images": "http://192.168.1.173/uploads/banner/2020-05-22/5ec727e5855f5.jpg",
"url": "#",
"type": "self",
"is_self_support": 1,
"need_login": 2,
"is_company": 1,
"status": 1,
"create_at": 1590110181,
"update_at": 1590110181
}
]
}
商圈
获取商圈列表
GET {{base_url}}/life
Query
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
type |
string | 1 | 商圈类型 | 1 |
Header
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
Authorization |
string | 1 | bearer {{token}} |
返回示例
{
"status": 200,
"msg": "success",
"data": {
"current_page": 1,
"data": [
{
"life_id": 19,
"type": 1,
"uid": 10,
"content": "在我们的谷物威士忌中,有一种淡然的自信与柔情。这些特质,使得谷物威士忌无论是作为单一谷物威士忌或是作为调和威士忌的一部分",
"imgs": [
"http://192.168.1.173/uploads/user/file/2020-06-06/5edaf6f62d1e4.png",
"http://192.168.1.173/uploads/user/file/2020-06-06/5edaf7eca9e3b.png",
"http://192.168.1.173/uploads/user/file/2020-06-06/5edaf802c4239.png"
],
"address": "",
"longitude": "",
"latitude": "",
"comment_num": 0,
"collection_num": 0,
"points_num": 0,
"only_self": 2,
"created_at": "2020-06-05 14:18:24",
"updated_at": "2020-06-05 14:18:24",
"deleted_at": null,
"collections_count": 0,
"likes_count": 0,
"type_name": "求购",
"user": {
"uid": 10,
"avatar": "http://192.168.1.173/uploads/avatar/avatar.jpg",
"username": "186170048575344",
"nickname": "186170048575344",
"user_grade": 0,
"user_type": 0,
"user_auth": 0,
"user_grade_name": null,
"user_type_name": "用户",
"user_auth_name": "未认证"
}
},
{
"life_id": 18,
"type": 1,
"uid": 10,
"content": "在我们的谷物威士忌中,有一种淡然的自信与柔情。这些特质,使得谷物威士忌无论是作为单一谷物威士忌或是作为调和威士忌的一部分",
"imgs": [
"http://192.168.1.173/uploads/user/file/2020-06-06/5edaf6f62d1e4.png",
"http://192.168.1.173/uploads/user/file/2020-06-06/5edaf7eca9e3b.png",
"http://192.168.1.173/uploads/user/file/2020-06-06/5edaf802c4239.png"
],
"address": "",
"longitude": "",
"latitude": "",
"comment_num": 0,
"collection_num": 0,
"points_num": 0,
"only_self": 2,
"created_at": "2020-06-05 14:17:08",
"updated_at": "2020-06-05 14:17:08",
"deleted_at": null,
"collections_count": 0,
"likes_count": 0,
"type_name": "求购",
"user": {
"uid": 10,
"avatar": "http://192.168.1.173/uploads/avatar/avatar.jpg",
"username": "186170048575344",
"nickname": "186170048575344",
"user_grade": 0,
"user_type": 0,
"user_auth": 0,
"user_grade_name": null,
"user_type_name": "用户",
"user_auth_name": "未认证"
}
},
{
"life_id": 17,
"type": 1,
"uid": 3,
"content": "在我们的谷物威士忌中,有一种淡然的自信与柔情。这些特质,使得谷物威士忌无论是作为单一谷物威士忌或是作为调和威士忌的一部分",
"imgs": [
"http://192.168.1.173/uploads/user/file/2020-06-06/5edaf6f62d1e4.png",
"http://192.168.1.173/uploads/user/file/2020-06-06/5edaf7eca9e3b.png",
"http://192.168.1.173/uploads/user/file/2020-06-06/5edaf802c4239.png"
],
"address": "",
"longitude": "",
"latitude": "",
"comment_num": 0,
"collection_num": 0,
"points_num": 0,
"only_self": 2,
"created_at": "2020-05-20 18:22:16",
"updated_at": "2020-05-20 18:22:16",
"deleted_at": null,
"collections_count": 0,
"likes_count": 0,
"type_name": "求购",
"user": {
"uid": 3,
"avatar": "http://192.168.1.173/uploads/avatar/avatar.jpg",
"username": "哇哈哈哈哈",
"nickname": "186170048506873",
"user_grade": 0,
"user_type": 1,
"user_auth": 1,
"user_grade_name": null,
"user_type_name": "商家",
"user_auth_name": "实名认证"
}
},
{
"life_id": 16,
"type": 1,
"uid": 5,
"content": "在我们的谷物威士忌中,有一种淡然的自信与柔情。这些特质,使得谷物威士忌无论是作为单一谷物威士忌或是作为调和威士忌的一部分",
"imgs": [
"http://192.168.1.173/uploads/user/file/2020-06-06/5edaf6f62d1e4.png",
"http://192.168.1.173/uploads/user/file/2020-06-06/5edaf7eca9e3b.png",
"http://192.168.1.173/uploads/user/file/2020-06-06/5edaf802c4239.png"
],
"address": "",
"longitude": "",
"latitude": "",
"comment_num": 0,
"collection_num": 0,
"points_num": 0,
"only_self": 2,
"created_at": "2020-05-20 17:56:02",
"updated_at": "2020-05-20 17:56:02",
"deleted_at": null,
"collections_count": 1,
"likes_count": 0,
"type_name": "求购",
"user": {
"uid": 5,
"avatar": "http://192.168.1.173/uploads/avatar/avatar.jpg",
"username": "186170048526554",
"nickname": "186170048526554",
"user_grade": 0,
"user_type": 0,
"user_auth": 0,
"user_grade_name": null,
"user_type_name": "用户",
"user_auth_name": "未认证"
}
}
],
"first_page_url": "http://192.168.1.173/module/alcohol/life?page=1",
"from": 1,
"last_page": 1,
"last_page_url": "http://192.168.1.173/module/alcohol/life?page=1",
"next_page_url": null,
"path": "http://192.168.1.173/module/alcohol/life",
"per_page": 15,
"prev_page_url": null,
"to": 4,
"total": 4
}
}
发布商圈
POST {{base_url}}/life
Header
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
Authorization |
string | 1 | bearer {{token}} |
Body
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
type |
string | 1 | 1求购 2出售 | 1 |
content |
string | 1 | 222 | |
imgs |
string | 0 | ||
address |
string | 0 | ||
longitude |
string | 0 | ||
latitude |
string | 0 | ||
only_self |
string | 0 | //是否显示 1=仅自己可见 2=公开 (不传默认2) | 2 |
返回示例
{
"status": 200,
"msg": "success",
"data": null
}
编辑商圈
POST {{base_url}}/life/15
Header
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
Authorization |
string | 1 | bearer {{token}} |
Body
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
type |
string | 1 | 1 | |
content |
string | 1 | 222 | |
imgs |
string | 0 | ||
address |
string | 0 | ||
longitude |
string | 0 | ||
latitude |
string | 0 | ||
only_self |
string | 0 | //是否显示 1=仅自己可见 2=公开 (不传默认2) | 2 |
_method |
string | 1 |
返回示例
{
"status": 200,
"msg": "success",
"data": null
}
删除商圈
DELETE {{base_url}}/life/15
Header
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
Authorization |
string | 1 | bearer {{token}} |
Body
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
type |
string | 1 | 1 | |
title |
string | 1 | 111 | |
content |
string | 1 | 222 | |
imgs |
string | 0 | ||
address |
string | 0 | ||
longitude |
string | 0 | ||
latitude |
string | 0 | ||
only_self |
string | 0 | //是否显示 1=仅自己可见 2=公开 (不传默认2) | 2 |
_method |
string | 1 |
返回示例
{
"status": 200,
"msg": "success",
"data": null
}
商圈–获取用户发布的商圈
GET {{base_url}}/getUserLife
Query
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
uid |
string | 1 |
Header
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
Authorization |
string | 1 | bearer {{token}} |
返回示例
{
"status": 200,
"msg": "success",
"data": {
"current_page": 1,
"data": [
{
"life_id": 16,
"type": 1,
"uid": 5,
"content": "在我们的谷物威士忌中,有一种淡然的自信与柔情。这些特质,使得谷物威士忌无论是作为单一谷物威士忌或是作为调和威士忌的一部分",
"imgs": [
"http://192.168.1.173/uploads/user/file/2020-06-06/5edaf6f62d1e4.png",
"http://192.168.1.173/uploads/user/file/2020-06-06/5edaf7eca9e3b.png",
"http://192.168.1.173/uploads/user/file/2020-06-06/5edaf802c4239.png"
],
"address": "",
"longitude": "",
"latitude": "",
"comment_num": 0,
"collection_num": 0,
"points_num": 0,
"only_self": 2,
"created_at": "2020-05-20 17:56:02",
"updated_at": "2020-05-20 17:56:02",
"deleted_at": null,
"type_name": "求购",
"user": {
"uid": 5,
"avatar": "http://192.168.1.173/uploads/avatar/avatar.jpg",
"username": "186170048526554",
"nickname": "186170048526554",
"user_grade": 0,
"user_type": 0,
"user_auth": 0,
"user_grade_name": null,
"user_type_name": "用户",
"user_auth_name": "未认证"
}
}
],
"first_page_url": "http://192.168.1.173/module/alcohol/getUserLife?page=1",
"from": 1,
"last_page": 1,
"last_page_url": "http://192.168.1.173/module/alcohol/getUserLife?page=1",
"next_page_url": null,
"path": "http://192.168.1.173/module/alcohol/getUserLife",
"per_page": 15,
"prev_page_url": null,
"to": 1,
"total": 1
}
}
获取商圈详情
GET {{base_url}}/life/16
Header
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
Authorization |
string | 1 | bearer {{token}} |
返回示例
{
"status": 200,
"msg": "success",
"data": {
"life_id": 16,
"type": 1,
"uid": 5,
"title": "111",
"content": "222",
"imgs": null,
"address": "",
"longitude": "",
"latitude": "",
"pay_status": 0,
"comment_num": 0,
"collection_num": 0,
"points_num": 0,
"only_self": 2,
"created_at": "2020-05-20 17:56:02",
"updated_at": "2020-05-20 17:56:02",
"deleted_at": null,
"type_name": "求购",
"user": {
"uid": 5,
"avatar": "http://local.alcohol.com/uploads/avatar/avatar.jpg",
"username": "186170048526554",
"nickname": "186170048526554",
"user_grade": 0,
"user_type": 0,
"user_grade_name": null,
"user_type_name": "用户"
}
}
}
商圈–我的发布
GET {{base_url}}/getMyLife
Header
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
Authorization |
string | 1 | bearer {{token}} |
商圈点赞/取消点赞
POST {{base_url}}/life/like
Header
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
Authorization |
string | 1 | bearer {{token}} |
Body
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
life_id |
string | 1 |
返回示例
{
"status": 200,
"msg": "点赞成功"
}
商圈收藏/取消收藏
POST {{base_url}}/life/collection
Header
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
Authorization |
string | 1 | bearer {{token}} |
Body
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
life_id |
string | 1 |
返回示例
{
"status": 200,
"msg": "收藏成功"
}
会员中心
获取会员套餐
GET {{base_url}}/user/getMemberVipItems
Query
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
type |
string | 1 | 套餐类型 1会员 2超级会员 | 1 |
Header
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
Authorization |
string | 1 | bearer {{token}} |
返回示例
{
"status": 200,
"msg": "success",
"data": [
{
"id": 1,
"name": "月度会员",
"type": 1,
"original_price": "88.00",
"price": "30.00",
"days": 30,
"status": 1,
"created_at": "2020-05-26 11:00:48",
"updated_at": "2020-05-26 11:00:50"
},
{
"id": 2,
"name": "季度会员",
"type": 1,
"original_price": "198.00",
"price": "88.00",
"days": 90,
"status": 1,
"created_at": "2020-05-26 11:09:12",
"updated_at": "2020-05-26 11:09:56"
},
{
"id": 3,
"name": "年度会员",
"type": 1,
"original_price": "998.00",
"price": "456.00",
"days": 360,
"status": 1,
"created_at": "2020-05-26 11:09:10",
"updated_at": "2020-05-26 11:09:59"
}
]
}
开通VIP – 下单
POST {{base_url}}/user/openVip
Header
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
Authorization |
string | 1 | bearer {{token}} |
Body
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
id |
string | 1 |
返回示例
{
"status": 200,
"msg": "success",
"data": {
"order_no": "od1591586748116166",
"uid": 40,
"money": "30.00",
"pay_status": 0,
"orderable_id": 5,
"orderable_type": "App\\Http\\Controllers\\Module\\alcohol\\Models\\MemberVipRecord",
"updated_at": "2020-06-08 11:25:48",
"created_at": "2020-06-08 11:25:48",
"order_id": 10
}
}
首页
获取首页公告
GET {{base_url}}/getIndexNotice
返回示例
{
"status": 200,
"msg": "success",
"data": {
"id": 2,
"add_uid": 1,
"title": "公告2",
"content": "<p>公告内容 公告内容公告内容公告内容 </p>",
"qcid": 1,
"create_at": "2020-05-21 15:09:05",
"update_at": "2020-05-21 15:09:05",
"seo_keywords": "",
"seo_description": ""
}
}
首页导航
GET {{base_url}}/getNavigation
返回示例
{
"status": 200,
"msg": "success",
"data": [
{
"id": 11,
"name": "酒市行情",
"img": "http://192.168.1.173/uploads/user/file/2020-06-04/5ed89704cc17a.png",
"desc": null,
"url": "#",
"type": "self",
"is_self_support": 1,
"need_login": 2,
"is_company": 2,
"status": 1,
"order": 0,
"created_at": "2020-05-26 09:33:54",
"updated_at": "2020-06-04 14:39:01"
},
{
"id": 12,
"name": "酒业文化",
"img": "http://192.168.1.173/uploads/user/file/2020-05-26/5ecc721c32fbb.png",
"desc": null,
"url": "#",
"type": "self",
"is_self_support": 1,
"need_login": 2,
"is_company": 2,
"status": 1,
"order": 0,
"created_at": "2020-05-26 09:34:28",
"updated_at": "2020-05-26 09:34:28"
},
{
"id": 13,
"name": "酒业资讯",
"img": "http://192.168.1.173/uploads/user/file/2020-05-26/5ecc72a075dda.png",
"desc": null,
"url": "#",
"type": "self",
"is_self_support": 1,
"need_login": 2,
"is_company": 2,
"status": 1,
"order": 0,
"created_at": "2020-05-26 09:34:54",
"updated_at": "2020-05-26 09:36:32"
},
{
"id": 14,
"name": "推荐商家",
"img": "http://192.168.1.173/uploads/user/file/2020-05-26/5ecc72b63f745.png",
"desc": null,
"url": "#",
"type": "self",
"is_self_support": 1,
"need_login": 2,
"is_company": 2,
"status": 1,
"order": 0,
"created_at": "2020-05-26 09:35:18",
"updated_at": "2020-05-26 09:36:54"
},
{
"id": 15,
"name": "求购出售",
"img": "http://192.168.1.173/uploads/user/file/2020-05-26/5ecc727694692.png",
"desc": null,
"url": "#",
"type": "self",
"is_self_support": 1,
"need_login": 2,
"is_company": 2,
"status": 1,
"order": 0,
"created_at": "2020-05-26 09:35:51",
"updated_at": "2020-05-26 09:35:51"
},
{
"id": 16,
"name": "会员中心",
"img": "http://192.168.1.173/uploads/user/file/2020-05-26/5ecc728becc72.png",
"desc": null,
"url": "#",
"type": "self",
"is_self_support": 1,
"need_login": 2,
"is_company": 2,
"status": 1,
"order": 0,
"created_at": "2020-05-26 09:36:17",
"updated_at": "2020-05-26 09:36:17"
}
]
}
公告详情
GET {{base_url}}/getNoticeDetail/2
返回示例
{
"status": 200,
"msg": "success",
"data": {
"id": 2,
"add_uid": 1,
"title": "公告2",
"content": "<p>公告内容 公告内容公告内容公告内容 </p>",
"qcid": 1,
"create_at": "2020-05-21 15:09:05",
"update_at": "2020-05-21 15:09:05",
"seo_keywords": "",
"seo_description": ""
}
}
公告列表
GET {{base_url}}/getNoticeList
返回示例
{
"status": 200,
"msg": "success",
"data": {
"current_page": 1,
"data": [
{
"id": 3,
"add_uid": null,
"title": "年度葡萄酒展会开展进度",
"content": "<p>年度葡萄酒展会开展进度年度葡萄酒展会开展进度年度葡萄酒展会开展进度<br data-mce-bogus=\"1\"></p>",
"qcid": 1,
"create_at": "2020-06-08 10:48:22",
"update_at": "2020-06-08 10:48:22",
"seo_keywords": "",
"seo_description": ""
},
{
"id": 2,
"add_uid": 1,
"title": "公告2",
"content": "公告内容 公告内容公告内容公告内容",
"qcid": 1,
"create_at": "2020-06-05 16:50:32",
"update_at": "2020-06-05 16:50:32",
"seo_keywords": "",
"seo_description": ""
},
{
"id": 1,
"add_uid": 1,
"title": "公告1",
"content": "公告内容公告内容公告内容公告内容",
"qcid": 1,
"create_at": "2020-06-05 16:50:27",
"update_at": "2020-06-05 16:50:27",
"seo_keywords": "",
"seo_description": ""
}
],
"first_page_url": "http://192.168.1.173/module/alcohol/getNoticeList?page=1",
"from": 1,
"last_page": 1,
"last_page_url": "http://192.168.1.173/module/alcohol/getNoticeList?page=1",
"next_page_url": null,
"path": "http://192.168.1.173/module/alcohol/getNoticeList",
"per_page": 15,
"prev_page_url": null,
"to": 3,
"total": 3
}
}
商家推荐
GET {{base_url}}/shop/recommendShopList
Header
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
Authorization |
string | 1 | bearer {{token}} |
返回示例
{
"status": 200,
"msg": "success",
"data": [
[
{
"shop_id": 1,
"uid": 3,
"phone": "18617004850",
"shop_name": "一号店",
"shop_logo": "http://192.168.1.173/uploads/user/file/2020-05-25/5ecb8709e1b13.jpg",
"shop_describe": "一号店描述",
"shop_lightspot": [
"亮点1",
"亮点2",
"亮点3"
],
"shop_address": "一号店地址啊",
"longitude": "123",
"latitude": "456",
"license_img": "http://192.168.1.173/uploads/user/file/2020-05-25/5ecb8709e1b13.jpg",
"email": null,
"telephone": null,
"wechat": null,
"star": 5,
"sales": 0,
"shop_notices": "",
"status": 1,
"msg": "",
"created_at": "2020-05-21 11:33:02",
"updated_at": "2020-05-27 16:06:40",
"status_name": "审核通过"
},
{
"shop_id": 2,
"uid": 33,
"phone": "18617004800",
"shop_name": "人头马",
"shop_logo": "http://192.168.1.173/uploads/user/file/2020-06-05/5ed9f16247ff4.png",
"shop_describe": "人头马",
"shop_lightspot": [
"亮点1",
"亮点2",
"亮点3"
],
"shop_address": "人头马",
"longitude": "123",
"latitude": "456",
"license_img": "http://192.168.1.173/uploads/user/file/2020-06-05/5ed9f16247ff4.png",
"email": null,
"telephone": null,
"wechat": null,
"star": 5,
"sales": 0,
"shop_notices": "",
"status": 1,
"msg": "",
"created_at": "2020-06-05 15:17:13",
"updated_at": "2020-06-05 15:23:43",
"status_name": "审核通过"
},
{
"shop_id": 3,
"uid": 34,
"phone": "18617004801",
"shop_name": "威士忌",
"shop_logo": "http://192.168.1.173/uploads/user/file/2020-06-05/5ed9f16247ff4.png",
"shop_describe": "威士忌",
"shop_lightspot": [
"亮点1",
"亮点2",
"亮点3"
],
"shop_address": "威士忌",
"longitude": "123",
"latitude": "456",
"license_img": "http://192.168.1.173/uploads/user/file/2020-06-05/5ed9f16247ff4.png",
"email": null,
"telephone": null,
"wechat": null,
"star": 5,
"sales": 0,
"shop_notices": "",
"status": 1,
"msg": "",
"created_at": "2020-06-05 15:17:57",
"updated_at": "2020-06-05 15:23:43",
"status_name": "审核通过"
},
{
"shop_id": 4,
"uid": 35,
"phone": "18617004802",
"shop_name": "葡萄酒",
"shop_logo": "http://192.168.1.173/uploads/user/file/2020-06-05/5ed9f16247ff4.png",
"shop_describe": "葡萄酒",
"shop_lightspot": [
"亮点1",
"亮点2",
"亮点3"
],
"shop_address": "葡萄酒",
"longitude": "123",
"latitude": "456",
"license_img": "http://192.168.1.173/uploads/user/file/2020-06-05/5ed9f16247ff4.png",
"email": null,
"telephone": null,
"wechat": null,
"star": 5,
"sales": 0,
"shop_notices": "",
"status": 1,
"msg": "",
"created_at": "2020-06-05 15:18:31",
"updated_at": "2020-06-05 15:23:43",
"status_name": "审核通过"
}
],
[
{
"shop_id": 5,
"uid": 36,
"phone": "18617004803",
"shop_name": "茅台",
"shop_logo": "http://192.168.1.173/uploads/user/file/2020-06-05/5ed9f16247ff4.png",
"shop_describe": "茅台",
"shop_lightspot": [
"亮点1",
"亮点2",
"亮点3"
],
"shop_address": "茅台",
"longitude": "123",
"latitude": "456",
"license_img": "http://192.168.1.173/uploads/user/file/2020-06-05/5ed9f16247ff4.png",
"email": null,
"telephone": null,
"wechat": null,
"star": 5,
"sales": 0,
"shop_notices": "",
"status": 1,
"msg": "",
"created_at": "2020-06-05 15:19:09",
"updated_at": "2020-06-05 15:23:43",
"status_name": "审核通过"
},
{
"shop_id": 6,
"uid": 37,
"phone": "18617004804",
"shop_name": "生肖茅台",
"shop_logo": "http://192.168.1.173/uploads/user/file/2020-06-05/5ed9f16247ff4.png",
"shop_describe": "生肖茅台",
"shop_lightspot": [
"亮点1",
"亮点2",
"亮点3"
],
"shop_address": "生肖茅台",
"longitude": "123",
"latitude": "456",
"license_img": "http://192.168.1.173/uploads/user/file/2020-06-05/5ed9f16247ff4.png",
"email": null,
"telephone": null,
"wechat": null,
"star": 5,
"sales": 0,
"shop_notices": "",
"status": 1,
"msg": "",
"created_at": "2020-06-05 15:20:19",
"updated_at": "2020-06-05 15:23:43",
"status_name": "审核通过"
},
{
"shop_id": 7,
"uid": 38,
"phone": "18617004805",
"shop_name": "白酒",
"shop_logo": "http://192.168.1.173/uploads/user/file/2020-06-05/5ed9f16247ff4.png",
"shop_describe": "白酒",
"shop_lightspot": [
"亮点1",
"亮点2",
"亮点3"
],
"shop_address": "白酒",
"longitude": "123",
"latitude": "456",
"license_img": "http://192.168.1.173/uploads/user/file/2020-06-05/5ed9f16247ff4.png",
"email": null,
"telephone": null,
"wechat": null,
"star": 5,
"sales": 0,
"shop_notices": "",
"status": 1,
"msg": "",
"created_at": "2020-06-05 15:21:14",
"updated_at": "2020-06-05 15:23:43",
"status_name": "审核通过"
},
{
"shop_id": 8,
"uid": 39,
"phone": "18617004806",
"shop_name": "普通茅台",
"shop_logo": "http://192.168.1.173/uploads/user/file/2020-06-05/5ed9f16247ff4.png",
"shop_describe": "普通茅台",
"shop_lightspot": [
"亮点1",
"亮点2",
"亮点3"
],
"shop_address": "普通茅台",
"longitude": "123",
"latitude": "456",
"license_img": "http://192.168.1.173/uploads/user/file/2020-06-05/5ed9f16247ff4.png",
"email": null,
"telephone": null,
"wechat": null,
"star": 5,
"sales": 0,
"shop_notices": "",
"status": 1,
"msg": "",
"created_at": "2020-06-05 15:22:08",
"updated_at": "2020-06-05 15:23:43",
"status_name": "审核通过"
}
],
[
{
"shop_id": 9,
"uid": 40,
"phone": "18617004807",
"shop_name": "唐宫悦",
"shop_logo": "http://192.168.1.173/uploads/user/file/2020-06-05/5ed9f16247ff4.png",
"shop_describe": "唐宫悦",
"shop_lightspot": [
"亮点1",
"亮点2",
"亮点3"
],
"shop_address": "唐宫悦",
"longitude": "123",
"latitude": "456",
"license_img": "http://192.168.1.173/uploads/user/file/2020-06-05/5ed9f16247ff4.png",
"email": null,
"telephone": null,
"wechat": null,
"star": 5,
"sales": 0,
"shop_notices": "",
"status": 1,
"msg": "",
"created_at": "2020-06-05 15:23:00",
"updated_at": "2020-06-05 15:23:43",
"status_name": "审核通过"
}
]
]
}
商家
商家列表
GET {{base_url}}/shop/shopList
返回示例
{
"status": 200,
"msg": "success",
"data": {
"current_page": 1,
"data": [
{
"shop_id": 1,
"uid": 3,
"phone": "18617004850",
"shop_name": "一号店",
"shop_logo": "license_img.jpg",
"shop_describe": "一号店描述",
"shop_lightspot": null,
"shop_address": "一号店地址",
"longitude": "123",
"latitude": "456",
"license_img": "license_img.jpg",
"email": null,
"telephone": null,
"wechat": null,
"star": 5,
"monthly_sale": 0,
"shop_notices": "",
"status": 1,
"msg": "",
"created_at": "2020-05-21 11:33:02",
"updated_at": "2020-05-21 11:33:02",
"status_name": "审核通过"
}
],
"first_page_url": "http://local.alcohol.com/module/alcohol/shop/shopList?page=1",
"from": 1,
"last_page": 1,
"last_page_url": "http://local.alcohol.com/module/alcohol/shop/shopList?page=1",
"next_page_url": null,
"path": "http://local.alcohol.com/module/alcohol/shop/shopList",
"per_page": 6,
"prev_page_url": null,
"to": 1,
"total": 1
}
}
商家详情
GET {{base_url}}/shop/shopDetail
Query
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
shop_id |
string | 1 |
Header
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
Authorization |
string | 1 |
返回示例
{
"status": 200,
"msg": "success",
"data": {
"shop_id": 1,
"uid": 3,
"phone": "18617004850",
"shop_name": "一号店",
"shop_logo": "http://192.168.1.173/uploads/user/file/2020-06-05/5ed9f16247ff4.png",
"shop_describe": "一号店描述",
"shop_lightspot": [
"亮点1",
"亮点2",
"亮点3"
],
"shop_address": "一号店地址啊",
"longitude": "123",
"latitude": "456",
"license_img": "http://192.168.1.173/uploads/user/file/2020-06-05/5ed9f16247ff4.png",
"email": null,
"telephone": null,
"wechat": null,
"star": 5,
"sales": 0,
"shop_notices": "",
"status": 1,
"msg": "",
"created_at": "2020-05-21 11:33:02",
"updated_at": "2020-05-27 16:06:40",
"is_collection": 1,
"status_name": "审核通过"
}
}
是否可申请商家
GET {{base_url}}/shop/canStoreShop
Header
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
Authorization |
string | 1 | bearer {{token}} |
详细说明
返回200表示可申请 其他不可申请
返回示例
{
"status": 200,
"msg": "success",
"data": null
}
申请商家
POST {{base_url}}/shop/storeShop
Header
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
Authorization |
string | 1 | bearer {{token}} |
Body
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
phone |
string | 1 | ||
shop_name |
string | 1 | ||
shop_logo |
string | 1 | ||
shop_describe |
string | 1 | ||
shop_lightspot[0] |
string | 1 | ||
shop_lightspot[1] |
string | 1 | ||
shop_lightspot[2] |
string | 1 | ||
shop_address |
string | 1 | ||
longitude |
string | 1 | ||
latitude |
string | 1 | ||
license_img |
string | 1 | ||
email |
string | 1 | ||
telephone |
string | 1 | ||
wechat |
string | 1 |
返回示例
{
"status": 200,
"msg": "申请成功",
"data": {
"uid": 3,
"phone": "18617004850",
"shop_name": "一号店",
"shop_logo": "license_img.jpg",
"shop_describe": "一号店描述",
"shop_lightspot": [
"亮点1",
"亮点2",
"亮点3"
],
"shop_address": "一号店地址",
"longitude": "123",
"latitude": "456",
"license_img": "license_img.jpg",
"status": 0,
"updated_at": "2020-05-21 11:33:02",
"created_at": "2020-05-21 11:33:02",
"shop_id": 1,
"status_name": "待审核"
}
}
编辑商家资料
POST {{base_url}}/shop/updateShop
Header
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
Authorization |
string | 1 | bearer {{token}} |
Body
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
phone |
string | 1 | 18617004850 | |
shop_name |
string | 1 | 一号店 | |
shop_logo |
string | 1 | license_img.jpg | |
shop_describe |
string | 1 | 一号店描述 | |
shop_lightspot[0] |
string | 1 | 亮点1 | |
shop_lightspot[1] |
string | 1 | 亮点2 | |
shop_lightspot[2] |
string | 1 | 亮点3 | |
shop_address |
string | 1 | 一号店地址 | |
longitude |
string | 1 | 123 | |
latitude |
string | 1 | 456 | |
email |
string | 1 | ||
telephone |
string | 1 | ||
wechat |
string | 1 |
返回示例
{
"status": 200,
"msg": "success",
"data": null
}
商家商品列表
GET {{base_url}}/shop/getShoperGoods
Header
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
Authorization |
string | 1 |
返回示例
{
"status": 200,
"msg": "success",
"data": {
"current_page": 1,
"data": [
{
"goods_id": 3,
"goods_name": "人头马2中国区授权",
"category_id": 4,
"stock": 0,
"goods_no": "gn2020052716341eb1g",
"status": 1,
"cover": [
"http://local.alcohol.com/uploads/user/file/2020-05-25/5ecb8709e1b13.jpg"
],
"describe": [
"http://local.alcohol.com/uploads/user/file/2020-05-25/5ecb8709e1b13.jpg"
],
"price": "3999.00",
"discount_price": "0.00",
"lightspot": [
"亮点1",
"亮点2",
"亮点3"
],
"freight_mode": 1,
"visit_count": 0,
"virtual_sales": 0,
"sales": 0,
"is_recommend": 0,
"shop_id": 1,
"shop_name": "一号店",
"property": null,
"link": null,
"brand": null,
"created_at": "2020-05-27 16:34:24",
"updated_at": "2020-05-27 16:41:52",
"deleted_at": null,
"status_name": "上架"
},
{
"goods_id": 2,
"goods_name": "人头马1中国区授权",
"category_id": 4,
"stock": 0,
"goods_no": "gn202005271630103gg",
"status": 1,
"cover": [
"http://local.alcohol.com/uploads/user/file/2020-05-25/5ecb8709e1b13.jpg"
],
"describe": [
"http://local.alcohol.com/uploads/user/file/2020-05-25/5ecb8709e1b13.jpg"
],
"price": "2999.00",
"discount_price": "0.00",
"lightspot": [
"亮点1",
"亮点2",
"亮点3"
],
"freight_mode": 1,
"visit_count": 0,
"virtual_sales": 0,
"sales": 0,
"is_recommend": 0,
"shop_id": 1,
"shop_name": "一号店",
"property": null,
"link": null,
"brand": null,
"created_at": "2020-05-27 16:30:39",
"updated_at": "2020-05-27 16:41:46",
"deleted_at": null,
"status_name": "上架"
}
],
"first_page_url": "http://local.alcohol.com/module/alcohol/shop/getShoperGoods?page=1",
"from": 1,
"last_page": 1,
"last_page_url": "http://local.alcohol.com/module/alcohol/shop/getShoperGoods?page=1",
"next_page_url": null,
"path": "http://local.alcohol.com/module/alcohol/shop/getShoperGoods",
"per_page": 15,
"prev_page_url": null,
"to": 2,
"total": 2
}
}
商家商品详情
GET {{base_url}}/shop/showGoods/2
Header
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
Authorization |
string | 1 |
返回示例
{
"status": 200,
"msg": "success",
"data": {
"goods_id": 2,
"goods_name": "人头马1中国区授权",
"category_id": 4,
"stock": 0,
"goods_no": "gn202005271630103gg",
"status": 1,
"cover": [
"http://local.alcohol.com/uploads/user/file/2020-05-25/5ecb8709e1b13.jpg"
],
"describe": [
"http://local.alcohol.com/uploads/user/file/2020-05-25/5ecb8709e1b13.jpg"
],
"price": "2999.00",
"discount_price": "0.00",
"lightspot": [
"亮点1",
"亮点2",
"亮点3"
],
"freight_mode": 1,
"visit_count": 0,
"virtual_sales": 0,
"sales": 0,
"is_recommend": 0,
"shop_id": 1,
"shop_name": "一号店",
"property": null,
"link": null,
"brand": null,
"created_at": "2020-05-27 16:30:39",
"updated_at": "2020-05-27 16:41:46",
"deleted_at": null,
"cate_ids": [],
"status_name": "上架"
}
}
发布商品
POST {{base_url}}/shop/storeGoods
Header
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
Authorization |
string | 1 | bearer {{token}} |
Body
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
goods_name |
string | 1 | 商品名称 | |
category_id |
integer | 1 | 商品分类 | |
cover[0] |
array | 1 | 商品封面图数组 | |
describe[0] |
array | 1 | 商品详情图数组 | |
price |
number | 1 | 价格 | |
discount_price |
number | 0 | 活动价 | |
lightspot[0] |
array | 0 | 亮点 | |
lightspot[1] |
string | 1 | ||
lightspot[2] |
string | 1 |
返回示例
{
"status": 200,
"msg": "添加商品成功",
"data": {
"goods_name": "人头马1中国区授权",
"category_id": "4",
"cover": [
"http://local.alcohol.com/uploads/user/file/2020-05-25/5ecb8709e1b13.jpg"
],
"describe": [
"http://local.alcohol.com/uploads/user/file/2020-05-25/5ecb8709e1b13.jpg"
],
"price": "2599",
"lightspot": [
"亮点1",
"亮点2",
"亮点3"
],
"shop_id": 1,
"shop_name": "一号店",
"status": 1,
"goods_no": "gn2020052716341eb1g",
"updated_at": "2020-05-27 16:34:24",
"created_at": "2020-05-27 16:34:24",
"goods_id": 3,
"status_name": "上架"
}
}
编辑商品
POST {{base_url}}/shop/updateGoods/3
Header
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
Authorization |
string | 1 | bearer {{token}} |
Body
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
goods_name |
string | 1 | 商品名称 | |
category_id |
integer | 1 | 商品分类 | |
cover[0] |
array | 1 | 商品封面图数组 | |
describe[0] |
array | 1 | 商品详情图数组 | |
price |
number | 1 | 价格 | |
discount_price |
number | 0 | 活动价 | |
lightspot[0] |
array | 0 | 亮点 | |
lightspot[1] |
string | 1 | ||
lightspot[2] |
string | 1 |
返回示例
{
"status": 200,
"msg": "更新商品成功",
"data": true
}
商品批量上下架
POST {{base_url}}/shop/changeBatchUp
Header
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
Authorization |
string | 1 | bearer {{token}} |
Body
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
goods_ids[0] |
string | 1 | 商品ID数组 | 2 |
status |
string | 1 | 上下架状态 | 1 |
返回示例
{
"status": 200,
"msg": "操作成功",
"data": null
}
商品批量删除
POST {{base_url}}/shop/batchDeleteGoods
Header
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
Authorization |
string | 1 | bearer {{token}} |
Body
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
goods_ids[0] |
string | 1 | 商品ID数组 | 2 |
返回示例
{
"status": 200,
"msg": "删除成功",
"data": null
}
关注/取消关注商家
POST {{base_url}}/shop/collection
Header
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
Authorization |
string | 1 | bearer {{token}} |
Body
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
shop_id |
string | 1 | 1 |
返回示例
{
"status": 200,
"msg": "关注成功"
}
商家商品区
GET {{base_url}}/shop/getShopGoods
Query
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
shop_id |
string | 1 |
返回示例
{
"status": 200,
"msg": "success",
"data": {
"current_page": 1,
"data": [
{
"goods_id": 3,
"goods_name": "人头马2中国区授权",
"category_id": 4,
"stock": 0,
"goods_no": "gn2020052716341eb1g",
"status": 1,
"cover": [
"http://local.alcohol.com/uploads/user/file/2020-05-25/5ecb8709e1b13.jpg"
],
"describe": [
"http://local.alcohol.com/uploads/user/file/2020-05-25/5ecb8709e1b13.jpg"
],
"price": "3999.00",
"discount_price": "0.00",
"lightspot": [
"亮点1",
"亮点2",
"亮点3"
],
"freight_mode": 1,
"visit_count": 0,
"virtual_sales": 0,
"sales": 0,
"is_recommend": 0,
"shop_id": 1,
"shop_name": "一号店",
"property": null,
"link": null,
"brand": null,
"created_at": "2020-05-27 16:34:24",
"updated_at": "2020-05-27 16:41:52",
"deleted_at": null,
"status_name": "上架"
}
],
"first_page_url": "http://local.alcohol.com/module/alcohol/shop/getShopGoods?page=1",
"from": 1,
"last_page": 1,
"last_page_url": "http://local.alcohol.com/module/alcohol/shop/getShopGoods?page=1",
"next_page_url": null,
"path": "http://local.alcohol.com/module/alcohol/shop/getShopGoods",
"per_page": 15,
"prev_page_url": null,
"to": 1,
"total": 1
}
}
获取商家商圈
GET {{base_url}}/shop/getShopLife
Query
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
shop_id |
string | 1 | 1 | |
type |
string | 1 | 商圈类型 1求购2出售 | 1 |
返回示例
{
"status": 200,
"msg": "success",
"data": {
"current_page": 1,
"data": [
{
"life_id": 17,
"type": 1,
"uid": 3,
"content": "444",
"imgs": null,
"address": "",
"longitude": "",
"latitude": "",
"comment_num": 0,
"collection_num": 0,
"points_num": 0,
"only_self": 2,
"created_at": "2020-05-20 18:22:16",
"updated_at": "2020-05-20 18:22:16",
"deleted_at": null,
"type_name": "求购",
"user": {
"uid": 3,
"avatar": "http://local.alcohol.com/uploads/avatar/avatar.jpg",
"username": "哇哈哈哈哈",
"nickname": "186170048506873",
"user_grade": 0,
"user_type": 1,
"user_auth": 1,
"user_grade_name": null,
"user_type_name": "商家",
"user_auth_name": "实名认证"
}
}
],
"first_page_url": "http://local.alcohol.com/module/alcohol/shop/getShopLife?page=1",
"from": 1,
"last_page": 1,
"last_page_url": "http://local.alcohol.com/module/alcohol/shop/getShopLife?page=1",
"next_page_url": null,
"path": "http://local.alcohol.com/module/alcohol/shop/getShopLife",
"per_page": 15,
"prev_page_url": null,
"to": 1,
"total": 1
}
}
酒业资讯
获取头条资讯
GET {{base_url}}/getRecInformationList
获取资讯详情
GET {{base_url}}/getInformationDetail
Query
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
id |
string | 1 |
返回示例
{
"status": 200,
"msg": "success",
"data": {
"id": 1,
"title": "强强联手开创威士忌新格局",
"tags": null,
"cover": "article/2020-05-22/5ec7415fe3180.jpg",
"introduct": null,
"content": "<p>强强联手开创威士忌新格局强强联手开创威士忌新格局强强联手开创威士忌新格局强强联手开创威士忌新格局</p>",
"cid": 1,
"create_at": "2020-05-22 11:05:04",
"update_at": null,
"is_hot": 0,
"is_rec": 0,
"seo_keywords": "",
"seo_description": ""
}
}
获取资讯列表
GET {{base_url}}/getInformationList
返回示例
{
"status": 200,
"msg": "success",
"data": {
"current_page": 1,
"data": [
{
"id": 1,
"title": "强强联手开创威士忌新格局",
"tags": null,
"cover": "article/2020-05-22/5ec7415fe3180.jpg",
"introduct": null,
"content": "<p>强强联手开创威士忌新格局强强联手开创威士忌新格局强强联手开创威士忌新格局强强联手开创威士忌新格局</p>",
"cid": 1,
"create_at": "2020-05-22 11:05:04",
"update_at": null,
"is_hot": 0,
"is_rec": 0,
"seo_keywords": "",
"seo_description": ""
}
],
"first_page_url": "http://local.alcohol.com/module/alcohol/getInformationList?page=1",
"from": 1,
"last_page": 1,
"last_page_url": "http://local.alcohol.com/module/alcohol/getInformationList?page=1",
"next_page_url": null,
"path": "http://local.alcohol.com/module/alcohol/getInformationList",
"per_page": 15,
"prev_page_url": null,
"to": 1,
"total": 1
}
}
资讯收藏/取消收藏
POST {{base_url}}/information/collection
Header
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
Authorization |
string | 1 |
Body
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
id |
string | 1 |
返回示例
{
"status": 200,
"msg": "收藏成功"
}
评论模块
获取评论
GET {{base_url}}/getComments
Query
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
id |
string | 1 | 评论主体ID | 1 |
type |
string | 1 | 评论主体类型 | 1 |
返回示例
{
"status": 200,
"msg": "success",
"data": {
"current_page": 1,
"data": [
{
"id": 1,
"commentable_id": 1,
"commentable_type": "App\\Http\\Controllers\\Module\\alcohol\\Models\\Article",
"uid": 3,
"content": "内容内容",
"pid": 0,
"to_comment_id": 0,
"to_user_id": 0,
"read_status": 0,
"created_at": "2020-05-22 16:17:48",
"updated_at": "2020-05-22 16:17:48",
"children_count": 2
}
],
"first_page_url": "http://local.alcohol.com/module/alcohol/getComments?page=1",
"from": 1,
"last_page": 1,
"last_page_url": "http://local.alcohol.com/module/alcohol/getComments?page=1",
"next_page_url": null,
"path": "http://local.alcohol.com/module/alcohol/getComments",
"per_page": 15,
"prev_page_url": null,
"to": 1,
"total": 1
}
}
评论
POST {{base_url}}/comment
Query
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
comment_id |
string | 1 | 评论主体ID | 1 |
Header
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
Authorization |
string | 1 | bearer {{token}} |
Body
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
id |
string | 1 | 评论主体ID | 1 |
type |
string | 1 | 评论主体类型 | 1 |
comment_content |
string | 1 | 评论内容 | gssgsgsgsg |
comment_id |
string | 0 | 评论ID 如果携带该参数 表示是对评论的评论 不携带表示是评论主体(商圈) | 0 |
返回示例
{
"status": 200,
"msg": "success",
"data": null
}
获取子评论
GET {{base_url}}/getChildrenComments
Query
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
comment_id |
string | 1 | 评论主体ID | 1 |
返回示例
{
"status": 200,
"msg": "success",
"data": {
"current_page": 1,
"data": [
{
"id": 2,
"commentable_id": 1,
"commentable_type": "App\\Http\\Controllers\\Module\\alcohol\\Models\\Article",
"uid": 3,
"content": "内容内容aaaaaaaaaaa",
"pid": 1,
"to_comment_id": 0,
"to_user_id": 0,
"read_status": 0,
"created_at": "2020-05-22 16:18:26",
"updated_at": "2020-05-22 16:18:26"
},
{
"id": 3,
"commentable_id": 1,
"commentable_type": "App\\Http\\Controllers\\Module\\alcohol\\Models\\Article",
"uid": 3,
"content": "内容内容aaaabbbbbbbbbbbbb",
"pid": 1,
"to_comment_id": 0,
"to_user_id": 0,
"read_status": 0,
"created_at": "2020-05-22 16:18:43",
"updated_at": "2020-05-22 16:18:43"
}
],
"first_page_url": "http://local.alcohol.com/module/alcohol/getChildrenComments?page=1",
"from": 1,
"last_page": 1,
"last_page_url": "http://local.alcohol.com/module/alcohol/getChildrenComments?page=1",
"next_page_url": null,
"path": "http://local.alcohol.com/module/alcohol/getChildrenComments",
"per_page": 15,
"prev_page_url": null,
"to": 2,
"total": 2
}
}
广告
发布广告
POST {{base_url}}/adv/storeAdv
Header
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
Authorization |
string | 1 |
Body
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
location_id |
string | 1 | ||
imgurl |
string | 1 | ||
tourl |
string | 1 |
返回示例
{
"status": 200,
"msg": "success",
"data": {
"order_no": "od1591177274033114",
"uid": 3,
"money": "200.00",
"pay_status": 0,
"orderable_id": 57,
"orderable_type": "App\\Http\\Controllers\\Module\\alcohol\\Models\\Adv",
"updated_at": "2020-06-03 17:41:14",
"created_at": "2020-06-03 17:41:14",
"order_id": 8
}
}
获取广告
GET {{base_url}}/adv/getAdv
Query
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
location_id |
string | 1 | 1 |
Header
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
Authorization |
string | 1 | bearer {{token}} |
返回示例
{
"status": 200,
"msg": "success",
"data": [
{
"id": 55,
"uid": 3,
"imgurl": "http://192.168.1.173/uploads/user/file/2020-05-25/5ecb87497dc4d.jpg",
"location_id": 1,
"location_data": "{\"location_id\":1,\"location_name\":\"\\u9996\\u9875\\u5de6\\u4fa7\",\"number\":1,\"price\":\"200.00\",\"status\":1,\"days\":30,\"order\":0,\"created_at\":null,\"updated_at\":null}",
"tourl": "#",
"status": 1,
"start_time": "2020-06-05 13:49:55",
"end_time": "2020-07-01 13:50:07",
"created_at": "2020-05-21 18:02:01",
"updated_at": "2020-05-21 18:02:01"
}
]
}
获取广告位置信息
GET {{base_url}}/adv/getAdvLocation
Header
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
Authorization |
string | 1 |
返回示例
{
"status": 200,
"msg": "success",
"data": [
{
"location_id": 1,
"location_name": "首页左侧",
"number": 1,
"price": "200.00",
"status": 1,
"days": 30,
"order": 0,
"created_at": null,
"updated_at": null
},
{
"location_id": 2,
"location_name": "首页右侧",
"number": 2,
"price": "100.00",
"status": 1,
"days": 30,
"order": 0,
"created_at": null,
"updated_at": null
}
]
}
个人中心
粉丝
我的关注
GET {{base_url}}/user/myFollow
Header
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
Authorization |
string | 1 |
返回示例
{
"status": 200,
"msg": "获取成功",
"data": {
"current_page": 1,
"data": [
{
"uid": 4,
"username": "186170048519451",
"avatar": "http://local.alcohol.com/uploads/avatar/avatar.jpg",
"created_at": "2020-05-22 12:01:43",
"follow_flag": true,
"follow_id": 3,
"follow_msg": "互相关注"
}
],
"first_page_url": "http://local.alcohol.com/module/alcohol/user/myFollow?page=1",
"from": 1,
"last_page": 1,
"last_page_url": "http://local.alcohol.com/module/alcohol/user/myFollow?page=1",
"next_page_url": null,
"path": "http://local.alcohol.com/module/alcohol/user/myFollow",
"per_page": 15,
"prev_page_url": null,
"to": 1,
"total": 1
}
}
关注/取消关注
POST {{base_url}}/user/follow
Header
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
Authorization |
string | 1 | bearer {{token}} |
Body
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
uid |
string | 1 | 4 |
返回示例
{
"status": 200,
"msg": "关注成功"
}
新粉丝
GET {{base_url}}/user/newFollowMe
Header
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
Authorization |
string | 1 |
返回示例
{
"status": 200,
"msg": "获取成功",
"data": {
"current_page": 1,
"data": [
{
"uid": 3,
"username": "186170048506873",
"avatar": "http://local.alcohol.com/uploads/avatar/avatar.jpg",
"created_at": "2020-05-22 13:50:20",
"follow_flag": false,
"follow_id": 5,
"follow_msg": "关注"
},
{
"uid": 3,
"username": "186170048506873",
"avatar": "http://local.alcohol.com/uploads/avatar/avatar.jpg",
"created_at": "2020-05-22 13:46:16",
"follow_flag": false,
"follow_id": 4,
"follow_msg": "关注"
}
],
"first_page_url": "http://local.alcohol.com/module/alcohol/user/newFollowMe?page=1",
"from": 1,
"last_page": 1,
"last_page_url": "http://local.alcohol.com/module/alcohol/user/newFollowMe?page=1",
"next_page_url": null,
"path": "http://local.alcohol.com/module/alcohol/user/newFollowMe",
"per_page": 15,
"prev_page_url": null,
"to": 2,
"total": 2
}
}
我的粉丝
GET {{base_url}}/user/followMe
Header
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
Authorization |
string | 1 |
返回示例
{
"status": 200,
"msg": "获取成功",
"data": {
"current_page": 1,
"data": [
{
"uid": 3,
"username": "186170048506873",
"avatar": "http://local.alcohol.com/uploads/avatar/avatar.jpg",
"created_at": "2020-05-22 13:50:20",
"follow_flag": false,
"follow_id": 5,
"follow_msg": "关注"
},
{
"uid": 3,
"username": "186170048506873",
"avatar": "http://local.alcohol.com/uploads/avatar/avatar.jpg",
"created_at": "2020-05-22 13:46:16",
"follow_flag": false,
"follow_id": 4,
"follow_msg": "关注"
}
],
"first_page_url": "http://local.alcohol.com/module/alcohol/user/followMe?page=1",
"from": 1,
"last_page": 1,
"last_page_url": "http://local.alcohol.com/module/alcohol/user/followMe?page=1",
"next_page_url": null,
"path": "http://local.alcohol.com/module/alcohol/user/followMe",
"per_page": 15,
"prev_page_url": null,
"to": 2,
"total": 2
}
}
查询是否已关注
GET {{base_url}}/user/findFollow
Query
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
uid |
string | 1 | 1 |
Header
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
Authorization |
string | 1 | bearer {{token}} |
返回示例
{
"status": 200,
"msg": "success",
"data": {
"is_follow": 0
}
}
参数名 | 类型 | 描述 |
---|---|---|
data.is_follow |
number | |
### 我的收藏 |
我的收藏
GET {{base_url}}/user/getMyCollection
Query
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
type |
string | 1 | 收藏主体类型 | 2 |
Header
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
Authorization |
string | 1 | bearer {{token}} |
返回示例
{
"status": 200,
"msg": "success",
"data": {
"current_page": 1,
"data": [
{
"id": 16,
"uid": 3,
"object_uid": 3,
"collectionable_id": 1,
"collectionable_type": "App\\Http\\Controllers\\Module\\alcohol\\Models\\Shop",
"read_status": 0,
"created_at": "2020-05-28 15:11:18",
"updated_at": "2020-05-28 15:11:18",
"collectionable": {
"shop_id": 1,
"uid": 3,
"phone": "18617004850",
"shop_name": "一号店",
"shop_logo": "http://local.alcohol.com/uploads/user/file/2020-05-25/5ecb8709e1b13.jpg",
"shop_describe": "一号店描述",
"shop_lightspot": [
"亮点1",
"亮点2",
"亮点3"
],
"shop_address": "一号店地址啊",
"longitude": "123",
"latitude": "456",
"license_img": "http://local.alcohol.com/uploads/user/file/2020-05-25/5ecb8709e1b13.jpg",
"email": null,
"telephone": null,
"wechat": null,
"star": 5,
"sales": 0,
"shop_notices": "",
"status": 1,
"msg": "",
"created_at": "2020-05-21 11:33:02",
"updated_at": "2020-05-27 16:06:40",
"status_name": "审核通过"
}
}
],
"first_page_url": "http://local.alcohol.com/module/alcohol/user/getMyCollection?page=1",
"from": 1,
"last_page": 1,
"last_page_url": "http://local.alcohol.com/module/alcohol/user/getMyCollection?page=1",
"next_page_url": null,
"path": "http://local.alcohol.com/module/alcohol/user/getMyCollection",
"per_page": 15,
"prev_page_url": null,
"to": 1,
"total": 1
}
}
参数名 | 类型 | 描述 |
---|---|---|
data.invite_code |
string | |
data.invite_url |
string | |
data.invite_user_count |
number | |
data.invite_user_integral |
string | |
### 我的地址 |
获取我的地址详情
GET {{base_url}}/user/address/104
Header
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
Authorization |
string | 1 | bearer {{token}} |
返回示例
{
"status": 200,
"msg": "success",
"data": {
"address_id": 104,
"uid": 3,
"province": "广东省",
"city": "深圳市",
"area": "龙岗区",
"address": "爱南路366号",
"contacts_name": "易鑫",
"phone": "18617004850",
"is_default": 1,
"created_at": "2020-05-22 10:19:39",
"updated_at": "2020-05-22 10:24:35"
}
}
设置默认收货地址
GET {{base_url}}/user/setDefaultAddress
Query
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
address_id |
string | 1 |
Header
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
Authorization |
string | 1 | bearer {{token}} |
返回示例
{
"status": 200,
"msg": "success",
"data": null
}
新增地址
POST {{base_url}}/user/address
Header
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
Authorization |
string | 1 | bearer {{token}} |
Body
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
province |
string | 1 | 广东省 | |
city |
string | 1 | 深圳市 | |
area |
string | 1 | 龙岗区 | |
address |
string | 1 | 爱南路377号 | |
contacts_name |
string | 1 | 易心心 | |
phone |
string | 1 | 18617004851 | |
is_default |
string | 1 | 0 |
返回示例
{
"status": 200,
"msg": "success",
"data": null
}
删除地址
DELETE {{base_url}}/user/address/106
Header
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
Authorization |
string | 1 | bearer {{token}} |
Body
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
city |
string | 1 | 深圳市 | |
area |
string | 1 | 龙岗区 | |
address |
string | 1 | 爱南路377号 | |
contacts_name |
string | 1 | 易心心 | |
phone |
string | 1 | 18617004851 | |
is_default |
string | 1 | 0 | |
_method |
string | 1 | put |
返回示例
{
"status": 200,
"msg": "success",
"data": null
}
修改地址
POST {{base_url}}/user/address/105
Header
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
Authorization |
string | 1 | bearer {{token}} |
Body
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
province |
string | 1 | ||
city |
string | 1 | ||
area |
string | 1 | ||
address |
string | 1 | ||
contacts_name |
string | 1 | ||
phone |
string | 1 | ||
is_default |
string | 1 | ||
_method |
string | 1 |
返回示例
{
"status": 200,
"msg": "success",
"data": null
}
获取我的地址列表
GET {{base_url}}/user/address
Header
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
Authorization |
string | 1 | bearer {{token}} |
返回示例
{
"status": 200,
"msg": "success",
"data": [
{
"address_id": 104,
"uid": 3,
"province": "广东省",
"city": "深圳市",
"area": "龙岗区",
"address": "爱南路366号",
"contacts_name": "易鑫",
"phone": "18617004850",
"is_default": 1,
"created_at": "2020-05-22 10:19:39",
"updated_at": "2020-05-22 10:24:35"
},
{
"address_id": 105,
"uid": 3,
"province": "广东省",
"city": "深圳市",
"area": "龙岗区",
"address": "爱南路377号",
"contacts_name": "易心心",
"phone": "18617004851",
"is_default": 0,
"created_at": "2020-05-22 10:21:21",
"updated_at": "2020-05-22 10:24:35"
}
]
}
会员中心
获取会员套餐
GET {{base_url}}/user/getMemberVipItems
Query
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
type |
string | 1 | 套餐类型 | 2 |
Header
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
Authorization |
string | 1 | bearer {{token}} |
返回示例
{
"status": 200,
"msg": "success",
"data": [
{
"id": 1,
"name": "月度会员",
"type": 1,
"original_price": "88.00",
"price": "30.00",
"days": 30,
"status": 1,
"created_at": "2020-05-26 11:00:48",
"updated_at": "2020-05-26 11:00:50"
},
{
"id": 2,
"name": "季度会员",
"type": 1,
"original_price": "198.00",
"price": "88.00",
"days": 90,
"status": 1,
"created_at": "2020-05-26 11:09:12",
"updated_at": "2020-05-26 11:09:56"
},
{
"id": 3,
"name": "年度会员",
"type": 1,
"original_price": "998.00",
"price": "456.00",
"days": 360,
"status": 1,
"created_at": "2020-05-26 11:09:10",
"updated_at": "2020-05-26 11:09:59"
}
]
}
参数名 | 类型 | 描述 |
---|---|---|
data.invite_code |
string | |
data.invite_url |
string | |
data.invite_user_count |
number | |
data.invite_user_integral |
string | |
### 消息通知 |
系统消息一键已读
GET {{base_url}}/user/batchReadMessage
Header
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
Authorization |
string | 1 | bearer {{token}} |
返回示例
{
"status": 200,
"msg": "success",
"data": null
}
参数名 | 类型 | 描述 |
---|---|---|
data.systemMessage |
number | |
data.fansMessage |
number | |
data.likeMessage |
number | |
data.collectionMessage |
number | |
data.commentMessage |
number | |
#### 获取提醒消息列表 | ||
` |
||
GET {{base_url}}/user/getRemindMessageList | ||
` |
Query
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
type |
string | 1 | 提醒类型 | 1 |
Header
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
Authorization |
string | 1 | bearer {{token}} |
返回示例
{
"status": 200,
"msg": "success",
"data": {
"current_page": 1,
"data": [
{
"id": 11,
"uid": 5,
"object_uid": 3,
"collectionable_id": 16,
"collectionable_type": "App\\Http\\Controllers\\Module\\alcohol\\Models\\LifeList",
"read_status": 0,
"created_at": "2020-05-22 17:28:32",
"updated_at": "2020-05-22 17:28:32",
"collectionable": {
"life_id": 16,
"type": 1,
"uid": 5,
"content": "222",
"imgs": null,
"address": "",
"longitude": "",
"latitude": "",
"comment_num": 0,
"collection_num": 0,
"points_num": 0,
"only_self": 2,
"created_at": "2020-05-20 17:56:02",
"updated_at": "2020-05-20 17:56:02",
"deleted_at": null,
"type_name": "求购"
}
}
],
"first_page_url": "http://local.alcohol.com/module/alcohol/user/getRemindMessageList?page=1",
"from": 1,
"last_page": 1,
"last_page_url": "http://local.alcohol.com/module/alcohol/user/getRemindMessageList?page=1",
"next_page_url": null,
"path": "http://local.alcohol.com/module/alcohol/user/getRemindMessageList",
"per_page": 15,
"prev_page_url": null,
"to": 1,
"total": 1
}
}
参数名 | 类型 | 描述 |
---|---|---|
data.systemMessage |
number | |
data.fansMessage |
number | |
data.likeMessage |
number | |
data.collectionMessage |
number | |
data.commentMessage |
number | |
data.data.collectionable |
object | |
#### 获取系统信息详情并标记已读 | ||
` |
||
GET {{base_url}}/user/readSystemMessage | ||
` |
Query
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
id |
string | 1 |
Header
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
Authorization |
string | 1 | bearer {{token}} |
返回示例
{
"status": 200,
"msg": "更新成功",
"data": {
"id": 1,
"title": "注册成功",
"content": "恭喜您,用户注册成功",
"uid": 0,
"receive_uid": 3,
"status": 1,
"created_at": "2020-05-26 15:18:19",
"updated_at": "2020-05-26 15:18:19"
}
}
参数名 | 类型 | 描述 |
---|---|---|
data.systemMessage |
number | |
data.fansMessage |
number | |
data.likeMessage |
number | |
data.collectionMessage |
number | |
data.commentMessage |
number | |
#### 获取系统消息通知列表 | ||
` |
||
GET {{base_url}}/user/getSystemMessageList | ||
` |
Header
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
Authorization |
string | 1 | bearer {{token}} |
返回示例
{
"status": 200,
"msg": "success",
"data": {
"current_page": 1,
"data": [
{
"id": 1,
"title": "注册成功",
"content": "恭喜您,用户注册成功",
"uid": 0,
"receive_uid": 3,
"status": 1,
"created_at": "2020-05-26 15:18:19",
"updated_at": "2020-05-26 15:18:19"
}
],
"first_page_url": "http://local.alcohol.com/module/alcohol/user/getSystemMessageList?page=1",
"from": 1,
"last_page": 1,
"last_page_url": "http://local.alcohol.com/module/alcohol/user/getSystemMessageList?page=1",
"next_page_url": null,
"path": "http://local.alcohol.com/module/alcohol/user/getSystemMessageList",
"per_page": 15,
"prev_page_url": null,
"to": 1,
"total": 1
}
}
参数名 | 类型 | 描述 |
---|---|---|
data.systemMessage |
number | |
data.fansMessage |
number | |
data.likeMessage |
number | |
data.collectionMessage |
number | |
data.commentMessage |
number | |
#### 获取消息未读条数 | ||
` |
||
GET {{base_url}}/user/getMessageCount | ||
` |
Header
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
Authorization |
string | 1 | bearer {{token}} |
返回示例
{
"status": 200,
"msg": "success",
"data": {
"commentMessage": 0,
"collectionMessage": 0,
"likeMessage": 0,
"fansMessage": 2,
"systemMessage": 0,
"count": 2
}
}
参数名 | 类型 | 描述 |
---|---|---|
data.systemMessage |
number | |
data.fansMessage |
number | |
data.likeMessage |
number | |
data.collectionMessage |
number | |
data.commentMessage |
number | |
### 签到 |
获取钱包资产流水记录
GET {{base_url}}/user/getWalletLogs
Query
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
rich_type |
string | 1 | 资产类型 | integral |
log_type |
string | 1 | 日志类型 | signed |
start_time |
string | 0 | ||
end_time |
string | 0 |
Header
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
Authorization |
string | 1 | bearer {{token}} |
返回示例
{
"status": 200,
"msg": "success",
"data": {
"current_page": 1,
"data": [
{
"id": 1,
"uid": 3,
"rich_type": "integral",
"amount": "1.00",
"log_type": "signed",
"log_note": "签到",
"logable_id": 0,
"logable_type": "",
"created_at": "2020-05-23 13:59:08",
"updated_at": "2020-05-23 13:59:08"
}
],
"first_page_url": "http://local.alcohol.com/module/alcohol/user/getWalletLogs?page=1",
"from": 1,
"last_page": 1,
"last_page_url": "http://local.alcohol.com/module/alcohol/user/getWalletLogs?page=1",
"next_page_url": null,
"path": "http://local.alcohol.com/module/alcohol/user/getWalletLogs",
"per_page": 15,
"prev_page_url": null,
"to": 1,
"total": 1
}
}
签到
POST {{base_url}}/signin/add
Header
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
Authorization |
string | 1 |
获取签到信息
GET {{base_url}}/signin/getInfo
Header
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
Authorization |
string | 1 |
返回示例
{
"status": 200,
"msg": "查询成功",
"data": {
"score": 0,
"sign_in_status": false,
"all_sign_in_num": 0,
"today": "2020-05-23",
"list": []
}
}
我的交易
卖家终止交易
POST {{base_url}}/user/closeTransaction
Header
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
Authorization |
string | 1 | bearer {{token}} |
Body
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
trans_id |
string | 1 | 交易ID |
参数名 | 类型 | 描述 |
---|---|---|
data.invite_code |
string | |
data.invite_url |
string | |
data.invite_user_count |
number | |
data.invite_user_integral |
string | |
#### 获取交易详情 | ||
` |
||
GET {{base_url}}/user/getTransactionDetail | ||
` |
Query
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
trans_id |
string | 1 |
Header
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
Authorization |
string | 1 | bearer {{token}} |
Body
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
trans_name |
string | 1 | 交易标题 | 贵州茅台交易 |
goods_name |
string | 1 | 商品名称 | 贵州茅台 |
goods_imgs[0] |
string | 1 | 商品图片 | user/file/2020-06-05/5eda032097c3f.png |
goods_num |
string | 1 | 商品数量 | 1 |
freight_rule |
string | 1 | 运费规则 1买家承担 2卖家承担 | 1 |
broken_risk |
string | 1 | 破损风险 1买家承担 2卖家承担 | 1 |
pay_way |
string | 1 | 付款方式 1货到付款 2款到发货 | 1 |
trans_note |
string | 1 | 交易备注 | 一件有6支 |
buy_phone |
string | 1 | 买方手机号码 | 18617004850 |
返回示例
{
"status": 200,
"msg": "success",
"data": {
"id": 7,
"trans_no": "trans1591351310232481",
"buy_uid": 3,
"buy_phone": "18617004850",
"sale_uid": 40,
"sale_phone": "18617004807",
"contacts_name": null,
"contacts_phone": null,
"dispatch_address": null,
"shipping_name": null,
"delivery_no": null,
"delivery_img": null,
"trans_name": "贵州茅台交易",
"goods_name": "贵州茅台",
"goods_imgs": [
"http://192.168.1.173/uploads/user/file/2020-06-05/5eda032097c3f.png"
],
"trans_note": "一件有6支",
"goods_num": 1,
"freight_rule": 1,
"broken_risk": 1,
"pay_way": 1,
"status": 3,
"shipping_status": 0,
"evaluate_status": 1,
"edit_status": 1,
"confirm_time": null,
"close_time": null,
"created_at": "2020-06-05 18:01:50",
"updated_at": "2020-06-06 14:17:36",
"status_name": "已完成"
}
}
参数名 | 类型 | 描述 |
---|---|---|
data.invite_code |
string | |
data.invite_url |
string | |
data.invite_user_count |
number | |
data.invite_user_integral |
string | |
data.data.trans_no |
string | |
data.data.buy_uid |
number | |
data.data.buy_phone |
string | |
data.data.sale_uid |
number | |
data.data.sale_phone |
string | |
data.data.trans_name |
string | |
data.data.goods_name |
string | |
data.data.goods_imgs |
array | |
data.data.trans_note |
string | |
data.data.goods_num |
number | |
data.data.freight_rule |
number | |
data.data.broken_risk |
number | |
data.data.pay_way |
number | |
data.data.evaluate_status |
number | |
data.data.status_name |
string | |
data.data.trans_comment |
object | |
#### 买家评价交易 | ||
` |
||
POST {{base_url}}/user/evaluateTransaction | ||
` |
Header
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
Authorization |
string | 1 | bearer {{token}} |
Body
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
trans_id |
string | 1 | 交易ID | 1 |
comments |
string | 1 | 评价内容 | 东西不错 |
imgs[0] |
string | 0 | 图片 | user/file/2020-06-06/5edaf802c4239.png |
返回示例
{
"status": 200,
"msg": "确认成功",
"data": {
"uid": 3,
"trans_no": "trans1591351310232481",
"comments": "东西不错",
"imgs": [
"http://192.168.1.173/uploads/user/file/2020-06-06/5edaf802c4239.png"
],
"trans_id": 7,
"updated_at": "2020-06-06 14:17:36",
"created_at": "2020-06-06 14:17:36",
"id": 4
}
}
参数名 | 类型 | 描述 |
---|---|---|
data.invite_code |
string | |
data.invite_url |
string | |
data.invite_user_count |
number | |
data.invite_user_integral |
string | |
#### 获取我的交易 | ||
` |
||
GET {{base_url}}/user/getMyTransaction | ||
` |
Query
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
type |
string | 1 | 交易类型 1求购 2出售 | 2 |
Header
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
Authorization |
string | 1 | bearer {{token}} |
Body
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
trans_name |
string | 1 | 交易标题 | 贵州茅台交易 |
goods_name |
string | 1 | 商品名称 | 贵州茅台 |
goods_imgs[0] |
string | 1 | 商品图片 | user/file/2020-06-05/5eda032097c3f.png |
goods_num |
string | 1 | 商品数量 | 1 |
freight_rule |
string | 1 | 运费规则 1买家承担 2卖家承担 | 1 |
broken_risk |
string | 1 | 破损风险 1买家承担 2卖家承担 | 1 |
pay_way |
string | 1 | 付款方式 1货到付款 2款到发货 | 1 |
trans_note |
string | 1 | 交易备注 | 一件有6支 |
buy_phone |
string | 1 | 买方手机号码 | 18617004850 |
返回示例
{
"status": 200,
"msg": "success",
"data": {
"current_page": 1,
"data": [
{
"id": 7,
"trans_no": "trans1591351310232481",
"buy_uid": 3,
"buy_phone": "18617004850",
"sale_uid": 40,
"sale_phone": "18617004807",
"contacts_name": null,
"contacts_phone": null,
"dispatch_address": null,
"shipping_name": null,
"delivery_no": null,
"delivery_img": null,
"trans_name": "贵州茅台交易",
"goods_name": "贵州茅台",
"goods_imgs": [
"http://192.168.1.173/uploads/user/file/2020-06-05/5eda032097c3f.png"
],
"trans_note": "一件有6支",
"goods_num": 1,
"freight_rule": 1,
"broken_risk": 1,
"pay_way": 1,
"status": 3,
"shipping_status": 0,
"evaluate_status": 1,
"created_at": "2020-06-05 18:01:50",
"updated_at": "2020-06-06 14:17:36",
"status_name": "已完成",
"trans_comment": {
"id": 4,
"trans_id": 7,
"trans_no": "trans1591351310232481",
"uid": 3,
"comments": "东西不错",
"imgs": [
"http://192.168.1.173/uploads/user/file/2020-06-06/5edaf802c4239.png"
],
"status": 1,
"created_at": "2020-06-06 14:17:36",
"updated_at": "2020-06-06 14:17:36"
}
}
],
"first_page_url": "http://192.168.1.173/module/alcohol/user/getMyTransaction?page=1",
"from": 1,
"last_page": 1,
"last_page_url": "http://192.168.1.173/module/alcohol/user/getMyTransaction?page=1",
"next_page_url": null,
"path": "http://192.168.1.173/module/alcohol/user/getMyTransaction",
"per_page": 15,
"prev_page_url": null,
"to": 1,
"total": 1
}
}
参数名 | 类型 | 描述 |
---|---|---|
data.invite_code |
string | |
data.invite_url |
string | |
data.invite_user_count |
number | |
data.invite_user_integral |
string | |
data.data.trans_no |
string | |
data.data.buy_uid |
number | |
data.data.buy_phone |
string | |
data.data.sale_uid |
number | |
data.data.sale_phone |
string | |
data.data.trans_name |
string | |
data.data.goods_name |
string | |
data.data.goods_imgs |
array | |
data.data.trans_note |
string | |
data.data.goods_num |
number | |
data.data.freight_rule |
number | |
data.data.broken_risk |
number | |
data.data.pay_way |
number | |
data.data.evaluate_status |
number | |
data.data.status_name |
string | |
data.data.trans_comment |
object | |
#### 卖家编辑交易 | ||
` |
||
POST {{base_url}}/user/editTransaction | ||
` |
Header
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
Authorization |
string | 1 | bearer {{token}} |
Body
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
trans_id |
string | 1 | 交易ID | 1 |
trans_name |
string | 1 | 交易标题 | 贵州茅台交易 |
goods_name |
string | 1 | 商品名称 | 贵州茅台 |
goods_imgs[0] |
string | 1 | 商品图片 | user/file/2020-06-05/5eda032097c3f.png |
goods_num |
string | 1 | 商品数量 | 1 |
freight_rule |
string | 1 | 运费规则 1买家承担 2卖家承担 | 1 |
broken_risk |
string | 1 | 破损风险 1买家承担 2卖家承担 | 1 |
pay_way |
string | 1 | 付款方式 1货到付款 2款到发货 | 1 |
trans_note |
string | 1 | 交易备注 | 一件有6支 |
buy_phone |
string | 1 | 买方手机号码 | 18617004850 |
参数名 | 类型 | 描述 |
---|---|---|
data.invite_code |
string | |
data.invite_url |
string | |
data.invite_user_count |
number | |
data.invite_user_integral |
string | |
#### 买家发起交易 | ||
` |
||
POST {{base_url}}/user/storeTransaction2 | ||
` |
Header
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
Authorization |
string | 1 | bearer {{token}} |
Body
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
trans_name |
string | 1 | 交易标题 | 贵州茅台交易 |
sale_uid |
string | 1 | 卖家UID | 1 |
返回示例
{
"status": 200,
"msg": "发起成功",
"data": {
"status": 1,
"evaluate_status": 0,
"edit_status": 0,
"trans_name": "贵州茅台交易2",
"sale_uid": 3,
"trans_no": "trans1591682456270432",
"buy_uid": 40,
"buy_phone": "18617004807",
"sale_phone": "18617004850",
"updated_at": "2020-06-09 14:00:56",
"created_at": "2020-06-09 14:00:56",
"id": 9,
"status_name": "待确认"
}
}
参数名 | 类型 | 描述 |
---|---|---|
data.invite_code |
string | |
data.invite_url |
string | |
data.invite_user_count |
number | |
data.invite_user_integral |
string | |
#### 买家确认交易/终止交易 | ||
` |
||
POST {{base_url}}/user/confirmTransaction | ||
` |
Header
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
Authorization |
string | 1 | bearer {{token}} |
Body
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
trans_id |
string | 1 | 交易ID | 7 |
status |
string | 1 | 确认状态 1同意 2终止 | 1 |
返回示例
{
"status": 200,
"msg": "确认成功",
"data": true
}
参数名 | 类型 | 描述 |
---|---|---|
data.invite_code |
string | |
data.invite_url |
string | |
data.invite_user_count |
number | |
data.invite_user_integral |
string | |
#### 卖家发起交易 | ||
` |
||
POST {{base_url}}/user/storeTransaction | ||
` |
Header
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
Authorization |
string | 1 | bearer {{token}} |
Body
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
trans_name |
string | 1 | 交易标题 | 贵州茅台交易 |
goods_name |
string | 1 | 商品名称 | 贵州茅台 |
goods_imgs[0] |
string | 1 | 商品图片 | user/file/2020-06-05/5eda032097c3f.png |
goods_num |
string | 1 | 商品数量 | 1 |
freight_rule |
string | 1 | 运费规则 1买家承担 2卖家承担 | 1 |
broken_risk |
string | 1 | 破损风险 1买家承担 2卖家承担 | 1 |
pay_way |
string | 1 | 付款方式 1货到付款 2款到发货 | 1 |
trans_note |
string | 1 | 交易备注 | 一件有6支 |
buy_phone |
string | 1 | 买方手机号码 | 18617004850 |
返回示例
{
"status": 200,
"msg": "发起成功",
"data": {
"trans_name": "贵州茅台交易",
"goods_name": "贵州茅台",
"goods_imgs": [
"http://192.168.1.173/uploads/user/file/2020-06-05/5eda032097c3f.png"
],
"goods_num": "1",
"freight_rule": "1",
"broken_risk": "1",
"pay_way": "1",
"trans_note": "一件有6支",
"buy_phone": "18617004850",
"trans_no": "trans1591351310232481",
"buy_uid": 3,
"sale_uid": 40,
"sale_phone": "18617004807",
"updated_at": "2020-06-05 18:01:50",
"created_at": "2020-06-05 18:01:50",
"id": 7
}
}
参数名 | 类型 | 描述 |
---|---|---|
data.invite_code |
string | |
data.invite_url |
string | |
data.invite_user_count |
number | |
data.invite_user_integral |
string | |
### 意见反馈 |
提交反馈
POST {{base_url}}/user/addAdvice
Header
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
Authorization |
string | 1 |
Body
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
phone |
string | 1 | 手机 | |
realname |
string | 0 | 姓名 | |
contents |
string | 1 | 反馈内容 | |
imgs[0] |
string | 1 | 图片数组 |
返回示例
{
"status": 200,
"msg": "success",
"data": null
}
反馈列表
GET {{base_url}}/user/getAdviceList
Header
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
Authorization |
string | 1 |
Body
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
phone |
string | 1 | 手机 | |
realname |
string | 0 | 姓名 | |
contents |
string | 1 | 反馈内容 | |
imgs[0] |
string | 1 | 图片数组 |
返回示例
{
"status": 200,
"msg": "success",
"data": {
"current_page": 1,
"data": [
{
"id": 1,
"uid": 40,
"phone": "18617004850",
"realname": "易信",
"contents": "哇哈哈哈哈",
"imgs": null,
"is_process": 0,
"process_note": null,
"process_time": null,
"created_at": "2020-06-06 09:31:31",
"updated_at": "2020-06-06 09:31:31",
"process_status": "未处理"
}
],
"first_page_url": "http://192.168.1.173/module/alcohol/user/getAdviceList?page=1",
"from": 1,
"last_page": 1,
"last_page_url": "http://192.168.1.173/module/alcohol/user/getAdviceList?page=1",
"next_page_url": null,
"path": "http://192.168.1.173/module/alcohol/user/getAdviceList",
"per_page": 15,
"prev_page_url": null,
"to": 1,
"total": 1
}
}
反馈详情
GET {{base_url}}/user/getAdviceDetail
Query
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
id |
string | 1 |
Header
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
Authorization |
string | 1 |
Body
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
phone |
string | 1 | 手机 | |
realname |
string | 0 | 姓名 | |
contents |
string | 1 | 反馈内容 | |
imgs[0] |
string | 1 | 图片数组 |
返回示例
{
"status": 200,
"msg": "success",
"data": {
"id": 1,
"uid": 40,
"phone": "18617004850",
"realname": "易信",
"contents": "哇哈哈哈哈",
"imgs": null,
"is_process": 0,
"process_note": null,
"process_time": null,
"created_at": "2020-06-06 09:31:31",
"updated_at": "2020-06-06 09:31:31",
"process_status": "未处理"
}
}
获取邀请好友信息
GET {{base_url}}/user/getInvitationInfo
Header
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
Authorization |
string | 1 | bearer {{token}} |
返回示例
{
"status": 200,
"msg": "success",
"data": {
"invite_code": "88888888",
"invite_url": "http://127.0.0.1:8000/#/register?invite_code=88888888",
"invite_user_count": 1,
"invite_user_integral": "100.00"
}
}
返回参数
参数名 | 类型 | 描述 |
---|---|---|
data.invite_code |
string | 邀请码 |
data.invite_url |
string | 邀请链接 |
data.invite_user_count |
number | 已邀请人数 |
data.invite_user_integral |
string | 已获得奖励 |
#### 获取实名信息 | ||
` |
||
GET {{base_url}}/user/getRealnameInfo | ||
` |
Header
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
Authorization |
string | 1 | bearer {{token}} |
Body
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
real_name |
string | 1 | 用户姓名 | |
id_card |
string | 1 | 身份证号码 | |
positive |
string | 1 | 身份证正面 | |
behind |
string | 1 | 身份证反面 | |
hold |
string | 1 | 手持身份证 |
返回示例
{
"status": 200,
"msg": "success",
"data": {
"id": 1,
"uid": 3,
"real_name": "易信",
"id_card": "421126199408115248",
"positive": "http://local.alcohol.com/uploads/user/file/2020-05-25/5ecb8709e1b13.jpg",
"behind": "http://local.alcohol.com/uploads/user/file/2020-05-25/5ecb8709e1b13.jpg",
"hold": "http://local.alcohol.com/uploads/user/file/2020-05-25/5ecb8709e1b13.jpg",
"remark": "",
"status": 0,
"created_at": "2020-05-27 17:38:10",
"updated_at": "2020-05-27 17:38:10"
}
}
修改用户信息
POST {{base_url}}/user/updateUserInfo
Header
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
Authorization |
string | 1 | bearer {{token}} |
Body
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
avatar |
string | 0 | 头像 | |
username |
string | 0 | 用户名 |
返回示例
{
"status": 200,
"msg": "success",
"data": {
"uid": 3,
"avatar": "http://local.alcohol.com/uploads/avatar/avatar.jpg",
"c_code": "",
"phone": "18617004850",
"email": "",
"username": "哇哈哈哈哈",
"male": "",
"birthday": null,
"nickname": "186170048506873",
"type": "member",
"phone_active": 1,
"email_active": 0,
"status": 1,
"create_at": "2020-05-21 11:57:08",
"update_at": "2020-05-21 11:57:08",
"change_username": 0,
"integral": null,
"signature": "",
"pid": 0,
"deep": 0,
"path": null,
"invite_code": null,
"user_grade": 0,
"user_type": 1,
"user_grade_name": null,
"user_type_name": "商家"
}
}
获取已邀请好友
GET {{base_url}}/user/getInvitationUser
Header
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
Authorization |
string | 1 | bearer {{token}} |
返回示例
{
"status": 200,
"msg": "success",
"data": {
"current_page": 1,
"data": [
{
"uid": 5,
"avatar": "http://local.alcohol.com/uploads/avatar/avatar.jpg",
"c_code": "",
"phone": "18617004852",
"email": "",
"username": "186170048526554",
"male": "",
"birthday": null,
"nickname": "186170048526554",
"type": "member",
"phone_active": 1,
"email_active": 0,
"status": 1,
"create_at": "2020-05-28 14:31:33",
"update_at": "2020-05-28 14:31:33",
"change_username": 0,
"integral": null,
"signature": "",
"pid": 3,
"deep": 1,
"path": null,
"invite_code": "66666666",
"user_grade": 0,
"user_type": 0,
"user_auth": 0,
"user_grade_name": null,
"user_type_name": "用户",
"user_auth_name": "未认证"
}
],
"first_page_url": "http://local.alcohol.com/module/alcohol/user/getInvitationUser?page=1",
"from": 1,
"last_page": 1,
"last_page_url": "http://local.alcohol.com/module/alcohol/user/getInvitationUser?page=1",
"next_page_url": null,
"path": "http://local.alcohol.com/module/alcohol/user/getInvitationUser",
"per_page": 15,
"prev_page_url": null,
"to": 1,
"total": 1
}
}
返回参数
参数名 | 类型 | 描述 |
---|---|---|
data.invite_code |
string | 邀请码 |
data.invite_url |
string | 邀请链接 |
data.invite_user_count |
number | 已邀请人数 |
data.invite_user_integral |
string | 已获得奖励 |
#### 提交实名认证信息 | ||
` |
||
POST {{base_url}}/user/submitRealnameInfo | ||
` |
Header
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
Authorization |
string | 1 | bearer {{token}} |
Body
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
real_name |
string | 1 | 用户姓名 | |
id_card |
string | 1 | 身份证号码 | |
positive |
string | 1 | 身份证正面 | |
behind |
string | 1 | 身份证反面 | |
hold |
string | 1 | 手持身份证 |
返回示例
{
"status": 200,
"msg": "提交成功"
}
获取用户信息
GET {{base_url}}/user/getUserInfo
Header
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
Authorization |
string | 1 | bearer {{token}} |
返回示例
{
"status": 200,
"msg": "success",
"data": {
"uid": 3,
"avatar": "http://local.alcohol.com/uploads/avatar/avatar.jpg",
"c_code": "",
"phone": "18617004850",
"email": "",
"username": "哇哈哈哈哈",
"male": "",
"birthday": null,
"nickname": "186170048506873",
"type": "member",
"phone_active": 1,
"email_active": 0,
"status": 1,
"create_at": "2020-05-27 18:00:01",
"update_at": "2020-05-27 18:00:01",
"change_username": 0,
"integral": null,
"signature": "",
"pid": 0,
"deep": 0,
"path": null,
"invite_code": null,
"user_grade": 0,
"user_type": 1,
"user_auth": 1,
"user_grade_name": null,
"user_type_name": "商家",
"user_auth_name": "实名认证"
}
}
酒业文化
名人推荐
GET {{base_url}}/culture/celebrityRecommend
Query
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
per_page |
string | 0 | 分页每页条数 | |
category_id |
string | 0 | 子级分类ID |
获取分类
GET {{base_url}}/culture/getCultureCategory
Query
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
pid |
string | 1 | (获取各类别下的子类)2名人推荐 3酒水鉴定 4酒水文化 | 2 |
返回示例
{
"status": 200,
"msg": "success",
"data": [
{
"id": 5,
"name": "茅台",
"pid": 2,
"created_at": "2020-05-23 17:35:10",
"updated_at": "2020-05-23 17:35:12"
},
{
"id": 6,
"name": "五粮液",
"pid": 2,
"created_at": "2020-05-23 17:35:25",
"updated_at": "2020-05-23 17:35:28"
},
{
"id": 7,
"name": "葡萄酒",
"pid": 2,
"created_at": "2020-05-23 17:35:41",
"updated_at": "2020-05-23 17:35:43"
}
]
}
酒水鉴定
GET {{base_url}}/culture/alcoholAuth
Query
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
per_page |
string | 0 | 分页每页条数 | |
category_id |
string | 0 | 子级分类ID |
酒水文化
GET {{base_url}}/culture/alcoholCulture
Query
参数名 | 类型 | 必需 | 描述 | 示例 |
---|---|---|---|---|
per_page |
string | 0 | 分页每页条数 | |
category_id |
string | 0 | 子级分类ID |