shop_product_spec.go 611 B

123456789101112131415161718192021222324252627282930313233343536
  1. package fetdata
  2. import (
  3. "golang-fave/engine/utils"
  4. "golang-fave/engine/wrapper"
  5. )
  6. type ShopProductSpec struct {
  7. wrap *wrapper.Wrapper
  8. object *utils.MySql_shop_product_spec
  9. }
  10. func (this *ShopProductSpec) load() *ShopProductSpec {
  11. return this
  12. }
  13. func (this *ShopProductSpec) FilterId() int {
  14. if this == nil {
  15. return 0
  16. }
  17. return this.object.A_filter_id
  18. }
  19. func (this *ShopProductSpec) FilterName() string {
  20. if this == nil {
  21. return ""
  22. }
  23. return this.object.A_filter_name
  24. }
  25. func (this *ShopProductSpec) FilterValue() string {
  26. if this == nil {
  27. return ""
  28. }
  29. return this.object.A_filter_value
  30. }