
package com.czg.market.dto;

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

/**
 * 分销记录表 实体类。
 *
 * @author ww
 * @since 2025-10-27
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
public class MkDistributionFlowDTO implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    private Long id;

    /**
     * 店铺用户id
     */
    private Long shopUserId;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 店铺id
     */
    private Long shopId;

    /**
     * 分销员id
     */
    private Long distributionUserId;

    /**
     * 等级id
     */
    private Long levelId;

    /**
     * 等级名称
     */
    private String levelName;

    /**
     * 用户名称
     */
    private String nickname;

    /**
     * 订单编号
     */
    private String orderNo;

    /**
     * 订单总金额
     */
    private BigDecimal amount;

    /**
     * 奖励金额
     */
    private BigDecimal rewardAmount;

    /**
     * order订单 recharge充值
     */
    private String type;

    /**
     * pending待入账 success已入账
     */
    private String status;

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

    /**
     * 修改时间
     */
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

}
