package com.cy.guoyan.admin.module.ai.controller.admin.chatapp.vo;

import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import javax.validation.constraints.*;

@Schema(description = "管理后台 - AI 应用新增/修改 Request VO")
@Data
public class ChatAppSaveReqVO {

    @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "25452")
    private Long id;

    @Schema(description = "应用名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "王五")
    @org.hibernate.validator.constraints.NotEmpty(message = "应用名称不能为空")
    private String appName;

    @Schema(description = "应用key", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "应用key不能为空")
    private String appKey;

    @Schema(description = "是否联网", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("是否联网")
    private Integer networking;


    @Schema(description = "1 dify 2 ragflow", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("1 dify 2 ragflow")
    private Integer appType;

}