新疆汽车维修网app接口文档

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/IRonSir/article/details/82790760

目录

 

app接口文档

订单项接口调用

获取预约订单的接口

获取预约订单详情的接口

更新预约的接口

服务项接口调用


app接口文档

订单项接口调用

获取预约订单的接口

URL

{{url}}/api/wxxt/order/order

开发地址: {{url}}/api/wxxt/appointment

支持格式

JSON

HTTP请求方式

GET

请求参数

返回字段

返回字段 字段类型 说明
message string 提示信息
code string 状态码
error string 异常信息 异常显示
success boolean 返回正常结果为true
rMap(APP 为 'date')

Map(String,Object)

{

    "page": {
            "page": 1,
            "rows": 15,
            "total": 2

    },

    list:[......]

}

返回列表数据容器
obj Object 返回单条结果容器

接口示例(list中请使用 // 标注的字段,未标注的字段无效)

{{url}}/api/wxxt/order/order

地址:{{url}}/api/wxxt/appointment?page=1&rows=15&orderCodeParam=1537429450032347&deleteStatusParam=0

{
    "message": "成功",
    "code": null,
    "error": null,
    "success": true,
    "rMap": {
        "list": [
            {
                "sortedConditions": {},
                "id": 45,//id
                "remark": null,
                "appointmentDate": "2017-09-20 23:57:01",//预约时间
                "appointmentTime": "2018-09-20 15:44:10",//预约单下单时间
                "pics": null,//预约图片
                "dealStatus": 0,//删除状态
                "deleteStatus": null,//删除状态 0或null:未删除 1:客户取消 2:维修厂取消
                "isExpired": -1,//预约是否过期 -1:已过期 1:未过期
                "customer": {
                    "sortedConditions": {},
                    "userId": "26997",//用户的userId
                    "id": 2,//用户的id
                    "phone": "15299183255",//注册手机号
                    "name": "测试",//用户名
                    "nickName": "测试",//用户昵称
                    "email": null,
                    "sex": null,
                    "contactPerson": null,
                    "contactPhone": null,
                    "customerType": null,
                    "address": null,
                    "remark": null,
                    "yzm": null,
                    "repassword": null
                },
                "garage": {
                    "sortedConditions": {},
                    "id": 5,//维修厂id
                    "name": "乌鲁木齐维修厂",//维修厂名称
                    "simpleName": "WLMQ",//维修厂简称
                    "phone": "13657244791",//维修厂电话
                    "summary": "轿车换轮胎",//维修厂简介
                    "description": null,
                    "remark": null,
                    "mainPicStr": "mainPicStrFile-1-1535700685752.jpg",//维修厂展示图
                    "pics": null,
                    "provePics": null,
                    "proveNo": null,
                    "businessPics": null,
                    "businessNo": null,
                    "level": null,
                    "web": null,
                    "fax": null,
                    "holder": null,
                    "checkStatus": 0,
                    "deleteStatus": 0,
                    "recommendStatus": 0,
                    "accumulateCommentScore": 0,
                    "accumulateCommentNum": 0,
                    "registerDate": null,
                    "preLoginTime": null,
                    "startTime": null,
                    "endTime": null,
                    "address": null,
                    "province": null,
                    "city": null,
                    "district": null,
                    "longitude": null,
                    "latitude": null,
                    "distance": null,
                    "avgServiceScoreScore": null,
                    "avgAreaScore": null,
                    "avgEfficScore": null,
                    "avgScore": null,
                    "provinceCode": null,
                    "countryCode": null,
                    "cljsStatus": null,
                    "checkScore": null,
                    "checkLevel": null
                },
                "order": {
                    "sortedConditions": {},
                    "id": 45,//订单id
                    "orderCode": "1537429450032347",//订单编号
                    "wxOrderCode": null,//微信订单编号
                    "finalPrice": null,//交易价格
                    "orderStatus": 0,//支付状态 0:未支付 1:已支付
                    "serviceStatus": 0,//服务状态 0:未服务 1:已服务
                    "commentStatus": 0,//评论状态 0:未评论 1:已评论
                    "makeOrderTime": "2018-09-20 15:44:10",//下单时间
                    "payOrderTime": null,//支付时间
                    "serviceCompleteTime": null,//服务完成时间
                    "sureServiceTime": null,
                    "phone": null,
                    "customer": null,
                    "serviceItem": {//服务项
                        "sortedConditions": {},
                        "id": 2,//di
                        "code": "SERVICE-bbda83791c364917",//编码
                        "pic": "picFile-1-1535426410517.jpg",//图片
                        "title": "换轮胎",//名称
                        "type": {//类型
                            "sortedConditions": {},
                            "id": 243,
                            "key": "service_item_type",
                            "keyText": null,
                            "value": "lthx",
                            "valueText": "轮胎换修",
                            "createTime": null,
                            "preEditTime": null
                        },
                        "summary": "轿车换轮胎",//简介
                        "payType": {//支付类型
                            "sortedConditions": {},
                            "id": 234,
                            "key": "service_item_pay_type",
                            "keyText": "",
                            "value": "mianyi",
                            "valueText": "面议",
                            "createTime": "2018-07-02",
                            "preEditTime": null
                        },
                        "price": 0,//价格
                        "detail": null,
                        "garage": null
                    },
                    "appointmentWorker": null,
                    "worker": {//技师
                        "sortedConditions": {},
                        "id": null,//技师id
                        "name": null,//技师名称
                        "workerNo": null,//技师编码
                        "idNum": null,
                        "sex": null,
                        "birthDate": null,
                        "post": null,
                        "telphone": null,//手机号
                        "degree": null,
                        "address": null,
                        "photoNo": null,
                        "employeeNo": null,
                        "workYear": null,
                        "workerLevel": null,//技师等级
                        "summary": null,
                        "description": null,
                        "remark": null,
                        "mainPicStr": null,//主图
                        "accumulateCommentScore": null,//累计评分 单次评论10分制
                        "accumulateCommentNum": null,//累计评论次数 
                        "accumulateServiceNum": null,//累计服务次数
                        "garage": null
                    },
                    "garage": null
                },
                "contactPerson": "测试",//预留联系人
                "phone": null,//预留电话
                "total": null
            }
        ],
        "page": {
            "page": 1,
            "rows": 15,
            "total": 1
        }
    },
    "obj": null
}

获取预约订单详情的接口

URL

{{url}}/api/wxxt/order/order/detail/{id}

{{url}}/api/wxxt/appointment/detail/{id}

支持格式

JSON

HTTP请求方式

GET

请求参数

返回字段

返回字段 字段类型 说明
message string 提示信息
code string 状态码
error string 异常信息 异常显示
success boolean 返回正常结果为true
rMap(APP 为 'date')

Map(String,Object)

{

    "page": {
            "page": 1,
            "rows": 15,
            "total": 2

    },

    list:[......]

}

返回列表数据容器
obj Object 返回单条结果容器

接口示例(list和obj中请使用 // 标注的字段,未标注的字段无效)

地址:{{url}}/api/wxxt/appointment/detail/1

{
    "message": "查询成功",
    "code": null,
    "error": null,
    "success": true,
    "rMap": {},
    "obj": {
        "sortedConditions": {},
        "id": 1,
        "remark": null,
        "appointmentDate": "2018-08-08 16:51:01",
        "appointmentTime": "2018-08-28 11:51:33",
        "pics": null,
        "dealStatus": 0,
        "deleteStatus": null,
        "isExpired": -1,
        "customer": {
            "sortedConditions": {},
            "userId": "26763",
            "id": 1,
            "phone": "13657244791",
            "name": "xxxx",
            "nickName": "12321的撒大32312",
            "email": null,
            "sex": null,
            "contactPerson": null,
            "contactPhone": null,
            "customerType": null,
            "address": null,
            "remark": null,
            "yzm": null,
            "repassword": null
        },
        "garage": {
            "sortedConditions": {},
            "id": 5,
            "name": "乌鲁木齐维修厂",
            "simpleName": "WLMQ",
            "phone": "13657244791",
            "summary": "轿车小保养",
            "description": null,
            "remark": null,
            "mainPicStr": "mainPicStrFile-1-1535700685752.jpg",
            "pics": null,
            "provePics": null,
            "proveNo": null,
            "businessPics": null,
            "businessNo": null,
            "level": null,
            "web": null,
            "fax": null,
            "holder": null,
            "checkStatus": 0,
            "deleteStatus": 0,
            "recommendStatus": 0,
            "accumulateCommentScore": 0,
            "accumulateCommentNum": 0,
            "registerDate": null,
            "preLoginTime": null,
            "startTime": null,
            "endTime": null,
            "address": null,
            "province": null,
            "city": null,
            "district": null,
            "longitude": null,
            "latitude": null,
            "distance": null,
            "avgServiceScoreScore": null,
            "avgAreaScore": null,
            "avgEfficScore": null,
            "avgScore": null,
            "provinceCode": null,
            "countryCode": null,
            "cljsStatus": null,
            "checkScore": null,
            "checkLevel": null
        },
        "order": {
            "sortedConditions": {},
            "id": 1,
            "orderCode": "1535428293622354",
            "wxOrderCode": null,
            "finalPrice": 300,
            "orderStatus": 0,
            "serviceStatus": 2,
            "commentStatus": 0,
            "makeOrderTime": "2018-08-28 11:51:33",
            "payOrderTime": null,
            "serviceCompleteTime": "2018-09-07 16:06:40",
            "sureServiceTime": "2018-09-07 16:06:40",
            "phone": null,
            "customer": null,
            "serviceItem": {
                "sortedConditions": {},
                "id": 1,
                "code": "SERVICE-4a1714bc615648b8",
                "pic": "picFile-1-1535426377920.jpg",
                "title": "小保养",
                "type": {
                    "sortedConditions": {},
                    "id": 237,
                    "key": "service_item_type",
                    "keyText": null,
                    "value": "cgby",
                    "valueText": "常规保养",
                    "createTime": null,
                    "preEditTime": null
                },
                "summary": "轿车小保养",
                "payType": {
                    "sortedConditions": {},
                    "id": 234,
                    "key": "service_item_pay_type",
                    "keyText": "",
                    "value": "mianyi",
                    "valueText": "面议",
                    "createTime": "2018-07-02",
                    "preEditTime": null
                },
                "price": 0,
                "detail": null,
                "garage": null
            },
            "appointmentWorker": null,
            "worker": {
                "sortedConditions": {},
                "id": 2,
                "name": "李明",
                "workerNo": "WORKER-5d0f5c63878f4773",
                "idNum": null,
                "sex": null,
                "birthDate": null,
                "post": null,
                "telphone": "15422122245",
                "degree": null,
                "address": null,
                "photoNo": null,
                "employeeNo": null,
                "workYear": 1,
                "workerLevel": {
                    "sortedConditions": {},
                    "id": 210,
                    "key": "worker_level",
                    "keyText": "技师等级",
                    "value": "mid",
                    "valueText": "中级技师",
                    "createTime": "2018-05-09",
                    "preEditTime": null
                },
                "summary": null,
                "description": null,
                "remark": null,
                "mainPicStr": "mainPicStrFile-1-1535426894729.jpg",
                "accumulateCommentScore": 0,
                "accumulateCommentNum": 0,
                "accumulateServiceNum": 5,
                "garage": null
            },
            "garage": null
        },
        "contactPerson": "毛博",
        "phone": "15299473749",
        "total": null
    }
}

更新预约的接口

URL

{{url}}/api/wxxt/order/appointment/update/{id}

{{url}}/api/wxxt/appointment/update/{id}

支持格式

JSON

HTTP请求方式

Post

请求参数

返回字段

返回字段 字段类型 说明
message string 提示信息
code string 状态码
error string 异常信息 异常显示
success boolean 返回正常结果为true
rMap(APP 为 'date')

Map(String,Object)

{

    "page": {
            "page": 1,
            "rows": 15,
            "total": 2

    },

    list:[......]

}

返回列表数据容器
obj Object 返回单条结果容器

接口示例(list和obj中请使用 // 标注的字段,未标注的字段无效)

地址:{{url}}/api/wxxt/appointment/update/1

{
    "message": "修改预约成功",//提示信息
    "code": null,
    "error": null,//后台异常报错
    "success": true,//成功返回为true
    "rMap": {},
    "obj": null
}

用户取消预约单接口(只能取消未支付并且未服务的预约)

URL

{{url}}/api/wxxt/order/appointment/{id}

支持格式

JSON

HTTP请求方式

delete

请求参数

返回字段

返回字段 字段类型 说明
message string 提示信息
code string 状态码
error string 异常信息 异常显示
success boolean 返回正常结果为true
rMap(APP 为 'date')

Map(String,Object)

{

    "page": {
            "page": 1,
            "rows": 15,
            "total": 2

    },

    list:[......]

}

返回列表数据容器
obj Object 返回单条结果容器

接口示例(list和obj中请使用 // 标注的字段,未标注的字段无效)

地址:{{url}}/api/wxxt/order/appointment/{id}

服务项接口调用

接口功能

获取服务项的接口

URL

{{url}}/api/wxxt/serviceItem

支持格式

JSON

HTTP请求方式

GET

请求参数

返回字段

返回字段 字段类型 说明
message string 提示信息
code string 状态码
error string 异常信息 异常显示
success boolean 返回正常结果为true
rMap

Map(String,Object)

{

    "page": {
            "page": 1,
            "rows": 15,
            "total": 2

    },

    list:[......]

}

返回列表数据容器
obj Object 返回单条结果容器

接口示例(list中请使用 // 标注的字段,未标注的字段无效)

地址:{{url}}/api/wxxt/serviceItem?page=1&rows=15&typeParam.value=lthx

{
    "message": "查询服务项成功",
    "code": null,
    "error": null,
    "success": true,
    "rMap": {
        "list": [
            {
                "sortedConditions": {},
                "id": 2,//服务项的id
                "code": "SERVICE-bbda83791c364917",//服务项的编码
                "pic": "picFile-1-1535426410517.jpg",//服务项的图片
                "title": "换轮胎",//服务项的标题
                "type": {
                    "sortedConditions": {},
                    "id": 243,//类型
                    "key": "service_item_type",//类型key
                    "keyText": null,
                    "value": "lthx",//类型value
                    "valueText": "轮胎换修",//类型文本
                    "createTime": null,
                    "preEditTime": null
                },
                "summary": "轿车换轮胎",//简介
                "payType": {
                    "sortedConditions": {},
                    "id": 234,//类型
                    "key": "service_item_pay_type",//类型key
                    "keyText": "",
                    "value": "mianyi",//类型value
                    "valueText": "面议",//类型文本
                    "createTime": "2018-07-02",
                    "preEditTime": null
                },
                "price": 0,
                "detail": null,
                "garage": {
                    "sortedConditions": {},
                    "id": 5,//维修厂id
                    "name": "乌鲁木齐维修厂",//维修厂名称
                    "simpleName": null,
                    "phone": null,
                    "summary": null,
                    "description": null,
                    "remark": null,
                    "mainPicStr": null,
                    "pics": null,
                    "provePics": null,
                    "proveNo": null,
                    "businessPics": null,
                    "businessNo": null,
                    "level": null,
                    "web": null,
                    "fax": null,
                    "holder": null,
                    "checkStatus": 0,
                    "deleteStatus": 0,
                    "recommendStatus": 0,
                    "accumulateCommentScore": 0,
                    "accumulateCommentNum": 0,
                    "registerDate": null,
                    "preLoginTime": null,
                    "startTime": null,
                    "endTime": null,
                    "address": null,
                    "province": null,
                    "city": null,
                    "district": null,
                    "longitude": null,
                    "latitude": null,
                    "distance": null,
                    "avgServiceScoreScore": null,
                    "avgAreaScore": null,
                    "avgEfficScore": null,
                    "avgScore": null,
                    "provinceCode": null,
                    "countryCode": null,
                    "cljsStatus": null
                }
            },
            {
                "sortedConditions": {},
                "id": 4,
                "code": "SERVICE-b71f9afe437144e6",
                "pic": "picFile-1-1535426511775.png",
                "title": "胎压检测仪",
                "type": {
                    "sortedConditions": {},
                    "id": 243,
                    "key": "service_item_type",
                    "keyText": null,
                    "value": "lthx",
                    "valueText": "轮胎换修",
                    "createTime": null,
                    "preEditTime": null
                },
                "summary": "胎压检测仪",
                "payType": {
                    "sortedConditions": {},
                    "id": 235,
                    "key": "service_item_pay_type",
                    "keyText": "",
                    "value": "xianfu",
                    "valueText": "现付",
                    "createTime": "2018-07-02",
                    "preEditTime": null
                },
                "price": 250,
                "detail": null,
                "garage": {
                    "sortedConditions": {},
                    "id": 5,
                    "name": "乌鲁木齐维修厂",
                    "simpleName": null,
                    "phone": null,
                    "summary": null,
                    "description": null,
                    "remark": null,
                    "mainPicStr": null,
                    "pics": null,
                    "provePics": null,
                    "proveNo": null,
                    "businessPics": null,
                    "businessNo": null,
                    "level": null,
                    "web": null,
                    "fax": null,
                    "holder": null,
                    "checkStatus": 0,
                    "deleteStatus": 0,
                    "recommendStatus": 0,
                    "accumulateCommentScore": 0,
                    "accumulateCommentNum": 0,
                    "registerDate": null,
                    "preLoginTime": null,
                    "startTime": null,
                    "endTime": null,
                    "address": null,
                    "province": null,
                    "city": null,
                    "district": null,
                    "longitude": null,
                    "latitude": null,
                    "distance": null,
                    "avgServiceScoreScore": null,
                    "avgAreaScore": null,
                    "avgEfficScore": null,
                    "avgScore": null,
                    "provinceCode": null,
                    "countryCode": null,
                    "cljsStatus": null
                }
            }
        ],
        "page": {
            "page": 1,
            "rows": 15,
            "total": 2
        }
    },
    "obj": null
}

猜你喜欢

转载自blog.csdn.net/IRonSir/article/details/82790760