
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 MkDistributionAmountFlowDTO implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    private Long id;

    /**
     * recharge充值 refund退款 sub扣减
     */
    private String type;

    /**
     * 主店id
     */
    private Long mainShopId;

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

    /**
     * 变动后金额
     */
    private BigDecimal amount;

    /**
     * 变动金额
     */
    private BigDecimal changeAmount;

    /**
     * 关联id
     */
    private Long sourceId;

    /**
     * 备注
     */
    private String remark;

    /**
     * 操作人账号
     */
    private String opAccount;

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

}
