package com.jeesharp.business.modules.finance.profitsharing.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.jeesharp.framework.mybatis.core.dataobject.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 分账接收方明细实体，映射表 {@code biz_profit_sharing_receiver}。
 *
 * @author jeesharp
 * @since 2026-06-11
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("biz_profit_sharing_receiver")
@Schema(description = "分账接收方明细")
public class ProfitSharingReceiver extends BaseEntity<ProfitSharingReceiver> {

    @Schema(description = "分账单ID")
    private String profitSharingOrderId;

    @Schema(description = "接收方类型")
    private String receiverType;

    @Schema(description = "接收方账号")
    private String receiverAccount;

    @Schema(description = "分账金额（分）")
    private Integer amountFen;

    @Schema(description = "分账描述")
    private String description;

    /**
     * @see com.jeesharp.business.modules.finance.profitsharing.enums.ProfitSharingReceiverResultEnum
     */
    @Schema(description = "分账结果")
    private String result;

    @Schema(description = "微信分账明细单号")
    private String wxDetailId;

    @Schema(description = "失败原因")
    private String failReason;
}
