Initial commit including .env

This commit is contained in:
2026-06-22 17:43:40 +05:30
commit c577d47b75
286 changed files with 85878 additions and 0 deletions

49
models/redis.go Normal file
View 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"`
}