You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
396 B
31 lines
396 B
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}
|
|
}
|