-
Notifications
You must be signed in to change notification settings - Fork 0
/
create.go
50 lines (41 loc) · 991 Bytes
/
create.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
package models
import "time"
type Companies struct {
ID uint `json:"value"`
Name string `json:"label"`
}
type Tags struct {
ID uint `json:"value"`
Name string `json:"label"`
}
type Dates struct {
ID uint `json:"id"`
TimeStamp time.Time `json:"time_stamp"`
}
type Bills struct {
ID uint `json:"id"`
Title string `json:"title"`
Price float64 `json:"price"`
CompanyID uint `json:"company_id"`
TagID uint `json:"tag_id"`
DateID uint `json:"date_id"`
}
type BillID struct {
ID uint `json:"id"`
}
type DateQuery struct {
Month string `json:"month"`
Year string `json:"year"`
}
type MonthSelector struct {
Month string `json:"month"`
}
type Res struct {
Title string `json:"title"`
Price string `json:"price"`
IsNewCompany bool `json:"isnewCompany"`
Company string `json:"company"`
IsNewTag bool `json:"isNewTag"`
Tag string `json:"tag"`
Date string `json:"date"`
}