-
Notifications
You must be signed in to change notification settings - Fork 0
/
model.go
84 lines (73 loc) · 1.76 KB
/
model.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
package main
type item_info struct {
Item_id []string
Club string
Club_id string
Items []string
Quantity []int
}
type club_info struct {
Club_id []string
Club []string
Info []string
Link []string
}
type Item struct {
ItemID []string `json:"itemID"`
Quantity []int `json:"Quantity"`
Club_id string `json:"club_id"`
Club string `json:"club"`
Return string `json:"returnDate"`
Name string `json:"name"`
ID string `json:"id"`
Username string `json:"username"`
}
type user struct {
Username string
ID string
}
type email_Item struct {
Name string
Quantity int
Left int
}
type return_email_Item struct {
Name string
Quantity int
Left int
ReturnDate string
Status string
}
// Remove the duplicate declaration of inventory
type BorrowedItem struct {
Name string `bson:"name"`
Quantity int `bson:"quantity"`
ReturnDate string `bson:"return_date"`
}
type Club_present struct {
Club_id string `bson:"club_id"`
Club string `bson:"club"`
Borrow_status string `bson:"borrow_status"`
Items []BorrowedItem `bson:"items"`
}
type student struct {
Username string `bson:"username"`
Name string `bson:"name"`
InstituteID string `bson:"institute_id"`
Club_info []Club_present `bson:"club_info"`
}
type DeleteItemsRequest struct {
Item []string `json:"item"`
Quantity []string `json:"quantity"`
ReturnDate []string `json:"returnDate"`
Username string `json:"username"`
Club string `json:"club"`
ID string `json:"id"`
}
type Status struct {
Status string `json:"status"`
}
type item_list struct {
Item string `json:"item"`
Quantity int `json:"quantity"`
}