stock request table created

This commit is contained in:
2026-07-04 17:49:54 +05:30
parent f220c24c17
commit abe2cb997b
24 changed files with 648 additions and 61 deletions

View File

@@ -86,6 +86,31 @@ type Locationconfigs struct {
Status string `json:"status"`
}
type FleetCounts struct {
Totalriders int `json:"totalriders"`
Activeriders int `json:"activeriders"`
Ridersworked int `json:"ridersworked"`
Totallogins int `json:"totallogins"`
}
type FleetRiderSummary struct {
Userid int `json:"userid"`
Fullname string `json:"fullname"`
Contactno string `json:"contactno"`
Partnerid int `json:"partnerid"`
Status string `json:"status"`
Vehicleno string `json:"vehicleno"`
Vehiclename string `json:"vehiclename"`
Dayslogged int `json:"dayslogged"`
Totalworkhours float32 `json:"totalworkhours"`
Totalshorthours float32 `json:"totalshorthours"`
Totalbreakhours float32 `json:"totalbreakhours"`
}
type FleetSummary struct {
Counts FleetCounts `json:"counts"`
Riders []FleetRiderSummary `json:"riders"`
}
type RiderlogDetails struct {
Logid int `json:"logid"`
@@ -103,4 +128,4 @@ type RiderlogDetails struct {
Shorthours float32 `json:"shorthours"`
Breakhours float32 `json:"breakhours"`
Logstatus int `json:"logstatus"`
}
}