Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
swagger
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张允禹
swagger
Commits
697a7ab6
Commit
697a7ab6
authored
Aug 13, 2016
by
Skyler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add api about service and reserve
parent
19dfa429
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
232 additions
and
1 deletion
+232
-1
ascle.yaml
ascle.yaml
+232
-1
No files found.
ascle.yaml
View file @
697a7ab6
...
@@ -282,4 +282,235 @@ paths:
...
@@ -282,4 +282,235 @@ paths:
success
:
true
success
:
true
error_code
:
0
error_code
:
0
# ------------------------
# ------------------------
# ----Skyler start--------------------
/service
:
get
:
summary
:
美购列表
description
:
经营管理--美购销量; 项目管理--项目列表
parameters
:
-
name
:
page
in
:
query
description
:
分页
required
:
false
type
:
integer
format
:
integer
-
name
:
order_by
in
:
query
description
:
排序字段
required
:
false
type
:
integer
format
:
integer
tags
:
-
Service
responses
:
'
200'
:
description
:
OK
schema
:
{}
examples
:
application/json
:
data
:
total
:
100
page
:
1
size
:
10
services
:
type
:
array
items
:
service_name
:
美购名称
gengmei_price
:
2200
pre_payment_price
:
200
hospital_payment
:
2000
sell_amount
:
100
used_amount
:
1
refunded_amount
:
1
refunded_rate
:
1%
is_multiattribute
:
false
is_online
:
true
online_time
:
1458730446
message
:
'
'
error
:
0
# ------------------------
/reserve
:
get
:
summary
:
预约列表
description
:
预约列表
parameters
:
-
name
:
page
in
:
query
description
:
分页
required
:
false
type
:
integer
format
:
integer
tags
:
-
Reserve
responses
:
'
200'
:
description
:
OK
schema
:
{}
examples
:
application/json
:
data
:
total
:
100
page
:
1
size
:
10
reserves
:
type
:
array
items
:
timestamp
:
1458730446
date
:
YYYY-mm-DD
time
:
HH:MM
status
:
0
type
:
1
type_desc
:
面诊
address
:
北京医院
service_name
:
美购名称
user_name
:
用户名称
user_key
:
"
12334_33223"
message
:
'
'
error
:
0
# ------------------------
/reserve/<id>/set_status
:
post
:
summary
:
预约列表
description
:
预约列表
parameters
:
-
name
:
status
in
:
query
description
:
2--> 确认; 3--> 取消
required
:
true
type
:
integer
format
:
integer
tags
:
-
Reserve
responses
:
'
200'
:
description
:
OK
schema
:
{}
examples
:
application/json
:
message
:
'
'
error
:
0
# ------------------------
/address
:
get
:
summary
:
医生地址列表
description
:
医生地址列表
tags
:
-
Address
responses
:
'
200'
:
description
:
OK
schema
:
{}
examples
:
application/json
:
data
:
adresses
:
type
:
array
items
:
id
:
1458730446
desc
:
地址描述
message
:
'
'
error
:
0
# ------------------------
/address/create
:
post
:
summary
:
添加地址
description
:
添加地址
parameters
:
-
name
:
lng
in
:
formData
description
:
经度
required
:
true
type
:
string
format
:
string
-
name
:
lat
in
:
formData
description
:
纬度
required
:
true
type
:
string
format
:
string
-
name
:
location
in
:
formData
description
:
地址名称
required
:
true
type
:
string
format
:
string
-
name
:
desc
in
:
formData
description
:
地址详细
required
:
true
type
:
string
format
:
string
tags
:
-
Address
responses
:
'
200'
:
description
:
OK
schema
:
{}
examples
:
application/json
:
message
:
'
'
data
:
id
:
23,
desc
:
地址描述
error
:
0
# ------------------------
/reserve/schedule
:
get
:
summary
:
获取预约时间
description
:
获取预约时间
parameters
:
-
name
:
date
in
:
query
description
:
YYYY-mm-DD, 每周周一的day
required
:
true
type
:
string
format
:
string
tags
:
-
Reserve
responses
:
'
200'
:
description
:
OK
schema
:
{}
examples
:
application/json
:
data
:
schedules
:
type
:
array
items
:
id
:
2016-06-13
title
:
06月13日 周一
am
:
end_time
:
"
12:00"
start_time
:
"
10:00"
address_id
:
123
reservation_type
:
2
address_desc
:
北京武警三院
pm
:
end_time
:
"
18:00"
start_time
:
"
15:00"
address_id
:
123
reservation_type
:
2
address_desc
:
北京武警三院
message
:
'
'
error
:
0
post
:
summary
:
设置预约时间
description
:
设置预约时间
parameters
:
-
name
:
data
in
:
query
description
:
JOSNString(格式为GET请求返回的数据格式,数组数据即可)
required
:
true
type
:
string
format
:
string
tags
:
-
Reserve
responses
:
'
200'
:
description
:
OK
schema
:
{}
examples
:
application/json
:
message
:
'
'
error
:
0
# ----Skyler end--------------------
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment