|
@@ -4,7 +4,6 @@ import com.fasterxml.jackson.annotation.JsonFormat;
|
|
|
import io.swagger.annotations.ApiModel;
|
|
import io.swagger.annotations.ApiModel;
|
|
|
import io.swagger.annotations.ApiModelProperty;
|
|
import io.swagger.annotations.ApiModelProperty;
|
|
|
import lombok.Data;
|
|
import lombok.Data;
|
|
|
-import org.springframework.format.annotation.DateTimeFormat;
|
|
|
|
|
|
|
|
|
|
import javax.validation.Valid;
|
|
import javax.validation.Valid;
|
|
|
import javax.validation.constraints.NotBlank;
|
|
import javax.validation.constraints.NotBlank;
|
|
@@ -55,14 +54,12 @@ public class ActivityDTO {
|
|
|
|
|
|
|
|
@ApiModelProperty(value = "活动开始时间 yyyy-MM-dd HH:mm:ss", required = true)
|
|
@ApiModelProperty(value = "活动开始时间 yyyy-MM-dd HH:mm:ss", required = true)
|
|
|
@NotNull(message = "活动开始时间不能为空")
|
|
@NotNull(message = "活动开始时间不能为空")
|
|
|
- @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
|
|
|
|
- @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
|
|
|
|
|
|
+ @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
|
|
private Date startTime;
|
|
private Date startTime;
|
|
|
|
|
|
|
|
@ApiModelProperty(value = "活动结束时间 yyy-MM-dd HH:mm:ss", required = true)
|
|
@ApiModelProperty(value = "活动结束时间 yyy-MM-dd HH:mm:ss", required = true)
|
|
|
@NotNull(message = "活动结束时间不能为空")
|
|
@NotNull(message = "活动结束时间不能为空")
|
|
|
- @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
|
|
|
|
- @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
|
|
|
|
|
|
+ @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
|
|
private Date endTime;
|
|
private Date endTime;
|
|
|
|
|
|
|
|
@Valid
|
|
@Valid
|