package server

import (
	"xiaoniaokuaiyan.com/xiaoniao/dal"
	"xiaoniaokuaiyan.com/xiaoniao/entity"
)

type ProductService interface {
	ProductGet(ids []int) (interface{}, error)
	ProductGetCoordinates(pid []int, coordinates string, cityId int) (interface{}, error)
	ProductGetByCateId(cateIds []int, pager dal.Pager, cityId int, sp dal.SortParam) (interface{}, error)
	GetProductCate(posType int) (interface{}, error)
	GetRecommendProduct(pager dal.Pager, cityId int, sp dal.SortParam) (interface{}, error)
	GetTags(level, cityId int) (interface{}, error)
	GetByTags(tags []string, pageIndex, pageSize uint, cityId int) (interface{}, error)
	SaveConsumerGeneSign(signInfo *entity.ConsumerGeneSign) (interface{}, error)
	GetProductAddingCate(cid int) (interface{}, error)
	AddByDpids([]int) (interface{}, error)
	GetTop(int, int) (interface{}, error)
	GetByGuess(mobile string) (interface{}, error)

	ZFB_ProductGetByCateId(cateIds []int, pager dal.Pager, cityId int, sp dal.SortParam) (interface{}, error)
	ZFB_GetByTags(tags []string, pageIndex, pageSize uint, cityId int) (interface{}, error)
	ZFB_GetRecommendProduct(pager dal.Pager, cityId int, sp dal.SortParam) (interface{}, error)
	ZFB_ProductGet(ids []int) (interface{}, error)
	ZFB_GetTop(n int, cityId int) (interface{}, error)
}