-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b67ede2
commit 1048ff0
Showing
18 changed files
with
395 additions
and
115 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.idea |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package models | ||
|
||
type AttributeProduct struct{ | ||
Code string `json:"code"` | ||
Value string `json:"value"` | ||
Value_pt string `json:"value_pt"` | ||
Value_en string `json:"value_en"` | ||
Value_br string `json:"value_br"` | ||
Value_es string `json:"value_es"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package models | ||
|
||
type GroupItem struct{ | ||
GroupId string `json:"groupId"` | ||
StoreId string `json:"storeId"` | ||
Products []string `json:"products"` | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package models | ||
|
||
type HierarchyCategory struct { | ||
LevelRoot string `json:"levelRoot"` | ||
LevelOne string `json:"levelOne"` | ||
LevelTwo string `json:"levelTwo"` | ||
LevelThree string `json:"levelThree"` | ||
LevelFour string `json:"levelFour"` | ||
LevelFive string `json:"levelFive"` | ||
LevelSix string `json:"levelSix"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
package models | ||
|
||
|
||
type Product struct { | ||
|
||
Id string `json:"_id"` | ||
Name string `json:"name"` | ||
Name_pt string `json:"name_pt"` | ||
Name_en string `json:"name_en"` | ||
Name_br string `json:"name_br"` | ||
Name_es string `json:"name_es"` | ||
Desc string `json:"desc"` | ||
Desc_pt string `json:"desc_pt"` | ||
Desc_en string `json:"desc_en"` | ||
Desc_br string `json:"desc_br"` | ||
Desc_es string `json:"desc_es"` | ||
LongDesc string `json:"longDesc"` | ||
LongDesc_pt string `json:"longDesc_pt"` | ||
LongDesc_en string `json:"longDesc_en"` | ||
LongDesc_br string `json:"longDesc_br"` | ||
LongDesc_es string `json:"longDesc_es"` | ||
Status string `json:"status"` | ||
SupplierId string `json:"supplierId"` | ||
Brand string `json:"brand"` | ||
Brand_pt string `json:"brand_pt"` | ||
Brand_en string `json:"brand_en"` | ||
Brand_br string `json:"brand_br"` | ||
Brand_es string `json:"brand_es"` | ||
CategoryId string `json:"categoryId"` | ||
MediaId []string `json:"mediaId"` | ||
HierarchyCategory HierarchyCategory `json:"hierarchyCategory"` | ||
Attributes []ProductAttribute `json:"attributes"` | ||
Stores []ProductStore `json:"stores"` | ||
ScanCodes []ScanCode `json:"scanCodes"` | ||
Promotions []PromotionItem `json:"promotions"` | ||
Groups []GroupItem `json:"groups"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package models | ||
|
||
type ProductAttribute struct{ | ||
Code string `json:"code"` | ||
Value string `json:"value"` | ||
Value_pt string `json:"value_pt"` | ||
Value_en string `json:"value_en"` | ||
Value_br string `json:"value_br"` | ||
Value_es string `json:"value_es"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package models | ||
|
||
type ProductStore struct{ | ||
StoreId string `json:"storeId"` | ||
OldPrice float64 `json:"oldPrice"` | ||
SellPrice float64 `json:"sellPrice"` | ||
Discontinued bool `json:"discontinued"` | ||
Attributes []ProductAttribute `json:"attributes"` | ||
Status string `json:"status"` | ||
StockOnHand float64 `json:"stockOnHand"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package models | ||
|
||
import "time" | ||
|
||
type PromotionItem struct{ | ||
Type string `json:"type"` | ||
GroupId string `json:"groupId"` | ||
StoreId string `json:"storeId"` | ||
StartDate time.Time `json:"startDate"` | ||
EndDate time.Time `json:"endDate"` | ||
Desc string `json:"desc"` | ||
Desc_pt string `json:"desc_pt"` | ||
Desc_en string `json:"desc_en"` | ||
Desc_br string `json:"desc_br"` | ||
Desc_es string `json:"desc_es"` | ||
Desc2 string `json:"desc2"` | ||
Desc2_pt string `json:"desc2_pt"` | ||
Desc2_en string `json:"desc2_en"` | ||
Desc2_br string `json:"desc2_br"` | ||
Desc2_es string `json:"desc2_es"` | ||
Desc3 string `json:"desc3"` | ||
Desc3_pt string `json:"desc3_pt"` | ||
Desc3_en string `json:"desc3_en"` | ||
Desc3_br string `json:"desc3_br"` | ||
Desc3_es string `json:"desc3_es"` | ||
Price float64 `json:"price"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package models | ||
|
||
type ScanCode struct{ | ||
Ean string `json:"ean"` | ||
Primary string `json:"primary"` | ||
Type string `json:"type"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
package models | ||
|
||
type ChecklistTaskItem_v1 struct { | ||
|
||
UniqueId string `json:"_uId"` | ||
ApplicationId string `json:"applicationId"` | ||
TaskId string `json:"taskId"` | ||
Type string `json:"type"` | ||
Status string `json:"status"` | ||
Observation string `json:"observation"` | ||
StartDate int `json:"startDate"` | ||
|
||
|
||
ItemId string `json:"itemId"` | ||
} | ||
|
||
|
||
func ( item *ChecklistTaskItem_v1 ) GetUniqueId() string { | ||
return item.UniqueId | ||
} | ||
|
||
func ( item *ChecklistTaskItem_v1 ) GetItemId() string { | ||
return item.ItemId | ||
} | ||
|
||
func ( item *ChecklistTaskItem_v1 ) GetType() string { | ||
return item.Type | ||
} | ||
|
||
func ( item *ChecklistTaskItem_v1 ) GetStatus() string { | ||
return item.Status | ||
} | ||
|
||
func ( item *ChecklistTaskItem_v1 ) GetStartDate() int { | ||
return item.StartDate | ||
} |
Oops, something went wrong.