优化更新
This commit is contained in:
@@ -51,7 +51,7 @@
|
||||
### R.ok() 成功响应
|
||||
|
||||
```python
|
||||
from src.core.response import R
|
||||
from src.core import response as R
|
||||
|
||||
# 基础成功响应
|
||||
return R.ok()
|
||||
@@ -114,7 +114,7 @@ return R.page(data=records, total=100, current=1, size=10)
|
||||
## 在 Router 中使用
|
||||
|
||||
```python
|
||||
from src.core.response import R
|
||||
from src.core import response as R
|
||||
|
||||
# 查询详情:service 返回 dict,router 包 R.ok
|
||||
@position_blue.route('/detail/<int:id>', methods=['GET'])
|
||||
|
||||
Reference in New Issue
Block a user