
package com.czg.account.dto;

import com.alibaba.fastjson2.annotation.JSONField;
import com.czg.account.entity.ShopCoupon;
import com.czg.validator.group.InsertGroup;
import com.czg.validator.group.UpdateGroup;
import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;


/**
 * 活动 实体类。
 *
 * @author ww
 * @since 2025-02-20
 */
@Data

@NoArgsConstructor
@AllArgsConstructor
public class ShopActivateDTO implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @NotNull(message = "主键不能为空", groups = {UpdateGroup.class})
    private Long id;


    private Long shopId;

    /**
     * 充值金额
     */
    @NotNull(message = "充值金额不能为空", groups = {InsertGroup.class, UpdateGroup.class})
    private BigDecimal amount;

    /**
     * 赠送金额
     */
    private BigDecimal giftAmount;

    /**
     * 赠送积分
     */
    private Integer giftPoints;

    /**
     * 是否赠送优惠卷 0否 1是
     */
    private Integer isGiftCoupon;

    private List<ShopCoupon> couponList;
    private String coupons;

    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

}
