iot_server/internal/models/dockerconfig.go

20 lines
607 B
Go
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

package models
// 驱动镜像配置表alias MirrorConfig
type DockerConfig struct {
Timestamps `gorm:"embedded"`
Id string `gorm:"id;primaryKey;not null;type:string;size:255;comment:主键"`
Address string `gorm:"type:string;size:255;comment:地址"`
Account string `gorm:"type:string;size:255;comment:用户名"`
Password string `gorm:"type:string;size:255;comment:密码"`
SaltKey string `gorm:"type:string;size:255;comment:盐值"`
}
func (table *DockerConfig) TableName() string {
return "docker_config"
}
func (table *DockerConfig) Get() interface{} {
return *table
}