mirror of
https://gitee.com/dromara/RuoYi-Vue-Plus.git
synced 2026-09-18 17:38:48 +08:00
77 lines
1.9 KiB
HTTP
77 lines
1.9 KiB
HTTP
### 批量上传字体
|
|
POST http://localhost:19200/h5/font/create
|
|
Content-Type: application/json
|
|
|
|
[
|
|
{
|
|
"id": 1,
|
|
"sourceId": "GD",
|
|
"name": "OpenSans-Bold",
|
|
"preview": {
|
|
"url": "https://st0.dancf.com/csc/49/fonts/0/20200809-105104-c105.svg",
|
|
"width": 490,
|
|
"height": 80,
|
|
"partialVideo": "",
|
|
"video": "",
|
|
"hex": "",
|
|
"duration": 0
|
|
},
|
|
"content": {
|
|
"family": "Open Sans",
|
|
"alias": "Open Sans Bold",
|
|
"style": "normal",
|
|
"weight": 700,
|
|
"woff": "https://gd-filems.dancf.com/gaoding/editor/20240116-211715-jaeea.woff",
|
|
"ttf": "https://gd-filems.dancf.com/gaoding/editor/20240116-211715-kiige.ttf",
|
|
"lang": "en",
|
|
"originFile": {
|
|
"size": 104120,
|
|
"url": "https://st0.dancf.com/csc/49/fonts/0/20200809-105059-cc06.ttf"
|
|
},
|
|
"woffSize": 56092,
|
|
"ttfSize": 92500,
|
|
"metaData": {
|
|
"ascent": 2189,
|
|
"descent": -600,
|
|
"emSize": 2048,
|
|
"typoAscent": 2189,
|
|
"typoDescent": -600,
|
|
"typoLineGap": 0,
|
|
"winAscent": 2189,
|
|
"winDescent": 600,
|
|
"capitalHeight": 1462,
|
|
"underlinePosition": -154,
|
|
"underlineThickness": 102,
|
|
"fsType": 0,
|
|
"hheadAscent": 2189,
|
|
"hheadDescent": -600,
|
|
"hheadLineGap": 0,
|
|
"xheight": 1118
|
|
}
|
|
},
|
|
"lang": "en",
|
|
"alias": "Open Sans Bold",
|
|
"authorizationId": 26,
|
|
"userOverRole": 0,
|
|
"saleType": 0,
|
|
"createTime": 1602230400,
|
|
"updateTime": 1602230400
|
|
}
|
|
]
|
|
|
|
### 分页查询字体
|
|
GET http://localhost:19200/h5/font/page?name=OpenSans&type=en&pageNum=1&pageSize=10
|
|
Accept: application/json
|
|
|
|
### 根据字体族名称列表查询字体
|
|
POST http://localhost:19200/h5/font/list
|
|
Content-Type: application/json
|
|
|
|
[
|
|
"Open Sans"
|
|
]
|
|
|
|
### 根据ID获取字体详情
|
|
GET http://localhost:19200/h5/font/1
|
|
Accept: application/json
|