### 1. 分页查询分类(查询一级分类) GET http://localhost:19200/h5/h5/category/page?pageNum=1&pageSize=10&parentId=1 Content-Type: application/json ### 2. 分页查询分类(查询指定父分类的子分类) GET {{baseUrl}}/h5/category/page?pageNum=1&pageSize=10&parentId=1 Content-Type: application/json ### 3. 分页查询分类(带类型过滤) GET {{baseUrl}}/h5/category/page?pageNum=1&pageSize=10&type=text Content-Type: application/json ### 4. 分页查询分类(带关键词搜索) GET {{baseUrl}}/h5/category/page?pageNum=1&pageSize=10&keyword=文字 Content-Type: application/json ### 5. 根据类型查询分类 GET {{baseUrl}}/h5/category/by-type?type=text Content-Type: application/json ### 6. 获取分类树形结构 GET {{baseUrl}}/h5/category/tree Content-Type: application/json ### 7. 创建分类(一级分类) POST {{baseUrl}}/h5/category Content-Type: application/json { "parentId": 0, "name": "测试分类", "type": "text", "sort": 100, "icon": "https://example.com/icon.png", "description": "这是一个测试分类", "isSystem": 0 } ### 8. 创建分类(二级分类) POST {{baseUrl}}/h5/category Content-Type: application/json { "parentId": 1, "name": "测试子分类", "type": "text", "sort": 1, "description": "这是一个测试子分类", "isSystem": 0 } ### 9. 更新分类 POST {{baseUrl}}/h5/category/update/1 Content-Type: application/json { "id": 1, "parentId": 0, "name": "更新后的分类名称", "type": "text", "sort": 100, "icon": "https://example.com/new-icon.png", "description": "更新后的分类描述", "isSystem": 0 } ### 10. 删除分类 POST {{baseUrl}}/h5/category/delete/1 Content-Type: application/json ### 11. 查询所有一级分类(旧接口,保留兼容) GET {{baseUrl}}/h5/category/top-level Content-Type: application/json ### 12. 根据父分类 ID 查询子分类(旧接口,保留兼容) GET {{baseUrl}}/h5/category/children?parentId=1 Content-Type: application/json