1Panel/agent/app/model/command.go
ssongliu 46fda7ecfb
Some checks failed
sync2gitee / repo-sync (push) Failing after -7m49s
fix: 移除 gorm 类型参数 (#6123)
2024-08-14 10:43:32 +08:00

14 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"`
}