实现Update接口

This commit is contained in:
2025-09-10 14:42:54 +08:00
parent 4805e422f7
commit cbcba09d40
2 changed files with 75 additions and 37 deletions

View File

@@ -45,9 +45,6 @@ type FeedingPlan struct {
// OrderInParent 在父计划中的执行顺序
OrderInParent *int `gorm:"column:order_in_parent" json:"order_in_parent,omitempty"`
// IsMaster 是否为主计划(主计划可以包含子计划)
IsMaster bool `gorm:"not null;default:false;column:is_master" json:"is_master"`
// CreatedAt 创建时间
CreatedAt time.Time `gorm:"column:created_at" json:"created_at"`