diff --git a/src/main/java/com/gis3c/ol/entity/Source.java b/src/main/java/com/gis3c/ol/entity/Source.java new file mode 100644 index 0000000..27b2be5 --- /dev/null +++ b/src/main/java/com/gis3c/ol/entity/Source.java @@ -0,0 +1,46 @@ +package com.gis3c.ol.entity; + +import java.util.*; +import java.util.Map; + +/** + * Created by hukekuan on 2018/1/23. + */ +public class Source { + private String sourceId; + private String sourceName; + private java.util.Map params; + private String description; + + public String getSourceId() { + return sourceId; + } + + public void setSourceId(String sourceId) { + this.sourceId = sourceId; + } + + public String getSourceName() { + return sourceName; + } + + public void setSourceName(String sourceName) { + this.sourceName = sourceName; + } + + public java.util.Map getParams() { + return params; + } + + public void setParams(Map params) { + this.params = params; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } +} diff --git a/src/main/resources/init.sql b/src/main/resources/init.sql index 540414a..03b4105 100644 --- a/src/main/resources/init.sql +++ b/src/main/resources/init.sql @@ -110,6 +110,15 @@ create table c3gis_ol_source_wmts( description varchar(50) ); +create table c3gis_ol_source( + sourceid varchar(50) not null PRIMARY KEY, + sourcename varchar(50) not null, + url varchar(50) not null, + params jsonb, + description varchar(50) +); + + --样式表 create table c3gis_ol_style_style( styleid varchar(50) not null, diff --git a/src/test/resources/sql-map-config-mybatis.xml b/src/test/resources/sql-map-config-mybatis.xml index 1adbdfb..883da73 100644 --- a/src/test/resources/sql-map-config-mybatis.xml +++ b/src/test/resources/sql-map-config-mybatis.xml @@ -47,9 +47,11 @@ + + \ No newline at end of file