@@ -39,9 +66,9 @@ const uploadFont = (title, isRename?: boolean) => {
上传字库文件
- 设为默认字体
+ 设为默认字体
重命名
- 删除
+ 删除
diff --git a/sdk/api/api-base/src/main/java/io/dataease/api/font/api/FontApi.java b/sdk/api/api-base/src/main/java/io/dataease/api/font/api/FontApi.java
new file mode 100644
index 0000000000..3b4dd284b3
--- /dev/null
+++ b/sdk/api/api-base/src/main/java/io/dataease/api/font/api/FontApi.java
@@ -0,0 +1,49 @@
+package io.dataease.api.font.api;
+
+import com.github.xiaoymin.knife4j.annotations.ApiSupport;
+
+import io.dataease.api.ds.vo.ExcelFileData;
+import io.dataease.api.font.dto.FontDto;
+import io.dataease.exception.DEException;
+import io.swagger.v3.oas.annotations.Operation;
+import io.swagger.v3.oas.annotations.tags.Tag;
+import org.springframework.web.bind.annotation.PathVariable;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestParam;
+import org.springframework.web.multipart.MultipartFile;
+
+import java.util.List;
+
+
+/**
+ * @Author Junjun
+ */
+@Tag(name = "数据集管理:数据")
+@ApiSupport(order = 972)
+public interface FontApi {
+
+ @Operation(summary = "预览数据")
+ @PostMapping("listFont")
+ public List list(@RequestBody FontDto fontDto) throws Exception;
+
+ @Operation(summary = "创建")
+ @PostMapping("/create")
+ public FontDto create(@RequestBody FontDto fontDto);
+
+ @Operation(summary = "编辑")
+ @PostMapping("/edit")
+ public FontDto edit(@RequestBody FontDto fontDto);
+
+ @Operation(summary = "删除")
+ @PostMapping("/delete/{id}")
+ public void delete(@PathVariable("id") Long id);
+
+ @Operation(summary = "变更默认设置")
+ @PostMapping("/changeDefault/")
+ public void changeDefault(@RequestBody FontDto fontDto);
+
+ @PostMapping("/uploadFile")
+ void upload(@RequestParam("file") MultipartFile file, @RequestParam("id") long fontID) throws DEException;
+
+}
diff --git a/sdk/api/api-base/src/main/java/io/dataease/api/typeface/dto/SysTypefaceDto.java b/sdk/api/api-base/src/main/java/io/dataease/api/font/dto/FontDto.java
similarity index 85%
rename from sdk/api/api-base/src/main/java/io/dataease/api/typeface/dto/SysTypefaceDto.java
rename to sdk/api/api-base/src/main/java/io/dataease/api/font/dto/FontDto.java
index 68fa23cdd6..c732f99b1f 100644
--- a/sdk/api/api-base/src/main/java/io/dataease/api/typeface/dto/SysTypefaceDto.java
+++ b/sdk/api/api-base/src/main/java/io/dataease/api/font/dto/FontDto.java
@@ -1,11 +1,11 @@
-package io.dataease.api.typeface.dto;
+package io.dataease.api.font.dto;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
@Data
-public class SysTypefaceDto {
+public class FontDto {
@JsonSerialize(using = ToStringSerializer.class)
private Long id;
@@ -28,5 +28,7 @@ public class SysTypefaceDto {
* 是否默认
*/
private Boolean isDefault;
+
+ private Boolean isBuiltin;
}
diff --git a/sdk/api/api-base/src/main/java/io/dataease/api/typeface/api/SysTypefaceApi.java b/sdk/api/api-base/src/main/java/io/dataease/api/typeface/api/SysTypefaceApi.java
deleted file mode 100644
index 4bc2296ac6..0000000000
--- a/sdk/api/api-base/src/main/java/io/dataease/api/typeface/api/SysTypefaceApi.java
+++ /dev/null
@@ -1,40 +0,0 @@
-package io.dataease.api.typeface.api;
-
-
-import com.github.xiaoymin.knife4j.annotations.ApiSupport;
-
-import io.dataease.api.typeface.dto.SysTypefaceDto;
-import io.dataease.auth.DeApiPath;
-import io.swagger.v3.oas.annotations.Operation;
-import io.swagger.v3.oas.annotations.tags.Tag;
-import org.springframework.web.bind.annotation.GetMapping;
-import org.springframework.web.bind.annotation.PathVariable;
-import org.springframework.web.bind.annotation.PostMapping;
-import org.springframework.web.bind.annotation.RequestBody;
-
-import java.util.List;
-
-import static io.dataease.constant.AuthResourceEnum.SYSTEM;
-
-@Tag(name = "字体管理")
-@ApiSupport(order = 881, author = "fit2cloud-someone")
-@DeApiPath(value = "/sysTypeface", rt = SYSTEM)
-public interface SysTypefaceApi {
-
- @Operation(summary = "创建")
- @PostMapping("/create")
- SysTypefaceDto create(@RequestBody SysTypefaceDto sysVariableDto);
-
- @Operation(summary = "编辑")
- @PostMapping("/edit")
- SysTypefaceDto edit(@RequestBody SysTypefaceDto sysVariableDto);
-
- @Operation(summary = "删除")
- @PostMapping("/delete/{id}")
- void delete(@PathVariable("id") Long id);
-
- @Operation(summary = "变更默认设置")
- @PostMapping("/changeDefault/")
- void changeDefault(@RequestBody SysTypefaceDto sysVariableDto);
-
-}