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_log}。
 *
 * @author jeesharp
 * @since 2026-06-11
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("biz_profit_sharing_log")
@Schema(description = "分账操作日志")
public class ProfitSharingLog extends BaseEntity<ProfitSharingLog> {

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

    /**
     * @see com.jeesharp.business.modules.finance.profitsharing.enums.ProfitSharingLogActionEnum
     */
    @Schema(description = "动作")
    private String action;

    @Schema(description = "请求报文")
    private String requestBody;

    @Schema(description = "响应报文")
    private String responseBody;

    @Schema(description = "是否成功：0-否 1-是")
    private Integer successFlag;

    @Schema(description = "错误说明")
    private String errorMsg;
}
