package com.sckw.order.model.vo.req;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.sckw.core.model.page.PageRequest;
import jakarta.validation.constraints.NotNull;
import lombok.Getter;
import lombok.Setter;

import java.io.Serial;
import java.time.LocalDateTime;
import java.util.List;

/**
 * @Description:
 * @Author: lt
 * @Date: 2023-07-26-15:43
 */
@Getter
@Setter
public class WantBuySelectParam extends PageRequest {

    @Serial
    private static final long serialVersionUID = 1881051859375157819L;

    /**
     * 关键字搜索
     */
    private String keywords;

    /**
     * 状态 来自com.sckw.core.common.enums.enums.DictEnum.GOODS_STATUS_0
     */
    private String status;

    /**
     * 支付集合字符串
     */
    private String trading;

    /**
     * 字符串转集合进行筛选
     */
    private List<String> tradings;

    /**
     * 地区编码
     */
    private String cityCode;

    /**
     * 地区级别
     */
    private String areaLevel;

    /**
     * 商品类型
     */
    private String goodsType;

    /**
     * 商品类型type值
     */
    private String goodsTypeValue;

    private List<String> goodsTypeValueSearch;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @NotNull(message = "生成开始时间不能为空")
    private LocalDateTime startCreateTime;

    @NotNull(message = "生成结束时间不能为空")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime endCreateTime;

}
