mirror of
https://gitee.com/dromara/RuoYi-Vue-Plus.git
synced 2026-09-18 09:35:29 +08:00
75 lines
1.7 KiB
HTTP
75 lines
1.7 KiB
HTTP
### 查询所有H5项目
|
|
GET http://localhost:19200/h5/h5-projects
|
|
Accept: application/json
|
|
|
|
### 分页查询H5项目
|
|
GET http://localhost:19200/h5/h5-projects/page?pageNum=1&pageSize=10
|
|
Accept: application/json
|
|
|
|
### 根据ID查询H5项目
|
|
GET http://localhost:19200/h5/h5-projects/1
|
|
Accept: application/json
|
|
|
|
### 创建H5项目
|
|
POST http://localhost:19200/h5/h5-projects
|
|
Content-Type: application/json
|
|
|
|
{
|
|
"type": "type1",
|
|
"title": "测试项目",
|
|
"content": {
|
|
"version": "6.0.0",
|
|
"type": "poster",
|
|
"global": {
|
|
"zoom": 0.582425068119891,
|
|
"dpi": 72,
|
|
"unit": "px"
|
|
},
|
|
"layouts": []
|
|
},
|
|
"contentUpdatedAt": 1620000000,
|
|
"description": "这是一个测试项目",
|
|
"previewUrl": "http://example.com/preview.jpg",
|
|
"previewUrlWatermark": "http://example.com/preview-watermark.jpg",
|
|
"previewWidth": 375,
|
|
"previewHeight": 667,
|
|
"status": 1,
|
|
"groupIds": [1, 2]
|
|
}
|
|
|
|
### 更新H5项目
|
|
PUT http://localhost:19200/h5/h5-projects/1
|
|
Content-Type: application/json
|
|
|
|
{
|
|
"type": "type1",
|
|
"title": "更新后的测试项目",
|
|
"content": {
|
|
"version": "6.0.0",
|
|
"type": "poster",
|
|
"global": {
|
|
"zoom": 0.582425068119891,
|
|
"dpi": 72,
|
|
"unit": "px"
|
|
},
|
|
"layouts": [
|
|
{
|
|
"title": "画板 1",
|
|
"width": 750,
|
|
"height": 1468
|
|
}
|
|
]
|
|
},
|
|
"contentUpdatedAt": 1620000001,
|
|
"description": "这是更新后的测试项目",
|
|
"previewUrl": "http://example.com/preview2.jpg",
|
|
"previewUrlWatermark": "http://example.com/preview2-watermark.jpg",
|
|
"previewWidth": 375,
|
|
"previewHeight": 667,
|
|
"status": 1,
|
|
"groupIds": [1, 3]
|
|
}
|
|
|
|
### 删除H5项目
|
|
DELETE http://localhost:19200/h5/h5-projects/1
|
|
Accept: application/json |