product_service.go 1.3 KB

123456789101112131415161718192021222324252627
  1. package server
  2. import (
  3. "xiaoniaokuaiyan.com/xiaoniao/dal"
  4. "xiaoniaokuaiyan.com/xiaoniao/entity"
  5. )
  6. type ProductService interface {
  7. ProductGet(ids []int) (interface{}, error)
  8. ProductGetCoordinates(pid []int, coordinates string, cityId int) (interface{}, error)
  9. ProductGetByCateId(cateIds []int, pager dal.Pager, cityId int, sp dal.SortParam) (interface{}, error)
  10. GetProductCate(posType int) (interface{}, error)
  11. GetRecommendProduct(pager dal.Pager, cityId int, sp dal.SortParam) (interface{}, error)
  12. GetTags(level, cityId int) (interface{}, error)
  13. GetByTags(tags []string, pageIndex, pageSize uint, cityId int) (interface{}, error)
  14. SaveConsumerGeneSign(signInfo *entity.ConsumerGeneSign) (interface{}, error)
  15. GetProductAddingCate(cid int) (interface{}, error)
  16. AddByDpids([]int) (interface{}, error)
  17. GetTop(int, int) (interface{}, error)
  18. GetByGuess(mobile string) (interface{}, error)
  19. ZFB_ProductGetByCateId(cateIds []int, pager dal.Pager, cityId int, sp dal.SortParam) (interface{}, error)
  20. ZFB_GetByTags(tags []string, pageIndex, pageSize uint, cityId int) (interface{}, error)
  21. ZFB_GetRecommendProduct(pager dal.Pager, cityId int, sp dal.SortParam) (interface{}, error)
  22. ZFB_ProductGet(ids []int) (interface{}, error)
  23. ZFB_GetTop(n int, cityId int) (interface{}, error)
  24. }