-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnotes.go
65 lines (58 loc) · 1.53 KB
/
notes.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
package models
import "database/sql"
type UpdateNoteParams struct {
Tx *sql.Tx
UpdateField string
UpdateValues []interface{}
Where string
}
type Notes struct {
Note_Id int `json:"note_id"`
Company_Id string `json:"company_id"`
Item_Type string `json:"item_type"`
Item_Id int `json:"item_id"`
Note_Type string `json:"note_type"`
Notes sql.NullString `json:"notes"`
Date string `json:"date"`
Agent_Id int `json:"agent_id"`
Added_By string `json:"added_by"`
}
type AddNotesParams struct {
Company_Id string `json:"company_id"`
Item_Id int `json:"item_id"`
Item_Unique_Id string `json:"item_unique_id"`
Item_Type string `json:"item_type"`
Date string `json:"date"`
Agent_Id int `json:"agent_id"`
Note_Type string `json:"note_type"`
Notes string `json:"note"`
Added_By string `json:"added_by"`
Update_Deals_Count string `json:"update_deals_count"`
}
type ListsDealNotesParams struct {
Company_Id int
Fields string
Item_Type string
Item_Id string
Note_Type string
}
type AddNoteParams struct {
Company_Id string
Item_Id int
Item_Type string
Date string
Agent_Id int
Note_Type string
Notes string
Agent_Name string
Tx *sql.Tx
}
type DeleteNoteParams struct {
Company_Id string
Item_Id int
Item_Type string
Note_Type string
Note_Id int
Agent_Id int
Tx *sql.Tx
}