-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
75 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
## 账号 | ||
### [用户 (/users)](users/README.md) | ||
### [公司 (/companies)](companies/README.md) | ||
## [商品 (/goods)](goods/README.md) | ||
## [单据 (/bill)](bill/README.md) | ||
## [库存 (/storage)](storage/README.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# 单据 (/bill) | ||
采购、销售 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# 公司 (/companies) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# 商品 (/goods) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# 库存 (/storage) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# 用户详情 : GET /users/(?P<type>\w+)/(?P<id>\d+) | ||
获取用户的详细信息 | ||
|
||
## 路径中正则参数(子表达式)说明 | ||
- type (string): 类型 | ||
- id (int): ID | ||
|
||
## 返回头说明 | ||
- Set-Cookie: 返回登录会话 | ||
|
||
## 返回体说明(application/json) | ||
```json5 | ||
{ | ||
"code": "", # ok表示成功,其他表示错误代码 | ||
"message": "", # 与code对应的描述信息 | ||
"data": { # 返回的数据 | ||
"Id": 0, # ID | ||
"Name": "" # 名称 | ||
} | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# 用户列表 : GET /users | ||
列出所有的用户 | ||
|
||
## Query参数说明 | ||
- page (int): 页码 | ||
- type (string): 类型 | ||
- id (int): ID | ||
- flag (bool): 标志 | ||
|
||
## 请求头说明 | ||
- Cookie (string): Cookie中包含会话信息 | ||
|
||
## 请求体说明(application/json) | ||
```json5 | ||
{ | ||
"Name": "", # 名称 | ||
"Type": "", # 类型 | ||
"Id": 0, # ID | ||
"Flag": false # 标志 | ||
} | ||
``` | ||
|
||
## 返回体说明(application/json) | ||
```json5 | ||
{ | ||
"code": "", # ok表示成功,其他表示错误代码 | ||
"message": "", # 与code对应的描述信息 | ||
"data": [ # 返回的数据 | ||
{ | ||
"Id": 0, # ID | ||
"Name": "" # 名称 | ||
} | ||
] | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# 用户 (/users) | ||
### [用户列表 : GET /users](GET.md) | ||
### [用户详情 : GET /users/(?P<type>\w+)/(?P<id>\d+)](%28%3FP%3Ctype%3E%5Cw+%29/GET_%28%3FP%3Cid%3E%5Cd+%29.md) |