init
This commit is contained in:
3
sl-express-ms-service-scope-domain/.gitignore
vendored
Normal file
3
sl-express-ms-service-scope-domain/.gitignore
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
.idea
|
||||
target/
|
||||
*.iml
|
||||
34
sl-express-ms-service-scope-domain/pom.xml
Normal file
34
sl-express-ms-service-scope-domain/pom.xml
Normal file
@@ -0,0 +1,34 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<parent>
|
||||
<groupId>com.sl-express</groupId>
|
||||
<artifactId>sl-express-parent</artifactId>
|
||||
<version>1.4</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<groupId>com.sl-express.ms.service-scope</groupId>
|
||||
<artifactId>sl-express-ms-service-scope-domain</artifactId>
|
||||
<version>1.1-SNAPSHOT</version>
|
||||
<description>服务范围微服务-实体</description>
|
||||
|
||||
<properties>
|
||||
<maven.compiler.source>11</maven.compiler.source>
|
||||
<maven.compiler.target>11</maven.compiler.target>
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.projectlombok</groupId>
|
||||
<artifactId>lombok</artifactId>
|
||||
<optional>true</optional>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.github.xiaoymin</groupId>
|
||||
<artifactId>knife4j-spring-boot-starter</artifactId>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
</project>
|
||||
@@ -0,0 +1,13 @@
|
||||
package com.sl.ms.scope.dto;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class Coordinate {
|
||||
private Double longitude; //经度
|
||||
private Double latitude; //纬度
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
package com.sl.ms.scope.dto;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import javax.validation.constraints.NotNull;
|
||||
import javax.validation.constraints.Size;
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
public class ServiceScopeDTO {
|
||||
|
||||
@ApiModelProperty(value = "业务id,可以是机构或快递员", required = true)
|
||||
@NotNull(message = "bid不能为空")
|
||||
private Long bid;
|
||||
|
||||
@ApiModelProperty(value = "类型,1-机构,2-快递员", required = true)
|
||||
@NotNull(message = "type不能为空")
|
||||
private Integer type;
|
||||
|
||||
@ApiModelProperty(value = "多边形坐标点,至少3个坐标点,首尾坐标必须相同", required = true)
|
||||
@Size(min = 3, message = "坐标列表至少3个坐标点")
|
||||
private List<Coordinate> polygon;
|
||||
|
||||
@ApiModelProperty(value = "创建时间")
|
||||
private Long created;
|
||||
|
||||
@ApiModelProperty(value = "更新时间")
|
||||
private Long updated;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user