
package com.czg.account.dto;

import com.alibaba.fastjson2.annotation.JSONField;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 活动赠送商品表 实体类。
 *
 * @author ww
 * @since 2025-02-18
 */
@Data

@NoArgsConstructor
@AllArgsConstructor
public class ShopCouponProductDTO implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    private Long id;

    /**
     * 活动Id
     */
    private Long couponId;

    /**
     * 商品id
     */
    private Long productId;

    /**
     * 数量
     */
    private Integer num;

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

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

}
