package com.czg.account.dto;

import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.Getter;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

/**
 * @author ww
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class QueryReceiveDto {
    @NotNull(message = "优惠券id 不可为空")
    private Long couponId;
    @NotNull(message = "店铺Id 不可为空")
    private Long shopId;
    //用户昵称 手机号 模糊
    private String value;
    //状态 0未使用 1已使用 2已过期
    private Integer status;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime startTime;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime endTime;
}
