forked from github/dataease
commit
7d1e11dd1e
@ -29,6 +29,7 @@ i18n_menu.plugin=\u63D2\u4EF6\u7BA1\u7406
|
||||
i18n_menu.platform=\u5E73\u53F0\u5BF9\u63A5
|
||||
i18n_menu.appearance=\u5916\u89C2\u914D\u7F6E
|
||||
i18n_menu.sysVariable=\u7CFB\u7EDF\u53D8\u91CF
|
||||
i18n_menu.sysTypeface=\u5b57\u4f53\u7ba1\u7406
|
||||
i18n_field_name_repeat=\u6709\u91CD\u590D\u5B57\u6BB5\u540D\uFF1A
|
||||
i18n_pid_not_eq_id=\u79FB\u52A8\u76EE\u6807\u4E0D\u80FD\u662F\u81EA\u5DF1\u6216\u5B50\u76EE\u5F55
|
||||
i18n_ds_name_exists=\u8BE5\u5206\u7EC4\u4E0B\u540D\u79F0\u91CD\u590D
|
||||
|
@ -0,0 +1,40 @@
|
||||
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);
|
||||
|
||||
}
|
@ -0,0 +1,32 @@
|
||||
package io.dataease.api.typeface.dto;
|
||||
|
||||
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class SysTypefaceDto {
|
||||
@JsonSerialize(using = ToStringSerializer.class)
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 字体名称
|
||||
*/
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* 文件名称
|
||||
*/
|
||||
private String fileName;
|
||||
|
||||
/**
|
||||
* 文件转换名称
|
||||
*/
|
||||
private String fileTransName;
|
||||
|
||||
/**
|
||||
* 是否默认
|
||||
*/
|
||||
private Boolean isDefault;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user