package com.kym.entity.queryParams;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.kym.entity.common.PageParams;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @author skyline
 * @description 活动查询参数
 * @date 2023-08-22 18:56
 */
@Data
public class ActivityQueryParam extends PageParams {
    /**
     * id
     */
    private Long id;
    /**
     * 名称
     */
    private String name;
    /**
     * 优惠方式
     */
    private String discountType;
    /**
     * 开始时间
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime startTime;
    /**
     * 结束时间
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime endTime;
    /**
     * 状态
     */
    private Integer status;
}
