记得上下班打卡 | git大法好,push需谨慎

Commit 2857cc38 authored by jiangxiulong's avatar jiangxiulong

JsonFormat

parent 16833338
package com.liquidnet.service.goblin.param;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.liquidnet.commons.lang.util.DateUtil;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
......@@ -28,10 +30,12 @@ public class GoblinNftExActivityDelayParam implements Serializable {
private String uid;
@ApiModelProperty(position = 12, required = true, value = "开始时间")
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = DateUtil.DATE_FULL_STR)
@NotNull(message = "开始时间不能为空")
private LocalDateTime startTime;
@ApiModelProperty(position = 13, required = true, value = "结束时间")
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = DateUtil.DATE_FULL_STR)
@NotNull(message = "结束时间不能为空")
private LocalDateTime endTime;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment