package com.mini.capi.biz.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 接口文档主表
 * </p>
 *
 * @author gaoxq
 * @since 2025-08-26
 */
@Getter
@Setter
@TableName("biz_api_doc")
public class ApiDoc implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableField("create_time")
    private LocalDateTime createTime;

    /**
     * 接口主键
     */
    @TableId(value = "api_id", type = IdType.AUTO)
    private String apiId;

    /**
     * 接口名称
     */
    @TableField("cname")
    private String cname;

    /**
     * HTTP 方法：GET/POST/PUT/DELETE/PATCH/HEAD/OPTIONS
     */
    @TableField("method_name")
    private String methodName;

    /**
     * 请求路径
     */
    @TableField("cpath")
    private String cpath;

    /**
     * 详细描述
     */
    @TableField("description")
    private String description;

    /**
     * 默认请求/返回 Content-Type
     */
    @TableField("content_type")
    private String contentType;

    @TableField("update_time")
    private LocalDateTime updateTime;

    /**
     * 租户id
     */
    @TableField("f_tenant_id")
    private String fTenantId;

    /**
     * 流程id
     */
    @TableField("f_flow_id")
    private String fFlowId;

    /**
     * 流程任务主键
     */
    @TableField("f_flow_task_id")
    private String fFlowTaskId;

    /**
     * 流程任务状态
     */
    @TableField("f_flow_state")
    private Integer fFlowState;
}
