-
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.
feat<GetTaskById>: Added method to retrieve task by Id
- Loading branch information
1 parent
1048ff0
commit 17dfaad
Showing
7 changed files
with
154 additions
and
53 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
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
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
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 |
---|---|---|
@@ -1,10 +1,63 @@ | ||
package models | ||
|
||
type TaskItem interface { | ||
GetUniqueId() string | ||
GetItemId() string | ||
GetName() string | ||
GetType() string | ||
GetStatus() string | ||
GetStartDate() int | ||
} | ||
import "github.com/Tlantic/mrs-service-go-sdk/catalog/models" | ||
|
||
type TaskItem 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"` | ||
ItemEAN string `json:"itemEAN"` | ||
ItemName string `json:"itemName"` | ||
ExpirationDate int `json:"expirationDate"` | ||
HierarchyCategory models.HierarchyCategory `json:"hierarchyCategory"` | ||
|
||
PosPrice int `json:"posPrice"` | ||
LabelPrice int `json:"labelPrice"` | ||
OldERPPrice int `json:"oldERPPrice"` | ||
PriceDivergence bool `json:"priceDivergence"` | ||
|
||
Quantity int `json:"quantity"` | ||
ExpectedQuantity int `json:"expectedQuantity"` | ||
|
||
CheckExpirationDate bool `json:"checkExpirationDate"` | ||
|
||
PickCount int `json:"pickCount"` | ||
FirstPickingTime int `json:"firstPickingTime"` | ||
ReceptionUnit int `json:"receptionUnit"` | ||
ReceptionUnitQuantity int `json:"receptionUnitQuantity"` | ||
} | ||
|
||
func ( item *TaskItem ) GetUniqueId() string { | ||
return item.UniqueId | ||
} | ||
|
||
func ( item *TaskItem ) GetItemId() string { | ||
return item.ItemId | ||
} | ||
|
||
func ( item *TaskItem ) GetItemEAN() string { | ||
return item.ItemEAN | ||
} | ||
|
||
func ( item *TaskItem ) GetName() string { | ||
return item.ItemEAN | ||
} | ||
|
||
func ( item *TaskItem ) GetType() string { | ||
return item.Type | ||
} | ||
|
||
func ( item *TaskItem ) GetStatus() string { | ||
return item.Status | ||
} | ||
|
||
func ( item *TaskItem ) GetStartDate() int { | ||
return item.StartDate | ||
} | ||
|
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