package com.jeesharp.business.modules.contentsecurity.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_content_security_log}，用于审核举证。
 *
 * @author jeesharp
 * @since 2026-06-27
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("biz_content_security_log")
@Schema(description = "内容安全检测流水")
public class ContentSecurityLog extends BaseEntity<ContentSecurityLog> {

    @Schema(description = "会员ID")
    private String memberId;

    @Schema(description = "会员编号（冗余）")
    private String memberNo;

    @Schema(description = "会员姓名/昵称（冗余）")
    private String memberNickname;

    @Schema(description = "会员手机号码（冗余）")
    private String memberMobile;

    @Schema(description = "会员身份证号（冗余）")
    private String memberIdCard;

    @Schema(description = "TEXT/IMAGE")
    private String contentType;

    @Schema(description = "COMMENT/FEEDBACK/...")
    private String scene;

    @Schema(description = "Provider 编码")
    private String providerCode;

    @Schema(description = "PASS/REJECT/REVIEW/PENDING")
    private String decision;

    @Schema(description = "业务模块")
    private String bizModule;

    @Schema(description = "业务子类型")
    private String bizType;

    @Schema(description = "业务主键")
    private String bizId;

    @Schema(description = "内容摘要 SHA-256，非明文")
    private String requestDigest;

    @Schema(description = "检测文本原文")
    private String contentText;

    @Schema(description = "检测图片 URL")
    private String mediaUrl;

    @Schema(description = "微信 trace_id")
    private String traceId;

    @Schema(description = "厂商结果码/标签")
    private String resultCode;

    @Schema(description = "厂商结果描述")
    private String resultLabel;

    @Schema(description = "错误信息")
    private String errorMessage;

    @Schema(description = "耗时毫秒")
    private Integer durationMs;
}
