共用数据存放一些共用的接口说明
[TOC=2]
## 枚举变量
### 频率说明(frequency):
| 枚举变量 | 说明 |
| --- | --- |
| once | 仅一次 |
| each | 每次 |
| day | 每天 |
>[info] 上限说明,若上限为 0 表示没有上限
>雇主端暂不涉及到积分,积分全部设置为 0
## 获取相关配置项
~~~[api]
get:/ip地址/webapp/systemConfig
<<<
success
{
"code": 0,
"data": {
"employer_recruit_fee": 500,
"points_max_deduction": 1000,//积分最多抵扣
"balance_max_deduction": 1000,//红包最多抵扣
"invite_new_user_reward": 500,//
"invite_new_user_reward_threshold": 5,//邀请好友人数
"invited_user_reward": 500,
"employer_rate_discount": [//雇主评价享受折扣
{
"rate": 40,//分值
"discount": 120//对应折扣
},
{
"rate": 50,
"discount": 110
},
{
"rate": 60,
"discount": 100
},
{
"rate": 80,
"discount": 0
},
{
"rate": 100,
"discount": 0
}
],
"employer_online_order_reward_points": 50,
"employer_rate_reward_points": 50,
"labour_free_vip_days": 15,
"labour_real_name_reward": 500,
"labour_vip_card_fee": {
"30": 3000,
"90": 8800,
"180": 16600,
"365": 26900
},
"labour_rate_vip_fee_discount": [
{
"rate": 60,
"discount": 120
},
{
"rate": 80,
"discount": 100
},
{
"rate": 100,
"discount": 90
}
],
"labour_point_plus": [//民工积分获得规则
{
"name": "通过实名认证",//标题
"score": 50,//分值
"capped": 50,//上限
"frequency": "once",//频率 见枚举变量
"description": "authentication"//描述
},
{
"name": "参与抢单",
"score": 10,
"capped": 0,
"frequency": "each",
"description": "grab_a_single"
},
{
"name": "抢单成功",
"score": 20,
"capped": 0,
"frequency": "each",
"description": "grab_a_single_success"
},
{
"name": "接受预约",
"score": 30,
"capped": 0,
"frequency": "each",
"description": "accept_appointment"
},
{
"name": "推广自己",
"score": 20,
"capped": 50,
"frequency": "day",
"description": "promote_their"
},
{
"name": "完成报价",
"score": 50,
"capped": 50,
"frequency": "once",
"description": "complete_the_quotation"
},
{
"name": "收到好评",
"score": 20,
"capped": 0,
"frequency": "each",
"description": "received_high_praise"
}
],
"labour_point_less": [//民工积分扣除规则
{
"name": "拒绝预约",
"score": -100,
"capped": 0,
"frequency": "each",
"description": "refuse_reservation"
},
{
"name": "取消订单",
"score": -100,
"capped": 0,
"frequency": "each",
"description": "cancel_order"
},
{
"name": "恶意差评",
"score": -200,
"capped": 0,
"frequency": "each",
"description": "bad_review"
},
{
"name": "逃工爽约",
"score": -100,
"capped": 0,
"frequency": "each",
"description": "escape"
}
],
"employer_point_plus": [//雇主积分获得规则
{
"name": "完善资料",
"score": 0,
"capped": 20,
"frequency": "once",
"description": "complete_material"
},
{
"name": "分享好友",
"score": 0,
"capped": 50,
"frequency": "day",
"description": "share_to_friends"
},
{
"name": "分享朋友圈",
"score": 0,
"capped": 50,
"frequency": "day",
"description": "share_to_friends_circle"
},
{
"name": "完成评价",
"score": 0,
"capped": 0,
"frequency": "each",
"description": "evaluation"
},
{
"name": "招工成功",
"score": 0,
"capped": 0,
"frequency": "each",
"description": "job_success"
}
],
"employer_point_less": [//雇主积分扣除规则
{
"name": "取消订单",
"score": 0,
"capped": 0,
"type": "each",
"description": "cancel_order"
},
{
"name": "超时取消订单",
"score": 0,
"capped": 0,
"type": "each",
"description": "time_out_cancel_order"
},
{
"name": "恶意差评",
"score": 0,
"capped": 0,
"type": "each",
"description": "bad_review"
}
],
"permission_device_read": 1,//可读设备权限
"permission_device_control": 2,//可以控制设备权限
"permission_device_grant": 4//设备授权给其他用户
}
}
~~~
## 获取区域
>[info] 传参数值,不传表示获取所有的区域。要获取下一级,就传查询出来的id的值
> parent_id 暂时没有使用,值为 null 表示最高的级别
~~~[api]
get:/ip地址/webapp/getRegions
*int:parent_id=null#区域id
<<<
success
{
"code": 0,
"data": [
{
"id": 1,
"name": "山东省",//省名
"parent_id": null//上一级id
}
]
}
~~~
## 获取排序后的区域
~~~[api]
get:/ip地址/webapp/getRegionsSort
*int:parent_id=null#区域id
<<<
success
{
"code": 0,
"data": [
"B": [
{
"id": 11,
"name": "北关村",
"parent_id": 5,
"initials": "B"
},
{
"id": 45,
"name": "北郭村",
"parent_id": 5,
"initials": "B"
}
]
}
~~~
## 批量获取区域
~~~[api]
get:/ip地址/webapp/getRegionsAll
*json:list=[1,2]#区域id
<<<
success
{
"code": 0,
"data": [
{
"id": 1,
"name": "山东省",//省名
"parent_id": null//上一级id
}
]
}
~~~
## 搜索区域
~~~[api]
get:/ip地址/webapp/getRegionsSearch
*int:parent_id=null#区域id
*string:name=""#搜索的地区名称
<<<
success
{
"code": 0,
"data": [
"B": [
{
"id": 11,
"name": "北关村",
"parent_id": 5,
"initials": "B"
},
{
"id": 45,
"name": "北郭村",
"parent_id": 5,
"initials": "B"
}
]
}
~~~
- 使用须知
- 共用数据
- 数据库
- 管理员
- 管理--登录注册
- 管理--个人资料
- 管理--工种相关
- 管理--工作相关
- 管理--蔬菜分类
- 管理--订单相关
- 管理--用户相关
- 管理--消息相关
- 管理--banner
- 管理--认证相关
- 管理--蔬菜改版
- 雇主端
- 雇主--登录注册
- 雇主--个人资料
- 雇主--设备相关
- 雇主--控制设备
- 雇主--用工地址
- 雇主--我的收藏
- 雇主--工种相关
- 雇主--我的订单
- 雇主--我的红包
- 雇主--评价订单
- 雇主--消息相关
- 雇主--积分相关
- 雇主--民工列表
- 雇主--banner
- 雇主--邀请注册
- 雇主--分享民工
- 民工端
- 民工--登录注册
- 民工--个人资料
- 民工--我的红包
- 民工--订单相关
- 民工--我的订单
- 民工--评价订单
- 民工--消息相关
- 民工--积分相关
- 民工--认证相关
- 民工--工种相关
- 民工--会员相关
- 民工--分享相关
- 民工--服务区域
- 民工--服务技能
- 民工--邀请注册