完善了订单接口

This commit is contained in:
chen-xin-zhi 2024-11-03 17:20:11 +08:00
parent 5092c5867b
commit 8ef61448a1
3 changed files with 6 additions and 11 deletions

View File

@ -4,7 +4,6 @@ import lombok.Data;
import java.io.Serial;
import java.io.Serializable;
import java.util.Date;
@Data
public class CouponAddRequest implements Serializable {
@ -52,13 +51,13 @@ public class CouponAddRequest implements Serializable {
/**
* 有效开始日期
*/
private Date startTime;
private String startTime;
/**
* 有效截止日期
*/
private Date endTime;
private String endTime;
/**

View File

@ -4,7 +4,6 @@ import lombok.Data;
import java.io.Serial;
import java.io.Serializable;
import java.util.Date;
@Data
public class CouponUpdateRequest implements Serializable {
@ -52,12 +51,12 @@ public class CouponUpdateRequest implements Serializable {
/**
* 有效开始日期
*/
private Date startTime;
private String startTime;
/**
* 有效截止日期
*/
private Date endTime;
private String endTime;
/**

View File

@ -7,7 +7,6 @@ import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import java.io.Serial;
import java.io.Serializable;
@ -74,15 +73,13 @@ public class Coupon implements Serializable {
/**
* 有效开始日期
*/
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date startTime;
private String startTime;
/**
* 有效截止日期
*/
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date endTime;
private String endTime;
/**
* 作用范围