model

package
v1.6.2 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2024 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessctlEntity

type AccessctlEntity struct {
	app.SnowflakeIDModel
	Path        string `gorm:"column:path" json:"Path" form:"Path" comment:"Path"`
	Action      string `gorm:"column:action" json:"Action" form:"Action" comment:"Action"`
	Description string `gorm:"column:description" json:"Description" form:"Description" comment:"Description"`
}

func (AccessctlEntity) TableName

func (AccessctlEntity) TableName() string

type ClientEntity

type ClientEntity struct {
	app.SnowflakeIDModel
	Status   int    `gorm:"column:status;type:int" json:"Status"`
	IsEnable int    `gorm:"column:is_enable;type:int" json:"IsEnable,string"`
	Task     int    `gorm:"column:task;type:int" json:"Task"`
	Cpu      string `gorm:"column:cpu;size:255" json:"Cpu"`
	Mem      string `gorm:"column:mem;size:255" json:"Mem"`
	Account  string `gorm:"column:account;size:255" json:"Account"`
	Name     string `gorm:"column:name;size:255" json:"Name"`
	Ip       string `gorm:"column:ip;size:39;unique" json:"Ip"` // 对于MySQL和PostgreSQL使用varchar长度控制,SQLite仍不支持inet类型

}

func (ClientEntity) TableName

func (ClientEntity) TableName() string

type DataSourceEntity

type DataSourceEntity struct {
	app.SnowflakeIDModel
	app.TimeStampsModel
	app.GenericModel
	app.SoftDeleteModel
	UserName    string `gorm:"column:user_name" json:"UserName" form:"UserName" comment:"UserName"`
	Password    string `gorm:"column:password" json:"Password" form:"Password" comment:"Password"`
	Host        string `gorm:"column:host" json:"Host" form:"Host" comment:"Host"`
	Port        int    `gorm:"column:port" json:"Port" form:"Port" comment:"Port"`
	DriverClass string `gorm:"column:driver_class" json:"DriverClass" form:"DriverClass" comment:"DriverClass"`
	DbName      string `gorm:"column:db_name" json:"DbName" form:"DbName" comment:"DbName"`
}

func (DataSourceEntity) TableName

func (DataSourceEntity) TableName() string

Jump to

Keyboard shortcuts

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