mirror of
https://gitee.com/dromara/RuoYi-Vue-Plus.git
synced 2026-09-18 09:35:29 +08:00
字体上传
This commit is contained in:
parent
1b74f4a39d
commit
02ac6da125
@ -24,7 +24,7 @@ DROP TABLE IF EXISTS `h5_font`;
|
||||
CREATE TABLE `h5_font`
|
||||
(
|
||||
`id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键ID',
|
||||
`source_id` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '字体来源',
|
||||
`source` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '字体来源',
|
||||
`name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '字体名称',
|
||||
`preview` json NOT NULL COMMENT '预览(JSON格式)',
|
||||
`lang` varchar(10) NOT NULL COMMENT '字体语言类型:zh-中文,en-英文',
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@ -1,5 +1,6 @@
|
||||
package com.luban.api.dto;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
|
||||
import com.luban.api.util.TimestampToLocalDateTimeDeserializer;
|
||||
import lombok.Data;
|
||||
@ -21,7 +22,7 @@ public class FontDTO {
|
||||
/**
|
||||
* 字体来源
|
||||
*/
|
||||
private String sourceId;
|
||||
private String source;
|
||||
|
||||
/**
|
||||
* 字体名称
|
||||
@ -68,6 +69,7 @@ public class FontDTO {
|
||||
private String url;
|
||||
private Integer width;
|
||||
private Integer height;
|
||||
@JsonProperty("partial_video")
|
||||
private String partialVideo;
|
||||
private String video;
|
||||
private String hex;
|
||||
@ -86,9 +88,13 @@ public class FontDTO {
|
||||
private String woff;
|
||||
private String ttf;
|
||||
private String lang;
|
||||
@JsonProperty("origin_file")
|
||||
private OriginFile originFile;
|
||||
@JsonProperty("woff_size")
|
||||
private Integer woffSize;
|
||||
@JsonProperty("ttf_size")
|
||||
private Integer ttfSize;
|
||||
@JsonProperty("meta_data")
|
||||
private MetaData metaData;
|
||||
}
|
||||
|
||||
|
||||
@ -1,12 +1,12 @@
|
||||
package com.luban.api.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.*;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
@ -14,15 +14,11 @@ import java.time.LocalDateTime;
|
||||
*
|
||||
* @author your-name
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode
|
||||
@Accessors(chain = true)
|
||||
@Getter
|
||||
@Setter
|
||||
@TableName("h5_font")
|
||||
@Schema(title = "字体对象")
|
||||
public class Font implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public class Font {
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
@ -32,7 +28,7 @@ public class Font implements Serializable {
|
||||
/**
|
||||
* 字体来源
|
||||
*/
|
||||
private String sourceId;
|
||||
private String source;
|
||||
|
||||
/**
|
||||
* 字体名称
|
||||
|
||||
Loading…
Reference in New Issue
Block a user