model

package
v0.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 16, 2025 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const TimeFormat = "2006-01-02 15:04:05"

Variables

This section is empty.

Functions

This section is empty.

Types

type ModelImported

type ModelImported struct {
	ID             uint32 `gorm:"primary_key;auto_increment;not null;"`
	Provider       string `gorm:"column:provider;index:idx_model_imported_provider_type_model,priority:1;type:varchar(100);comment:模型供应商"`
	ModelType      string `gorm:"column:model_type;index:idx_model_imported_provider_type_model,priority:2;type:varchar(100);comment:模型类型"`
	Model          string `gorm:"column:model;index:idx_model_imported_provider_type_model,priority:3;type:varchar(100);comment:模型名称"`
	DisplayName    string `gorm:"column:display_name;idx:idx_model_imported_model_display_name;type:varchar(100);comment:模型显示名称"`
	ModelIconPath  string `gorm:"column:model_icon_path;type:varchar(512);comment:模型图标路径"`
	IsActive       bool   `gorm:"column:is_active;type:tinyint(1);default:true;comment:模型是否启用"`
	ProviderConfig string `gorm:"column:provider_config;type:longtext;comment:某供应商下的模型配置"`
	PublishDate    string `gorm:"column:publish_date;type:varchar(100);comment:模型发布时间"`
	PublicModel
}

type PublicModel

type PublicModel struct {
	CreatedAt int64  `gorm:"autoCreateTime:milli;index:created_at;column:created_at;type:bigint" json:"createdAt"`
	UpdatedAt int64  `gorm:"autoUpdateTime:milli;column:updated_at;type:bigint" json:"updatedAt"`
	OrgID     string `gorm:"index:org_id;column:org_id;type:varchar(255);comment:组织ID" json:"orgId"`
	UserID    string `gorm:"index:user_id;column:user_id;type:varchar(255);comment:用户ID" json:"userId"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL