1
0
mirror of https://github.com/1Panel-dev/1Panel.git synced 2025-02-08 01:20:07 +08:00
1Panel/agent/app/model/command.go
2024-08-14 10:43:32 +08:00

15 lines
328 B
Go

package model
type Command struct {
BaseModel
Name string `gorm:"unique;not null" json:"name"`
GroupID uint `json:"groupID"`
Command string `gorm:"not null" json:"command"`
}
type RedisCommand struct {
BaseModel
Name string `gorm:"unique;not null" json:"name"`
Command string `gorm:"not null" json:"command"`
}