更新数据库,增加apifox实体json
This commit is contained in:
19
schoolNewsServ/.doc/apifox/domain/page/PageDomain.json
Normal file
19
schoolNewsServ/.doc/apifox/domain/page/PageDomain.json
Normal file
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"title": "PageDomain",
|
||||
"description": "分页数据实体类",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"pageParam": {
|
||||
"$ref": "PageParam.json",
|
||||
"description": "分页参数"
|
||||
},
|
||||
"dataList": {
|
||||
"type": "array",
|
||||
"description": "数据列表",
|
||||
"items": {},
|
||||
"example": []
|
||||
}
|
||||
},
|
||||
"required": ["pageParam", "dataList"]
|
||||
}
|
||||
36
schoolNewsServ/.doc/apifox/domain/page/PageParam.json
Normal file
36
schoolNewsServ/.doc/apifox/domain/page/PageParam.json
Normal file
@@ -0,0 +1,36 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"title": "PageParam",
|
||||
"description": "分页参数",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"pageNumber": {
|
||||
"type": "integer",
|
||||
"description": "当前页码",
|
||||
"minimum": 1,
|
||||
"default": 1,
|
||||
"example": 1
|
||||
},
|
||||
"pageSize": {
|
||||
"type": "integer",
|
||||
"description": "每页显示数量",
|
||||
"minimum": 1,
|
||||
"maximum": 1000,
|
||||
"default": 10,
|
||||
"example": 10
|
||||
},
|
||||
"totalPages": {
|
||||
"type": "integer",
|
||||
"description": "总页数",
|
||||
"minimum": 0,
|
||||
"example": 5
|
||||
},
|
||||
"totalElements": {
|
||||
"type": "integer",
|
||||
"description": "总记录数",
|
||||
"minimum": 0,
|
||||
"example": 50
|
||||
}
|
||||
},
|
||||
"required": ["pageNumber", "pageSize", "totalPages", "totalElements"]
|
||||
}
|
||||
Reference in New Issue
Block a user