diff --git a/model/model.go b/model/model.go new file mode 100644 index 0000000..9c2ab6a --- /dev/null +++ b/model/model.go @@ -0,0 +1,29 @@ +package model + +import "fmt" + +type Task struct { + Id string + Content string +} + +type Data struct { + Count int + Record map[int]int +} + +type Student struct { + Name string + Age int +} + +func (stu Student) Prinfstu() { + fmt.Println(stu.Age) + fmt.Println(stu.Name) +} + +type CursorData struct { + Uid string + Author string + Age int +}