LocalDateTime属性传参格式 yyyy-MM-dd HH:mm:ss
@ApiModel
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class MainMessageSaveReq implements Serializable {
@ApiModelProperty(value = "发布时间")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private LocalDateTime publishTime;
}