init
This commit is contained in:
3
sl-express-ms-search-domain/.gitignore
vendored
Normal file
3
sl-express-ms-search-domain/.gitignore
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
.idea
|
||||
target/
|
||||
*.iml
|
||||
0
sl-express-ms-search-domain/README.md
Normal file
0
sl-express-ms-search-domain/README.md
Normal file
34
sl-express-ms-search-domain/pom.xml
Normal file
34
sl-express-ms-search-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.search</groupId>
|
||||
<artifactId>sl-express-ms-search-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,70 @@
|
||||
package com.sl.ms.search.domain.dto;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
@Data
|
||||
@ApiModel("快递员任务")
|
||||
public class CourierTaskDTO {
|
||||
|
||||
@ApiModelProperty(value = "取派件任务id")
|
||||
private Long id;
|
||||
|
||||
@ApiModelProperty(value = "订单id")
|
||||
private Long orderId;
|
||||
|
||||
@ApiModelProperty(value = "运单id")
|
||||
private String transportOrderId;
|
||||
|
||||
@ApiModelProperty(value = "电话")
|
||||
private String phone;
|
||||
|
||||
@ApiModelProperty(value = "姓名")
|
||||
private String name;
|
||||
|
||||
@ApiModelProperty(value = "任务类型,1-取件,2-派件")
|
||||
private Integer taskType;
|
||||
|
||||
@ApiModelProperty(value = "任务状态,1-新任务,2-已完成,3-已取消")
|
||||
private Integer status;
|
||||
|
||||
@ApiModelProperty(value = "快递员id")
|
||||
private Long courierId;
|
||||
|
||||
@ApiModelProperty(value = "机构id")
|
||||
private Long agencyId;
|
||||
|
||||
@ApiModelProperty(value = "地址")
|
||||
private String address;
|
||||
|
||||
@ApiModelProperty(value = "预计开始时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||
private LocalDateTime estimatedStartTime;
|
||||
|
||||
@ApiModelProperty(value = "实际开始时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||
private LocalDateTime actualStartTime;
|
||||
|
||||
@ApiModelProperty(value = "预计结束时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||
private LocalDateTime estimatedEndTime;
|
||||
|
||||
@ApiModelProperty(value = "实际结束时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||
private LocalDateTime actualEndTime;
|
||||
|
||||
@ApiModelProperty(value = "是否删除,0-否,1-是")
|
||||
private Integer isDeleted;
|
||||
|
||||
@ApiModelProperty(value = "创建时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||
private LocalDateTime created;
|
||||
|
||||
@ApiModelProperty(value = "更新时间")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||
private LocalDateTime updated;
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
package com.sl.ms.search.domain.dto;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import javax.validation.constraints.NotBlank;
|
||||
|
||||
@Data
|
||||
@ApiModel("快递员任务分页查询")
|
||||
public class CourierTaskPageQueryDTO {
|
||||
@ApiModelProperty(value = "页码", example = "1", required = true)
|
||||
private Integer page = 1;
|
||||
|
||||
@ApiModelProperty(value = "页面大小", example = "10", required = true)
|
||||
private Integer pgeSize = 10;
|
||||
|
||||
@ApiModelProperty(value = "关键词;可以是运单号、手机号、姓名、地址等字段", required = true)
|
||||
@NotBlank
|
||||
private String keyword;
|
||||
|
||||
@ApiModelProperty(value = "任务类型,1-取件,2-派件")
|
||||
private Integer taskType;
|
||||
|
||||
@ApiModelProperty(value = "任务状态,1-新任务,2-已完成,3-已取消")
|
||||
private Integer status;
|
||||
|
||||
@ApiModelProperty(value = "快递员id", required = true)
|
||||
private Long courierId;
|
||||
}
|
||||
Reference in New Issue
Block a user