|
@@ -1,3 +1,106 @@
|
|
|
+
|
|
|
+# 站点信息接口
|
|
|
+
|
|
|
+接口地址: /api/index/siteinfo
|
|
|
+
|
|
|
+请求方式:get / post
|
|
|
+
|
|
|
+请求数据:无
|
|
|
+
|
|
|
+响应数据:
|
|
|
+```
|
|
|
+{
|
|
|
+ "code": 1,
|
|
|
+ "err_code": 0,
|
|
|
+ "msg": "success",
|
|
|
+ "time": "1682828132",
|
|
|
+ "data": {
|
|
|
+ "banners": [ //轮播图
|
|
|
+ {
|
|
|
+ "id": 1,
|
|
|
+ "name": "图片1", //轮播图标题
|
|
|
+ "pid": 1,
|
|
|
+ "value": "http:\/\/local.appointment.com\/admin\/index\/index.html", //跳转地址
|
|
|
+ "description": "",
|
|
|
+ "image":"https:\/\/iph.href.lu\/400x200\/?text=%E8%BD%AE%E6%92%AD%E5%9B%BE%E7%89%872&fg=666666&bg=cccccc", //轮播图地址
|
|
|
+ "status": 1,
|
|
|
+ "single_status": 0,
|
|
|
+ "sort": 0
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "id": 2,
|
|
|
+ "name": "图片2",
|
|
|
+ "pid": 1,
|
|
|
+ "value": "http:\/\/local.appointment.com\/admin\/index\/index.html",
|
|
|
+ "description": "",
|
|
|
+ "image":"https:\/\/iph.href.lu\/400x200\/?text=%E8%BD%AE%E6%92%AD%E5%9B%BE%E7%89%872&fg=666666&bg=cccccc",
|
|
|
+ "status": 1,
|
|
|
+ "single_status": 0,
|
|
|
+ "sort": 0
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "boxs": [ //模块
|
|
|
+ {
|
|
|
+ "id": 4,
|
|
|
+ "name": "心里咨询", //模块标题
|
|
|
+ "pid": 2,
|
|
|
+ "value": "http:\/\/local.appointment.com\/admin\/index\/index.html", //跳转地址
|
|
|
+ "description": "",
|
|
|
+ "image":"https:\/\/iph.href.lu\/400x200\/?text=%E8%BD%AE%E6%92%AD%E5%9B%BE%E7%89%872&fg=666666&bg=cccccc", //封面图地址
|
|
|
+ "status": 1,
|
|
|
+ "single_status": 0,
|
|
|
+ "sort": 0
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "id": 5,
|
|
|
+ "name": "法律咨询",
|
|
|
+ "pid": 2,
|
|
|
+ "value": "",
|
|
|
+ "description": "",
|
|
|
+ "image": 7,
|
|
|
+ "status": 1,
|
|
|
+ "single_status": 0,
|
|
|
+ "sort": 0
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "contact_us": "0595-88052395", //联系电话
|
|
|
+ "announcements": [ //公告
|
|
|
+ {
|
|
|
+ "id": 4,
|
|
|
+ "title": "国际新闻",
|
|
|
+ "thumb": 8,
|
|
|
+ "thumb_url": "http://local.appointment.com/uploads/admin/article_content/20230421/ee2a2b125a3c174e11683530a931a69e.jpg"
|
|
|
+ "content": "<p>士大夫撒地方水电费asd<\/p><p>士大夫撒地方水电费地方<\/p>",
|
|
|
+ "admin_id": 1,
|
|
|
+ "create_time": "2023-04-23 18:00:47"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "id": 2,
|
|
|
+ "title": "测试",
|
|
|
+ "thumb": 4,
|
|
|
+ "thumb_url": "http://local.appointment.com/uploads/admin/article_content/20230421/ee2a2b125a3c174e11683530a931a69e.jpg"
|
|
|
+ "content": "<p>测试<img src=\"\/uploads\/admin\/article_content\/20230421\/ee2a2b125a3c174e11683530a931a69e.jpg\" style=\"max-width: 100%;\"\/>的范德萨发生的<\/p><p>士大夫撒地方 水电费水电费水电费水电费sdf<\/p><p>是的发生的是的<\/p>",
|
|
|
+ "admin_id": 1,
|
|
|
+ "create_time": "2023-04-21 18:58:00"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "id": 1,
|
|
|
+ "title": "联系我们",
|
|
|
+ "thumb": 0,
|
|
|
+ "thumb_url": "http://local.appointment.com/uploads/admin/article_content/20230421/ee2a2b125a3c174e11683530a931a69e.jpg"
|
|
|
+ "content": "<p>我们的地址是 xxx 市区 xxx 街道 xxx 号<\/p><p><br\/><\/p><p><img src=\"http:\/\/local.appointment.com\/static\/public\/images\/tx.jpg\" style=\"max-width:100%;\"\/><br\/><\/p>",
|
|
|
+ "admin_id": 1,
|
|
|
+ "create_time": "2023-04-20 23:48:32"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "notice": { //家庭教育咨询来访须知
|
|
|
+ "title": "家庭教育咨询来访须知", //标题
|
|
|
+ "content": "<p>一、遵守保密原则,家庭教育指导师不会泄露来访者的电话、信息和咨询内容。<br\/>二、每次咨询时长为45分钟,来访者需准时到达。<br\/>三、中心仅对平台预约的服务负责,若有后续咨询意向,由家庭教育指导师和来访者个人负责,中心对此不承担任何责任。<br\/>四、本中心家庭教育服务咨询为公益免费项目,为保证公共资源不被浪费,取消预约需提前24小时。<br\/>五、最终解释权归晋江市家庭教育指导中心所有。<br\/>点击确认即表示完全知晓并同意以上规则。<br\/><\/p>"
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+```
|
|
|
+
|
|
|
# 登入接口
|
|
|
|
|
|
接口地址:/api/common/login
|
|
@@ -385,12 +488,25 @@
|
|
|
| sex | 性别:1男 2女 | int |
|
|
|
| phone | 电话 | require,max:50 |
|
|
|
| id_card | 身份证 | max:50 |
|
|
|
-| childs_num | 子女数量 | int |
|
|
|
| problem_desc | 问题描述 | max:200 |
|
|
|
| requirement_desc | 需求描述 | max:200 |
|
|
|
| appointment_ticket_id | 号源id | require, int |
|
|
|
| appointment_period | 时段:1上午,2下午,3晚上 | require, int |
|
|
|
| appointment_time | 预约时间段 | require, dateFormat: H:i:s - H:i:s |
|
|
|
+| childs_num | 子女数量:0无,1一孩、2二孩、3三孩 | int, in:1,2,3 |
|
|
|
+| city | 来自城市 | max:50 |
|
|
|
+| job | 职业 | max:50 |
|
|
|
+| education_level | 受教育程度:1小学,2初中,3高中,4大学及以上 | number, in:0,1,2,3,4 |
|
|
|
+| home_address|家庭住址 | max:255 |
|
|
|
+| marriage| 婚姻情况:0未婚,1己婚,2离异 | number, in:0,1,2 |
|
|
|
+| problem_type| 咨询问题类别:0其他,1自我意识,2人际关系,3亲子关系,4情绪问题,5学习问题 | number, in:0,1,2,3,4,5 |
|
|
|
+| childs_age1| 一孩年龄 | number |
|
|
|
+| childs_age2| 二孩年龄 | number |
|
|
|
+| childs_age3| 三孩年龄 | number |
|
|
|
+| childs_sex1 | 一孩性别 | number |
|
|
|
+| childs_sex2 | 二孩性别 | number |
|
|
|
+| childs_sex3 | 三孩性别 | number |
|
|
|
+
|
|
|
|
|
|
响应数据:
|
|
|
```json
|