init: initial commit

This commit is contained in:
Blizzard
2026-02-06 14:44:06 +08:00
commit 3115b58cb2
133 changed files with 25889 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
package plant
import (
"sundynix-go/global"
"time"
)
type CareTask struct {
global.BaseModel
PlantId string `json:"plantId" gorm:"index"`
PlanId string `json:"planId" gorm:"index"`
UserId string `json:"userId" gorm:"index"`
Name string `json:"name"`
Icon string `json:"icon" gorm:"type:text"`
DueDate time.Time `json:"dueDate"` // 应做时间(用于判断逾期)
CompletedAt *time.Time `json:"completedAt" gorm:"column:completed_at"` // 完成时间(为nil表示未完成)
Status int `json:"status"` // 1:待执行 2:已完成 3:已跳过
}