item.go 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. // Author : Eric Kim
  2. // Build Date : 23 Jul 2008 Last Update 02 Aug 2008
  3. // End-Agent for Passcon Multi OS go binding with Windows, MacOS, iOS, and Android
  4. // All rights are reserved.
  5. package model
  6. type ItemInfo struct {
  7. SolutionName SolutionType
  8. Version string
  9. Emails []string
  10. DomainName string
  11. DomainURI string
  12. ItemName string
  13. ItemNick string
  14. ModelName string
  15. ModelNo string
  16. BrandName string
  17. Sku string
  18. ItemCategory string
  19. Manufacturer string
  20. Origin string
  21. Language string
  22. Currency string
  23. SalesPrice float32
  24. DeliveryPrice float32
  25. MinimumQty float32
  26. UserCredit float32
  27. Options []Option
  28. Images []string
  29. ShortDesc string
  30. OriginDesc string
  31. TextDesc string
  32. }
  33. type SolutionType string
  34. var (
  35. SolutionTypeWooCommerce SolutionType = "WOOCOMMERCE"
  36. SolutionTypeShopify SolutionType = "SHOPIFY"
  37. SolutionTypeMagento SolutionType = "MAGENTO"
  38. SolutionTypeCafe24 SolutionType = "CAFE24"
  39. SolutionTypeGodo SolutionType = "GODO"
  40. SolutionTypeYoung SolutionType = "YOUNG"
  41. SolutionTypeOthers SolutionType = "OTHERS"
  42. )
  43. type Option struct {
  44. Name string
  45. Choices []Choice
  46. }
  47. type Choice struct {
  48. Name string
  49. Price float32
  50. }
  51. type Image struct {
  52. Path string
  53. Width int `json:"-"`
  54. Height int `json:"-"`
  55. }