1Panel/backend/app/model/command.go

15 lines
418 B
Go
Raw Normal View History

package model
type Command struct {
2022-09-01 16:48:43 +08:00
BaseModel
2022-08-31 23:16:10 +08:00
Name string `gorm:"type:varchar(64);unique;not null" json:"name"`
GroupID uint `gorm:"type:decimal" json:"groupID"`
2022-08-31 23:16:10 +08:00
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"`
}