item.go 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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. SolutionTypeDabory SolutionType = "dbrshop"
  37. SolutionTypeShopify SolutionType = "SHOPIFY"
  38. SolutionTypeMagento SolutionType = "MAGENTO"
  39. SolutionTypeCafe24 SolutionType = "CAFE24"
  40. SolutionTypeGodo SolutionType = "GODO"
  41. SolutionTypeYoung SolutionType = "YOUNG"
  42. SolutionTypeOthers SolutionType = "OTHERS"
  43. )
  44. type Option struct {
  45. Name string
  46. Choices []Choice
  47. }
  48. type Choice struct {
  49. Name string
  50. Price float32
  51. }
  52. type Image struct {
  53. Path string
  54. Width int `json:"-"`
  55. Height int `json:"-"`
  56. }