Compare commits
	
		
			3 Commits
		
	
	
		
			master
			...
			feature/ge
		
	
	| Author | SHA1 | Date | 
|---|---|---|
| 
							
							
								 | 
						e4436002e8 | |
| 
							
							
								 | 
						6ed64beecb | |
| 
							
							
								 | 
						cdccf31571 | 
| 
						 | 
					@ -2,9 +2,57 @@ package model
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// ResponseSupplierInfo ...
 | 
					// ResponseSupplierInfo ...
 | 
				
			||||||
type ResponseSupplierInfo struct {
 | 
					type ResponseSupplierInfo struct {
 | 
				
			||||||
	ID           string `json:"id"`
 | 
						ID           string            `json:"id"`
 | 
				
			||||||
	Name         string `json:"name"`
 | 
						Name         string            `json:"name"`
 | 
				
			||||||
	BusinessType string `json:"businessType"`
 | 
						BusinessType string            `json:"businessType"`
 | 
				
			||||||
 | 
						Statistic    SupplierStatistic `json:"statistic"`
 | 
				
			||||||
 | 
						Rating       float64           `json:"rating"`
 | 
				
			||||||
 | 
						Inventories  []*SKUCommonInfo  `json:"inventories"`
 | 
				
			||||||
 | 
						Active       bool              `json:"active"`
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// SupplierStatistic ...
 | 
				
			||||||
 | 
					type SupplierStatistic struct {
 | 
				
			||||||
 | 
						TotalInventory      int64   `json:"totalInventory"`
 | 
				
			||||||
 | 
						TotalQuantitySale   int64   `json:"totalQuantitySale"`
 | 
				
			||||||
 | 
						TotalProduct        int64   `json:"totalProduct"`
 | 
				
			||||||
 | 
						TotalHasOrderSeller int64   `json:"totalHasOrderSeller"`
 | 
				
			||||||
 | 
						TotalFollower       int64   `json:"totalFollower"`
 | 
				
			||||||
 | 
						SalesTotal          float64 `json:"salesTotal"`
 | 
				
			||||||
 | 
						SalesWeekTotal      float64 `json:"salesWeekTotal"`
 | 
				
			||||||
 | 
						SalesMonthTotal     float64 `json:"salesMonthTotal"`
 | 
				
			||||||
 | 
						SalesTwoMonthTotal  float64 `json:"salesTwoMonthTotal"`
 | 
				
			||||||
 | 
						SalesYearTotal      float64 `json:"salesYearTotal"`
 | 
				
			||||||
 | 
						SalesSuccess        float64 `json:"salesSuccess"`
 | 
				
			||||||
 | 
						SalesPending        float64 `json:"salesPending"`
 | 
				
			||||||
 | 
						SalesCancelled      float64 `json:"salesCancelled"`
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// SKUCommonInfo ...
 | 
				
			||||||
 | 
					type SKUCommonInfo struct {
 | 
				
			||||||
 | 
						Code         int                `json:"id,omitempty" bson:"id,omitempty"`
 | 
				
			||||||
 | 
						ID           string             `json:"_id" bson:"_id"`
 | 
				
			||||||
 | 
						Name         string             `json:"name" bson:"name"`
 | 
				
			||||||
 | 
						SearchString string             `json:"-" bson:"searchString,omitempty"`
 | 
				
			||||||
 | 
						Location     *LocationInventory `json:"location,omitempty" bson:"location,omitempty"`
 | 
				
			||||||
 | 
						MinimumValue float64            `json:"minimumValue,omitempty" bson:"-"`
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// LocationInventory ...
 | 
				
			||||||
 | 
					type LocationInventory struct {
 | 
				
			||||||
 | 
						Address      string         `bson:"address" json:"address"`
 | 
				
			||||||
 | 
						Province     string         `bson:"province" json:"province"`
 | 
				
			||||||
 | 
						ProvinceName string         `bson:"provinceName,omitempty" json:"provinceName,omitempty"`
 | 
				
			||||||
 | 
						District     string         `bson:"district" json:"district"`
 | 
				
			||||||
 | 
						Ward         string         `bson:"ward" json:"ward"`
 | 
				
			||||||
 | 
						FullAddress  string         `bson:"fullAddress,omitempty" json:"fullAddress,omitempty"`
 | 
				
			||||||
 | 
						Location     *MongoLocation `bson:"location" json:"location"`
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// MongoLocation ...
 | 
				
			||||||
 | 
					type MongoLocation struct {
 | 
				
			||||||
 | 
						Type        string    `bson:"type"`
 | 
				
			||||||
 | 
						Coordinates []float64 `bson:"coordinates"`
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// ResponseSupplierContract ...
 | 
					// ResponseSupplierContract ...
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue