Skip to content

Commit

Permalink
Merge pull request #31 from erply/feature/add-more-languages-to-get-p…
Browse files Browse the repository at this point in the history
…roduct-groups

Added more languages to ProductGroup struct
  • Loading branch information
Dysar committed Jul 22, 2020
2 parents f4beac5 + a3d0ae3 commit 1820f57
Showing 1 changed file with 15 additions and 12 deletions.
27 changes: 15 additions & 12 deletions pkg/api/products/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,17 +45,7 @@ type (
Product struct {
ProductID int `json:"productID"`
Active int `json:"active"`
Name string `json:"name"`
NameEng string `json:"nameENG"`
NameSpa string `json:"nameSPA"`
NameEst string `json:"nameEST"`
NameGer string `json:"nameGER"`
NameSwe string `json:"nameSWE"`
NameFin string `json:"nameFIN"`
NameRus string `json:"nameRUS"`
NameLat string `json:"nameLAT"`
NameLit string `json:"nameLIT"`
NameGre string `json:"nameGRE"`
NameLanguages
Code string `json:"code"`
Code2 string `json:"code2"`
Code3 *string `json:"code3"`
Expand Down Expand Up @@ -150,7 +140,7 @@ type (

ProductGroup struct {
ID uint `json:"productGroupID"`
Name string `json:"name"`
NameLanguages
ShowInWebshop string `json:"showInWebshop"`
NonDiscountable byte `json:"nonDiscountable"`
PositionNo int `json:"positionNo"`
Expand All @@ -161,6 +151,19 @@ type (
Attributes []map[string]string `json:"attributes,omitempty"`
}

NameLanguages struct {
Name string `json:"name"`
NameEng string `json:"nameENG"`
NameSpa string `json:"nameSPA"`
NameEst string `json:"nameEST"`
NameGer string `json:"nameGER"`
NameSwe string `json:"nameSWE"`
NameFin string `json:"nameFIN"`
NameRus string `json:"nameRUS"`
NameLat string `json:"nameLAT"`
NameLit string `json:"nameLIT"`
NameGre string `json:"nameGRE"`
}
//GetProductUnitsResponse ...
GetProductUnitsResponse struct {
Status sharedCommon.Status `json:"status"`
Expand Down

0 comments on commit 1820f57

Please sign in to comment.