格式化时间
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
package com.sczx.order.dto;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
@ -17,6 +18,7 @@ public class PayOrderDTO {
|
||||
@ApiModelProperty("支付方式")
|
||||
private String paymentMethod;
|
||||
|
||||
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||
@ApiModelProperty("订单产生时间")
|
||||
private LocalDateTime createdAt;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user