Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AccessEntity ¶ added in v1.9.1
type AccessEntity struct { Id string `gorm:"column:id;primaryKey" json:"Id" form:"Id" comment:"Id"` Path string `gorm:"column:path" json:"Path" form:"Path" comment:"Path"` UserId string `gorm:"column:user_id" json:"UserId" form:"UserId" comment:"UserId"` Access int `gorm:"column:access;default:1" json:"Access" form:"Access" comment:"Access"` Count int `gorm:"column:Count;type:int" json:"Count" form:"Count" comment:"Count"` Description string `gorm:"column:description" json:"Description" form:"Description" comment:"Description"` Status int `gorm:"column:status;type:int" json:"Status"` }
func (AccessEntity) TableName ¶ added in v1.9.1
func (AccessEntity) TableName() string
type AccessctlEntity ¶
type AccessctlEntity struct { app.SnowflakeIDModel Path string `gorm:"column:path;unique" json:"Path" form:"Path" comment:"Path"` Access int `gorm:"column:access;default:1" json:"Access" form:"Access" comment:"Access"` Ips string `gorm:"column:ips" json:"Ips" form:"Ips" comment:"Ips"` Description string `gorm:"column:description" json:"Description" form:"Description" comment:"Description"` Status int `gorm:"column:status;type:int" json:"Status"` }
func (*AccessctlEntity) AfterDelete ¶ added in v1.7.0
func (s *AccessctlEntity) AfterDelete(tx *gorm.DB) (err error)
func (*AccessctlEntity) AfterSave ¶ added in v1.7.0
func (s *AccessctlEntity) AfterSave(tx *gorm.DB) (err error)
func (AccessctlEntity) TableName ¶
func (AccessctlEntity) TableName() string
type ClientEntity ¶
type ClientEntity struct { app.SnowflakeIDModel Status int `gorm:"column:status;type:int" json:"Status"` Access int `gorm:"column:access;default:1" json:"Access" form:"Access" comment:"Access"` 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) AfterDelete ¶ added in v1.7.0
func (s *ClientEntity) AfterDelete(tx *gorm.DB) (err error)
func (*ClientEntity) AfterSave ¶ added in v1.7.0
func (s *ClientEntity) AfterSave(tx *gorm.DB) (err error)
func (ClientEntity) TableName ¶
func (ClientEntity) TableName() string
type DataSourceEntity ¶
type DataSourceEntity struct { app.IdTimeStampsModel app.GenericModel app.SoftDeleteModel Alias string `gorm:"column:alias;not null" json:"Alias" form:"Alias" comment:"Alias"` 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;not null" 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) AfterDelete ¶ added in v1.7.0
func (s *DataSourceEntity) AfterDelete(tx *gorm.DB) (err error)
func (*DataSourceEntity) AfterSave ¶ added in v1.7.0
func (s *DataSourceEntity) AfterSave(tx *gorm.DB) (err error)
func (DataSourceEntity) TableName ¶
func (DataSourceEntity) TableName() string
type DictEntity ¶ added in v1.7.0
type DictEntity struct { app.SnowflakeIDModel ParentId int64 `gorm:"column:parent_id" json:"ParentId,string"` Code string `gorm:"column:code" json:"Code"` Key string `gorm:"column:key" json:"Key"` Value string `gorm:"column:value;size:255" json:"value"` Status int `gorm:"column:status;type:int" json:"Status"` Remark string `gorm:"column:remark" json:"Remark"` }
func (*DictEntity) AfterDelete ¶ added in v1.7.0
func (s *DictEntity) AfterDelete(tx *gorm.DB) (err error)
func (*DictEntity) AfterSave ¶ added in v1.7.0
func (s *DictEntity) AfterSave(tx *gorm.DB) (err error)
func (DictEntity) TableName ¶ added in v1.7.0
func (DictEntity) TableName() string
type SettingEntity ¶ added in v1.8.9
type SettingEntity struct { app.SoftDeleteModel Code string `gorm:"column:code" json:"Code"` Key string `gorm:"column:key" json:"Key"` Value string `gorm:"column:value;size:255" json:"value"` Status int `gorm:"column:status;type:int" json:"Status"` Remark string `gorm:"column:remark" json:"Remark"` }
func (*SettingEntity) AfterDelete ¶ added in v1.8.9
func (s *SettingEntity) AfterDelete(tx *gorm.DB) (err error)
func (*SettingEntity) AfterSave ¶ added in v1.8.9
func (s *SettingEntity) AfterSave(tx *gorm.DB) (err error)
func (SettingEntity) TableName ¶ added in v1.8.9
func (SettingEntity) TableName() string
type ThrottleEntity ¶ added in v1.8.0
type ThrottleEntity struct { app.SnowflakeIDModel UserId string `gorm:"column:user_id" json:"UserId" form:"UserId" comment:"UserId"` // 用户ID Resource string `gorm:"column:resource" json:"Resource" form:"Resource" comment:"Resource"` // 资源名 RateLimit int `gorm:"column:rate_limit" json:"RateLimit" form:"RateLimit" comment:"RateLimit"` // 每秒令牌生成数 Burst int `gorm:"column:burst" json:"Burst" form:"Burst" comment:"Burst"` // 突发容量 WaitTime int `gorm:"column:wait_time" json:"WaitTime" form:"WaitTime" comment:"WaitTime"` // 最大排队等待时间 Status int `gorm:"column:status;default:0" json:"Status" form:"Status" comment:"Status"` }
func (*ThrottleEntity) AfterDelete ¶ added in v1.8.0
func (s *ThrottleEntity) AfterDelete(tx *gorm.DB) (err error)
func (*ThrottleEntity) AfterSave ¶ added in v1.8.0
func (s *ThrottleEntity) AfterSave(tx *gorm.DB) (err error)
func (ThrottleEntity) TableName ¶ added in v1.8.0
func (ThrottleEntity) TableName() string
Click to show internal directories.
Click to hide internal directories.