coupon_service.go 618 B

1234567891011121314151617
  1. package server
  2. import (
  3. "xiaoniaokuaiyan.com/xiaoniao/cerror"
  4. "xiaoniaokuaiyan.com/xiaoniao/entity"
  5. )
  6. type CouponService interface {
  7. AddCoupon(*entity.DiscountTicket) (interface{}, error)
  8. ListCoupon(mobile string, status, pageIndex, pageSize int) (interface{}, error)
  9. Exchange(codeStr string, coustomId int, mobile string) (interface{}, cerror.CError)
  10. GetCoupon(id int) (interface{}, error)
  11. QueryFcode(string) (interface{}, error)
  12. GetCouponByOrderId(orderId string) (interface{}, error)
  13. CouponActList(mobile string, pid int) (interface{}, error)
  14. CouponReceive(id int, mobile string) (interface{}, error)
  15. }