golang 的 rabbitmq 消费项目
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

43 lines
944 B

  1. package taobao
  2. import "github.com/gin-gonic/gin"
  3. //TaoBaoArgs is args
  4. type TaoBaoArgs struct {
  5. Keyword string
  6. Biz string
  7. PageIndex string
  8. PageSize string
  9. Sort string
  10. StartPrice string
  11. EndPrice string
  12. IsTmall string
  13. IsCoupon string
  14. StartCommissionRate string
  15. Sesssion string
  16. EndCommissionRate string
  17. Uid string
  18. }
  19. // TaoBaoSearchList is return taobao search list
  20. func (t *TB) TaoBaoSearchList(c *gin.Context, args TaoBaoArgs) (*[]Material, error) {
  21. list, err := t.SearchList(c,
  22. args,
  23. )
  24. if err != nil {
  25. return nil, err
  26. }
  27. return list, nil
  28. }
  29. // TaoBaoSearchList is return taobao search list
  30. func (t *TB) TaoBaoFeaturedList(c *gin.Context, args TaoBaoArgs) (*[]TBFeatureStruct, error) {
  31. list, err := t.FeaturedList(c,
  32. args,
  33. )
  34. if err != nil {
  35. return nil, err
  36. }
  37. return list, nil
  38. }