mysql_struct_shop_product.go 573 B

12345678910111213141516171819202122232425262728293031
  1. package utils
  2. import (
  3. "database/sql"
  4. )
  5. type MySql_shop_product struct {
  6. A_id int
  7. A_parent sql.NullInt64
  8. A_user int
  9. A_currency int
  10. A_price float64
  11. A_price_old float64
  12. A_price_promo float64
  13. A_gname string
  14. A_name string
  15. A_alias string
  16. A_vendor string
  17. A_quantity int
  18. A_category int
  19. A_briefly string
  20. A_content string
  21. A_datetime int
  22. A_active int
  23. A_custom1 string
  24. A_custom2 string
  25. }
  26. func (this *MySql_shop_product) A_parent_id() int {
  27. return int(this.A_parent.Int64)
  28. }