Files
sundynix-plant-be/model/plant/my_plant_growth_record.go
T
2026-02-11 10:40:21 +08:00

19 lines
774 B
Go

package plant
import (
"sundynix-go/global"
"sundynix-go/model/system"
)
type GrowthRecord struct {
global.BaseModel
PlantId string `json:"plantId" form:"plantId" gorm:"index;column:plant_id;comment:植物id"`
UserId string `json:"userId" form:"userId" gorm:"index;column:user_id;comment:用户id"`
Name string `json:"name" form:"name" gorm:"column:name;size:50;comment:名称"`
Tag string `json:"tag" form:"tag" gorm:"column:tag;size:50;comment:标签"`
Desc string `json:"desc" form:"desc" gorm:"column:desc;size:200;comment:描述"`
Content string `json:"content" form:"content" gorm:"column:content;size:200;comment:内容"`
//图片
ImgList []*system.Oss `json:"imgList" form:"imgList" gorm:"many2many:growth_record_oss;comment:图片列表"`
}