mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2024-12-05 02:19:00 +08:00
8870b92ceb
Refs #3220
15 lines
418 B
Go
15 lines
418 B
Go
package model
|
|
|
|
type Command struct {
|
|
BaseModel
|
|
Name string `gorm:"type:varchar(64);unique;not null" json:"name"`
|
|
GroupID uint `gorm:"type:decimal" json:"groupID"`
|
|
Command string `gorm:"type:varchar(256);not null" json:"command"`
|
|
}
|
|
|
|
type RedisCommand struct {
|
|
BaseModel
|
|
Name string `gorm:"type:varchar(64);unique;not null" json:"name"`
|
|
Command string `gorm:"type:varchar(256);not null" json:"command"`
|
|
}
|