宠物医院项目关键接口

登录接口

请求方式: POST

路径: http://localhost:8080/login

请求头:Content-Type: application/x-www-form-urlencoded

请求参数:

​ username: admin

​ password: 123456

响应案例:

​ {

  "result": "success",

  "message": "欢迎登陆"

​ }

获取宠物列表

请求方式: POST

路径: http://localhost:8080/user/pet/getAllByLimit

请求头:Content-Type: application/x-www-form-urlencoded

请求参数:

​ name:

​ page:1

​ limit:10

响应案例:

{
“total”: 1,
“rows”: [{
“page”: null,
“pageSize”: null,
“sort”: null,
“order”: null,
“rows”: null,
“limit”: null,
“fromNum”: null,
“id”: 33,
“userId”: 1,
“name”: “2号”,
“weight”: 5.0,
“height”: 20.0,
“type”: “2”,
“birthday”: “2022/10/09 00:00:00”,
“img”: null,
“createTime”: “2022/10/09 23:52:41”
}],
“other”: null
}

申请预约就诊

请求方式: POST

路径: http://localhost:8080/user/apply/doAdd

请求头:Content-Type: application/x-www-form-urlencoded

请求参数:

petId: 33

info: 不吃饭!

phone: 13282135001

address: 武汉中南路330号

appTime: 2022-10-23 19:31:20

响应案例:

SUCCESS

获取预约列表

请求方式: POST

路径: http://localhost:8080/user/apply/getAllByLimitDoctor

请求头:Content-Type: application/x-www-form-urlencoded

请求参数:

info: 不吃饭

page: 1

limit: 10

响应案例:

{
“total”: 37,
“rows”: [{
“page”: null,
“pageSize”: null,
“sort”: null,
“order”: null,
“rows”: null,
“limit”: null,
“fromNum”: null,
“id”: 40,
“petId”: 33,
“userId”: 1,
“doctorId”: null,
“appTime”: “2022/10/23 19:31:20”,
“info”: “不吃饭!”,
“phone”: “13282135001”,
“address”: “武汉中南路330号”,
“name”: null,
“createTime”: “2022/10/22 19:31:27”,
“status”: 1
}],
“other”: null
}

通过预约

请求方式: POST

路径: http://localhost:8080/user/apply/chStatus

请求头:Content-Type: application/x-www-form-urlencoded

请求参数:

id:40
status: 2

响应案例:

SUCCESS

设置为“已就诊”

请求方式: POST

路径: http://localhost:8080/user/apply/chStatus

请求头:Content-Type: application/x-www-form-urlencoded

请求参数:

id:40
status: 4

响应案例:

jz

新增就诊结果单

请求方式: POST

路径: http://localhost:8080/user/diagnosis/doAdd

请求头:Content-Type: application/x-www-form-urlencoded

请求参数:

userId: 1

petId: 33

info: 多喝热水!

type: 1

status: 1

响应案例:

SUCCESS

校验是否登录

请求方式: GET

路径: https://open.shiguangkey.com/api/udb/login/isLogin

请求头:

terminaltype: 4

token: undefined或用户身份令牌

请求参数:

响应案例:

{
“traceId”: “84626b8514694b938ba01a717b985330”,
“status”: “V108”,
“msg”: “未登录”,
“data”: {}
}

登录

请求方式: POST

路径: https://open.shiguangkey.com/api/udb/login/standard

请求头:

content-type: application/x-www-form-urlencoded

terminaltype: 4

token: undefined或用户身份令牌

请求参数:

account: 13282135001

password: 6Fw1dOZqm%2BbMFCQHQ7o1Og

inviteLinkId:

ticketLogin: 1

响应案例:

{
“traceId”: “3c20fb93c70140b081854e04fcbd5e94”,
“msg”: “success”,
“data”: {
“user”: {
“uid”: 5147239,
“needBindPhone”: false,
“headImg”: “https:\/\/res.shiguangkey.com\/file\/202206\/29\/20220629180353941615043.jpg”,
“openId”: “”,
“newRegister”: false,
“mobile”: “13282135001”,
“nickname”: “苏芙蓉”,
“showAccountList”: false,
“account”: “m13282135001”
},
“token”: “106a17a4064e8a67344847c2a773ade0”
},
“status”: “0”
}

获取个人信息

请求方式: GET

路径: https://open.shiguangkey.com/api/udb/user/mine

请求头:

terminaltype: 4

token: 用户身份令牌

请求参数:

响应案例:

{
“traceId”: “50e381b533fe4ec28b7d48839178eeeb”,
“status”: “0”,
“msg”: “success”,
“data”: {
“userDetail”: {
“uid”: 5147239,
“account”: “m13282135001”,
“phone”: “13282135001”,
“nickname”: “苏芙蓉”,
“nicknameLimit”: “”,
“birthday”: 1604160000000,
“headImg”: “https://res.shiguangkey.com/file/202206/29/20220629180353941615043.jpg“,
“qq”: “8195889544”,
“description”: “哈哈”,
“realname”: “苏芙蓉,测试”,
“gender”: 0,

​ … …

​ }
​ }
}