Patch contract by ImeiID

This commit is contained in:
Nedim
2023-11-02 11:56:06 +01:00
parent b9fb75ff36
commit 4767756499
4 changed files with 145 additions and 20 deletions

View File

@@ -36,6 +36,7 @@ type Contract struct {
SellerName string `json:"sellerName" gorm:"-"`
ProductName string `json:"productName" gorm:"-"`
NumberOfDevices int `json:"numberOfDevices" gorm:"-"`
DevicesImeis []string `json:"devicesImeis" gorm:"-"`
}
type DashboardContractResponse struct {
@@ -266,8 +267,8 @@ type Status struct {
}
type ActiveContractsResponse struct {
ActiveCount int64 `json:"active"`
ExecutedCount int64 `json:"executed"`
ActiveCount int64 `json:"active"`
ExecutedCount int64 `json:"executed"`
MonthlyContracts map[string]map[string]int64 `json:"monthly"`
}