feat/infer_dev_260107 #1
@@ -0,0 +1,28 @@
|
|||||||
|
package com.kamco.cd.kamcoback.common.enums;
|
||||||
|
|
||||||
|
import com.kamco.cd.kamcoback.common.utils.enums.CodeExpose;
|
||||||
|
import com.kamco.cd.kamcoback.common.utils.enums.EnumType;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Getter;
|
||||||
|
|
||||||
|
@CodeExpose
|
||||||
|
@Getter
|
||||||
|
@AllArgsConstructor
|
||||||
|
public enum LayerType implements EnumType {
|
||||||
|
TILE("배경지도"),
|
||||||
|
GEOJSON("객체데이터"),
|
||||||
|
WMTS("타일레이어"),
|
||||||
|
WMS("지적도");
|
||||||
|
|
||||||
|
private final String desc;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getId() {
|
||||||
|
return name();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getText() {
|
||||||
|
return desc;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,6 +1,7 @@
|
|||||||
package com.kamco.cd.kamcoback.postgres.core;
|
package com.kamco.cd.kamcoback.postgres.core;
|
||||||
|
|
||||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||||
|
import com.kamco.cd.kamcoback.common.enums.LayerType;
|
||||||
import com.kamco.cd.kamcoback.common.utils.UserUtil;
|
import com.kamco.cd.kamcoback.common.utils.UserUtil;
|
||||||
import com.kamco.cd.kamcoback.layer.dto.WmtsDto.WmtsAddDto;
|
import com.kamco.cd.kamcoback.layer.dto.WmtsDto.WmtsAddDto;
|
||||||
import com.kamco.cd.kamcoback.postgres.entity.MapLayerEntity;
|
import com.kamco.cd.kamcoback.postgres.entity.MapLayerEntity;
|
||||||
@@ -32,7 +33,7 @@ public class MapLayerCoreService {
|
|||||||
mapLayerEntity.setIsChangeMap(true);
|
mapLayerEntity.setIsChangeMap(true);
|
||||||
mapLayerEntity.setIsLabelingMap(true);
|
mapLayerEntity.setIsLabelingMap(true);
|
||||||
mapLayerEntity.setOrder(10L);
|
mapLayerEntity.setOrder(10L);
|
||||||
mapLayerEntity.setLayerType("WMTS");
|
mapLayerEntity.setLayerType(LayerType.WMTS.getId());
|
||||||
mapLayerRepository.save(mapLayerEntity);
|
mapLayerRepository.save(mapLayerEntity);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
|
|||||||
Reference in New Issue
Block a user