Initial commit including .env
This commit is contained in:
49
models/redis.go
Normal file
49
models/redis.go
Normal file
@@ -0,0 +1,49 @@
|
||||
package models
|
||||
|
||||
type MilerLog struct {
|
||||
UserID int `json:"userid"`
|
||||
Username string `json:"username"`
|
||||
LogDate string `json:"logdate"`
|
||||
Latitude string `json:"latitude"`
|
||||
Longitude string `json:"longitude"`
|
||||
Speed string `json:"speed"`
|
||||
Heading string `json:"heading"`
|
||||
Accuracy string `json:"accuracy"`
|
||||
Status string `json:"status"`
|
||||
OrderID string `json:"orderid"`
|
||||
Battery string `json:"battery"`
|
||||
IsCharging bool `json:"is_charging"`
|
||||
Connection string `json:"connection"`
|
||||
LocationService string `json:"location_service"`
|
||||
IsBackground bool `json:"is_background"`
|
||||
}
|
||||
|
||||
type MilerStatus struct {
|
||||
UserID int `json:"userid"`
|
||||
Status string `json:"status"`
|
||||
}
|
||||
|
||||
type ConsignmentLog struct {
|
||||
ConsignmentID int `json:"consignmentid"`
|
||||
UserID int `json:"userid"`
|
||||
LogDate string `json:"logdate"`
|
||||
Latitude string `json:"latitude"`
|
||||
Longitude string `json:"longitude"`
|
||||
Speed string `json:"speed"`
|
||||
Heading string `json:"heading"`
|
||||
Status string `json:"status"`
|
||||
Remarks string `json:"remarks"`
|
||||
Battery string `json:"battery"`
|
||||
IsBackground bool `json:"is_background"`
|
||||
}
|
||||
|
||||
type CachedUser struct {
|
||||
UserID int `json:"userid"`
|
||||
Username string `json:"username"`
|
||||
FirstName string `json:"firstname"`
|
||||
LastName string `json:"lastname"`
|
||||
ContactNo string `json:"contactno"`
|
||||
UserFCMToken string `json:"userfcmtoken"`
|
||||
AppVersion string `json:"app_version"`
|
||||
DeviceInfo string `json:"device_info"`
|
||||
}
|
||||
Reference in New Issue
Block a user