Skip to content
New Future edited this page Oct 24, 2015 · 1 revision

打印店信息查询

获取打印店列表 GET /printers/

GET /printers/?page=1&sch_id=1

参数说明:

page页数,没有此参数默认为1 sch_id学校id,没有此参数默认为所有学校

{
"status": 1,
"info":[
{
"id": "1",
"name": "打印店名称",
"sch_id": "学校id",
"address": "打印店地址"
}
]
}

获取打印店详情 GET /printers/:id

【登陆后才允许访问】

GET /printers/12

响应结果

{
"status": 1,
"info":{
"name": "11",
"sch_id": "1",
"address": "地点",
"phone": "18222285110",
"email": "[email protected]",
"qq": "123456789",
"profile": "打印店简介",
"image": "图片地址",
"open": "开放时间",
"price":{"c_s": 彩印单面, "c_d": 彩印双面, "s": 单面, "d": 双面},
"other": "其他优惠说明信息",
"id": 12
}
}

获取打印店价格 GET /printers/:id/price

GET /printers/12/price

响应结果

{
"status": 1,
"info":{
"c_s": 1,
"c_d": 2,
"s": 0.1,
"d": 0.14,
"other": "其他说明信息"
}
}

学生端接口

打印店端接口

约定说明

Clone this wiki locally