mirror of
https://github.com/langhuihui/monibuca.git
synced 2025-12-24 13:48:04 +08:00
18 lines
335 B
Go
18 lines
335 B
Go
package pkg
|
|
|
|
import (
|
|
"gorm.io/gorm"
|
|
)
|
|
|
|
// RecordPlan 录制计划模型
|
|
type RecordPlan struct {
|
|
gorm.Model
|
|
Name string `json:"name" gorm:"default:''"`
|
|
Plan string `json:"plan" gorm:"type:varchar(255)"`
|
|
Enable bool `json:"enable" gorm:"default:false"` // 是否启用
|
|
}
|
|
|
|
func (r *RecordPlan) GetKey() uint {
|
|
return r.ID
|
|
}
|