-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcategory.go
47 lines (46 loc) · 838 Bytes
/
category.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
package main
//
//import "github.com/albrow/zoom"
//
//type Category struct {
// zoom.RandomID
// Name string `zoom:"index"`
// DispatchTAsID []string
// Description string
//}
//
//var (
// Categories *zoom.Collection
//)
//
//func newCategory() *Category {
// return &Category{
// Name: "",
// DispatchTAsID: []string{},
// Description: "",
// }
//}
//
//func CreateCategories() {
// _Categories, err := pool.NewCollectionWithOptions(&Category{},
// zoom.DefaultCollectionOptions.WithIndex(true))
// if err != nil {
// // handle error
// panic(err)
// }
//
// Categories = _Categories
//}
//
//func GetCategory(id string) *Category {
// cat := newCategory()
// if err := Students.Find(id, cat); err != nil {
// return nil
// }
// return cat
//}
//
////
////func GetAllCategories() *[]Category {
////
////}