package org.springblade.plugin.workflow.chat.pojo.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springblade.core.tenant.mp.TenantEntity;
import org.springblade.core.tool.jackson.Sensitive;
import org.springblade.core.tool.sensitive.SensitiveType;

import java.io.Serial;

/**
 * dify - 应用 实体类
 *
 * @author ssc
 */
@Data
@TableName("blade_wf_chat_app")
@Schema(description = "Apps对象")
@EqualsAndHashCode(callSuper = true)
public class WfChatAppEntity extends TenantEntity {

	@Serial
	private static final long serialVersionUID = 1L;

	/**
	 * 名称
	 */
	@Schema(description = "名称")
	private String name;

	/**
	 * 图片
	 */
	@Schema(description = "图片")
	private String imgUrl;

	/**
	 * 应用请求地址
	 */
	@Schema(description = "应用请求地址")
	private String apiUrl;

	/**
	 * 应用请求密钥
	 */
	@Schema(description = "应用请求密钥")
	@Sensitive(type = SensitiveType.KEYS)
	private String apiKey;

	/**
	 * prod应用请求地址
	 */
	@Schema(description = "prod应用请求地址")
	private String apiUrlProd;

	/**
	 * prod应用请求密钥
	 */
	@Schema(description = "prod应用请求密钥")
	@Sensitive(type = SensitiveType.KEYS)
	private String apiKeyProd;

	/**
	 * 类型 workflow工作流 chatflow对话工作流 chatbot对话机器人 agent智能体 completion文本生成应用
	 */
	@Schema(description = "类型")
	private String type;

	/**
	 * iframe地址
	 */
	@Schema(description = "iframe地址")
	private String iframeUrl;

	/**
	 * prod iframe地址
	 */
	@Schema(description = "prod iframe地址")
	private String iframeUrlProd;

	/**
	 * 备注
	 */
	@Schema(description = "备注")
	private String remark;
}
