mirror of
https://github.com/dataease/dataease.git
synced 2026-05-15 05:22:13 +08:00
feat(X-Pack): 外观配置
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
package io.dataease.api.xpack.appearance.api;
|
||||
|
||||
import io.dataease.api.xpack.appearance.vo.AppearanceItemVO;
|
||||
import org.springframework.http.MediaType;
|
||||
import org.springframework.http.ResponseEntity;
|
||||
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.RequestPart;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface XpackAppearanceApi {
|
||||
|
||||
@PostMapping(value = "/save", consumes = {"multipart/form-data"})
|
||||
void save(@RequestPart("request") List<AppearanceItemVO> items, @RequestPart(value = "files", required = false) List<MultipartFile> files);
|
||||
|
||||
@GetMapping("/query")
|
||||
List<AppearanceItemVO> query();
|
||||
|
||||
@GetMapping(value = "/image/{imageId}", produces = {MediaType.IMAGE_JPEG_VALUE, MediaType.IMAGE_PNG_VALUE})
|
||||
ResponseEntity<byte[]> image(@PathVariable("imageId") String imageId);
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package io.dataease.api.xpack.appearance.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
@Schema(description = "外观设置参数项")
|
||||
@Data
|
||||
public class AppearanceItemVO implements Serializable {
|
||||
|
||||
@Schema(description = "键", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String pkey;
|
||||
@Schema(description = "值", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String pval;
|
||||
@Schema(description = "类型", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private String type;
|
||||
@Schema(description = "顺序", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
private Integer sort;
|
||||
}
|
||||
Reference in New Issue
Block a user