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;

import java.time.LocalDateTime;

/**
 * 内容安全异步检测任务，映射表 {@code biz_content_security_task}（PR-2 回调使用）。
 *
 * @author jeesharp
 * @since 2026-06-27
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("biz_content_security_task")
@Schema(description = "内容安全异步任务")
public class ContentSecurityTask extends BaseEntity<ContentSecurityTask> {

    @Schema(description = "关联流水ID")
    private String logId;

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

    @Schema(description = "媒体 URL")
    private String mediaUrl;

    /**
     * 任务状态
     *
     * @see com.jeesharp.business.modules.contentsecurity.enums.ContentSecurityTaskStatusEnum
     */
    @Schema(description = "0-待回调 1-通过 2-拒绝 3-异常 4-超时")
    private Integer taskStatus;

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

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

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

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

    @Schema(description = "回调时间")
    private LocalDateTime callbackDate;
}
