using AntSK.Domain.Domain.Model.Enum;
using SqlSugar;
using System.ComponentModel.DataAnnotations;

namespace AntSK.Domain.Repositories
{
    [SugarTable("Apis")]
    public partial class Apis
    {
        [SugarColumn(IsPrimaryKey = true)]
        public string Id { get; set; }

        /// <summary>
        /// 接口名称
        /// </summary>
        [Required]
        public string Name { get; set; }

        /// <summary>
        /// 接口描述
        /// </summary>
        [Required]
        public string Describe { get; set; }
        /// <summary>
        /// 接口地址
        /// </summary>
        [Required]
        public string Url { get; set; }
        /// <summary>
        /// 请求方法
        /// </summary>
        [Required]
        public HttpMethodType Method { get; set; }

        [SugarColumn(ColumnDataType = "varchar(1000)")]
        public string? Header { get; set; }
        /// <summary>
        /// QueryString参数
        /// </summary>
        [SugarColumn(ColumnDataType = "varchar(1000)")]
        public string? Query { get; set; }
        /// <summary>
        /// jsonBody 实体
        /// </summary>
        [SugarColumn(ColumnDataType = "varchar(7000)")]
        public string? JsonBody { get; set; }

        /// <summary>
        /// 入参提示词
        /// </summary>
        [Required]
        [SugarColumn(ColumnDataType = "varchar(1500)")]
        public string InputPrompt { get; set; }

        /// <summary>
        /// 返回提示词
        /// </summary>
        [Required]
        [SugarColumn(ColumnDataType = "varchar(1500)")]
        public string OutputPrompt { get; set; }
    }
}
