-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.go
105 lines (88 loc) · 2.31 KB
/
config.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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
package main
var dbConfig string
var connectionPool int
var baseURL string
var razorpayAuth string
var supportEmailID string
var supportEmailPassword string
var supportEmailHost string
var supportEmailPort int
var adminTable = "admins"
var billTable = "bills"
var employeeTable = "employees"
var foodTable = "foods"
var invoiceTable = "invoices"
var issueTable = "issues"
var hostelTable = "hostels"
var logTable = "logs"
var noteTable = "notes"
var noticeTable = "notices"
var roomTable = "rooms"
var signupTable = "signups"
var supportTable = "supports"
var userTable = "users"
var adminDigits = 7
var billDigits = 11
var employeeDigits = 9
var foodDigits = 15
var invoiceDigits = 9
var issueDigits = 9
var hostelDigits = 8
var noteDigits = 13
var noticeDigits = 11
var roomDigits = 12
var userDigits = 10
var dialogType = "1"
var toastType = "2"
var appUpdateAvailable = "3"
var appUpdateRequired = "4"
var androidLive = "T9h9P6j2N6y9M3Q8"
var androidTest = "K7b3V4h3C7t6g6M7"
var iOSLive = "b4E6U9K8j6b5E9W3"
var iOSTest = "R4n7N8G4m9B4S5n2"
// for checking unauth request
var apikeys = map[string]string{
androidLive: "1", // android live
androidTest: "1", // android test
iOSLive: "1", // iOS live
iOSTest: "1", // iOS test
}
var pro = map[string]int{
"9900": 1,
"49900": 6,
}
// required fields
var adminRequiredFields = []string{}
var billRequiredFields = []string{}
var employeeRequiredFields = []string{}
var foodRequiredFields = []string{}
var invoiceRequiredFields = []string{}
var issueRequiredFields = []string{}
var hostelRequiredFields = []string{}
var logRequiredFields = []string{}
var noteRequiredFields = []string{}
var noticeRequiredFields = []string{}
var paymentRequiredFields = []string{}
var roomRequiredFields = []string{}
var signupRequiredFields = []string{}
var supportRequiredFields = []string{}
var userRequiredFields = []string{}
// server codes
var statusCodeOk = "200"
var statusCodeCreated = "201"
var statusCodeBadRequest = "400"
var statusCodeForbidden = "403"
var statusCodeServerError = "500"
var statusCodeDuplicateEntry = "1000"
var defaultLimit = "25"
var defaultOffset = "0"
var test bool
var migrate bool
// versions
var iOSVersionCode = 1.0
var iOSForceVersionCode = 1.0
var androidVersionCode = 3.1
var androidForceVersionCode = 3.1
// s3
var s3Bucket string
var docS3Path = "document"