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
10610b40
Commit
10610b40
authored
Aug 15, 2016
by
zhangxiaolin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加用户相关
parent
10b8b43f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
136 additions
and
27 deletions
+136
-27
ascle.yaml
ascle.yaml
+136
-27
No files found.
ascle.yaml
View file @
10610b40
...
...
@@ -20,7 +20,6 @@ paths:
examples
:
application/json
:
error_code
:
0
success
:
true
data
:
doctor
:
department
:
美容外科
...
...
@@ -46,6 +45,29 @@ paths:
id
:
jnpayl
error
:
0
message
:
'
'
# ------------------------
/account/user
:
post
:
summary
:
修改用户信息
description
:
修改用户信息
parameters
:
-
name
:
good_at
in
:
formData
description
:
擅长,不能超过14个字
required
:
true
type
:
string
format
:
string
-
name
:
introduction
in
:
formData
description
:
个人简介
required
:
true
type
:
string
format
:
string
tags
:
-
Account
responses
:
'
200'
:
description
:
OK
# ------------------------
/account/captcha
:
get
:
...
...
@@ -56,15 +78,16 @@ paths:
-
Account
responses
:
'
200'
:
description
:
图片验证码
description
:
ok
# ------------------------
/account/login
:
post
:
summary
:
登录
description
:
登录
parameters
:
-
name
:
phon
e
-
name
:
nam
e
in
:
formData
description
:
用户手机号
.
description
:
用户手机号
(以后可能会是邮箱等)
required
:
true
type
:
string
format
:
string
...
...
@@ -76,7 +99,7 @@ paths:
format
:
string
-
name
:
password
in
:
formData
description
:
密码.
description
:
密码.
(密码,验证码必有一个)
required
:
false
type
:
string
format
:
string
...
...
@@ -90,7 +113,107 @@ paths:
-
Account
responses
:
'
200'
:
description
:
An array of price estimates by product
description
:
ok
schema
:
{}
examples
:
application/json
:
error_code
:
0
data
:
doctor
:
department
:
美容外科
phone
:
'
15288842299'
accept_reserve
:
true
name
:
王飏
portrait
:
http://wanmeizhensuo.qiniudn.com/2015/02/14/9c808ed226
introduction
:
introduction
id
:
wangyang
title
:
主治医师
is_online
:
false
user
:
in_blacklist
:
false
phone
:
'
12345678912'
address
:
'
'
id
:
602329
portrait
:
http://wanmeizhensuo.qiniudn.com/2015/02/14/9c808ed226
city
:
台北
real_name
:
'
'
nick_name
:
王飏 医生
hospital
:
name
:
济南鹏爱整形美容医院
id
:
jnpayl
error
:
0
message
:
'
'
# ------------------------
account/logout
:
post
:
summary
:
登录出去
description
:
登录出去
tags
:
-
Account
responses
:
'
200'
:
description
:
OK
schema
:
{}
examples
:
application/json
:
error_code
:
0
error
:
0
message
:
'
'
data
:
null
# ------------------------
account/code
:
post
:
summary
:
发送手机验证码
description
:
发送手机验证码
tags
:
-
Account
parameters
:
-
name
:
type
in
:
formData
description
:
是那种类型要求发送的(1, LOGIN, u登陆) (3, UPDATE,修改属性) (4, REGISTER,提交注册)
required
:
true
type
:
integer
format
:
integer
responses
:
'
200'
:
description
:
OK
schema
:
{}
examples
:
application/json
:
error_code
:
0
error
:
0
message
:
'
'
data
:
null
# ------------------------
account/password
:
post
:
summary
:
更改密码
description
:
更改密码
tags
:
-
Account
parameters
:
-
name
:
new_password
in
:
formData
description
:
新密码
required
:
true
type
:
string
format
:
string
-
name
:
code
in
:
formData
description
:
手机验证码
required
:
true
type
:
integer
format
:
integer
responses
:
'
200'
:
description
:
OK
schema
:
{}
examples
:
application/json
:
error_code
:
0
error
:
0
message
:
'
'
data
:
null
# ------------------------
/agreement/{id}
:
get
:
...
...
@@ -114,13 +237,6 @@ paths:
id
:
2
error
:
0
message
:
'
'
parameters
:
-
name
:
id
in
:
path
description
:
对帐单ID
required
:
true
type
:
integer
format
:
integer
# ------------------------
/agreement/{id}/accept
:
post
:
...
...
@@ -131,13 +247,13 @@ paths:
responses
:
'
200'
:
description
:
OK
parameters
:
-
name
:
id
in
:
path
description
:
对帐单ID
required
:
true
type
:
integer
format
:
integer
schema
:
{}
examples
:
application/json
:
error_code
:
0
error
:
0
message
:
'
'
data
:
null
# ------------------------
/agreement/no_accepted
:
get
:
...
...
@@ -251,13 +367,6 @@ paths:
error
:
0
success
:
true
error_code
:
0
parameters
:
-
name
:
id
in
:
path
description
:
对帐单ID
required
:
true
type
:
integer
format
:
integer
# ------------------------
/switch
:
get
:
...
...
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