
package com.czg.market.dto;

import java.io.Serializable;
import java.time.LocalDateTime;
import com.alibaba.fastjson2.annotation.JSONField;
import java.io.Serial;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 会员经验值流水表 实体类。
 *
 * @author zs
 * @since 2025-09-12
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class MemberExpFlowDTO implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    private Long id;

    /**
     * 描述
     */
    private String content;

    /**
     * 类型 + -
     */
    private String type;

    /**
     * 来源类型 COST消费赠送 RECHARGE充值
     */
    private String sourceType;

    /**
     * 赠送数量
     */
    private Integer value;

    /**
     * 来源id
     */
    private Long sourceId;

    private Long userId;

    private Long shopId;

    /**
     * 创建时间
     */
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

}
