mirror of
https://github.com/dataease/dataease.git
synced 2026-05-18 17:58:11 +08:00
feat: 自定义地图设置
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
package io.dataease.api.map;
|
||||
|
||||
import io.dataease.api.map.dto.GeometryNodeCreator;
|
||||
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.RequestPart;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
|
||||
@Tag(name = "地理信息")
|
||||
public interface GeoApi {
|
||||
|
||||
@PostMapping(value = "/save", consumes = {"multipart/form-data"})
|
||||
void saveMapGeo(@RequestPart("request") GeometryNodeCreator request, @RequestPart(value = "file") MultipartFile file);
|
||||
|
||||
@PostMapping("/delete/{id}")
|
||||
void deleteGeo(@PathVariable("id") String id);
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
package io.dataease.api.map.dto;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
@Data
|
||||
public class GeometryNodeCreator implements Serializable {
|
||||
|
||||
private String code;
|
||||
|
||||
private String name;
|
||||
|
||||
private String pid;
|
||||
}
|
||||
@@ -18,6 +18,7 @@ public class AreaNode implements Serializable {
|
||||
private String level;
|
||||
private String name;
|
||||
private String pid;
|
||||
private boolean custom = false;
|
||||
/**
|
||||
* 国家代码
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user