| 71 | } |
| 72 | |
| 73 | type AiAPIInfo struct { |
| 74 | Id int64 `gorm:"column:id;type:BIGINT(20);AUTO_INCREMENT;NOT NULL;comment:id;primary_key;comment:主键ID;"` |
| 75 | Uuid string `gorm:"type:varchar(36);not null;column:uuid;uniqueIndex:uuid;comment:UUID"` |
| 76 | Name string `gorm:"type:varchar(100);not null;column:name;comment:name"` |
| 77 | Service string `gorm:"size:36;not null;column:service;comment:服务;index:service"` |
| 78 | Path string `gorm:"size:255;not null;column:path;comment:请求路径"` |
| 79 | Description string `gorm:"size:255;not null;column:description;comment:description"` |
| 80 | Timeout int `gorm:"type:int(11);not null;column:timeout;comment:超时时间"` |
| 81 | Retry int `gorm:"type:int(11);not null;column:retry;comment:重试次数"` |
| 82 | Model string `gorm:"size:255;not null;column:model;comment:模型"` |
| 83 | Provider string `gorm:"size:36;not null;column:provider;comment:提供者;index:provider"` |
| 84 | Creator string `gorm:"size:36;not null;column:creator;comment:创建人;index:creator" aovalue:"creator"` |
| 85 | CreateAt time.Time `gorm:"type:timestamp;NOT NULL;DEFAULT:CURRENT_TIMESTAMP;column:create_at;comment:创建时间"` |
| 86 | Updater string `gorm:"size:36;not null;column:updater;comment:更新人;index:updater" aovalue:"updater"` |
| 87 | UpdateAt time.Time `gorm:"type:timestamp;NOT NULL;DEFAULT:CURRENT_TIMESTAMP;column:update_at;comment:更新时间"` |
| 88 | AdditionalConfig string `gorm:"type:text;null;column:additional_config;comment:额外配置"` |
| 89 | UseToken int `gorm:"type:int(11);not null;column:use_token;comment:使用token"` |
| 90 | Type int `gorm:"type:tinyint(1);not null;column:type;comment:类型 0:online api 1:local api"` |
| 91 | Disable bool `gorm:"type:tinyint(1);not null;column:disable;comment:是否禁用 0:否 1:是"` |
| 92 | IsDelete bool `gorm:"type:tinyint(1);not null;column:is_delete;comment:是否删除 0:否 1:是"` |
| 93 | } |
| 94 | |
| 95 | func (a *AiAPIInfo) TableName() string { |
| 96 | return "ai_api_info" |
nothing calls this directly
no outgoing calls
no test coverage detected