package lang import "product/backend/module/base" type Body struct { Title string `gorm:"" json:"title"` } type Model struct { Body base.Model } var Rows []Model func init() { scratch := Model{} scratch.ID = 1 scratch.Title = "Scratch" python := Model{} python.ID = 2 python.Title = "Python" cpp := Model{} cpp.ID = 3 cpp.Title = "CPP" Rows = []Model{scratch, python, cpp} }