
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-11-06
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
public class ShopUserInviteDTO implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * (随机)
     */
    private Long id;

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

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

    /**
     * 邀请人ID mk_distribution_user.id
     */
    private Long distributionUserId;

    /**
     * 邀请人上级ID mk_distribution_user.id
     */
    private Long distributionUserParentId;

    /**
     * 邀请人收益/一级分润
     */
    private BigDecimal oneIncome;

    /**
     * 邀请人上级收益/二级分润
     */
    private BigDecimal twoIncome;

    /**
     * 邀请时间
     */
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime inviteTime;

}
