项目数据结构
This commit is contained in:
29
model/model.go
Normal file
29
model/model.go
Normal file
@@ -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
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user