order_service.go 1.4 KB

1234567891011121314151617181920212223242526272829
  1. package server
  2. import "xiaoniaokuaiyan.com/xiaoniao/entity"
  3. type OrderService interface {
  4. AddOrder(*entity.Order, int, string) (interface{}, error)
  5. Pay(*entity.Order, map[string]string) (interface{}, error)
  6. FailedOrder(string) (bool, error)
  7. CancelOrder(string) (bool, error)
  8. ListOrder(int, int, int, int, string, bool, bool) (interface{}, error)
  9. ListFileOrder(customId, pageIndex, pageSize, status int, mobile string, isZFB, isHis bool) (interface{}, error)
  10. OrderDetail(oid string) (interface{}, error)
  11. DelOrder(oid string) (bool, error)
  12. Refund(params map[string]string) (interface{}, error)
  13. OrderReport(oid, otype string) (interface{}, error)
  14. OrderUpdate(oitem *entity.Order, upType string) (interface{}, error)
  15. CommitSurvey(osItem *entity.OrderSurvey, uid int) (interface{}, error)
  16. PayQuery(oid string, extra map[string]string) (interface{}, error)
  17. WxPayCB(payResult map[string]string)
  18. WxPayQuery(extra map[string]string) (map[string]string, error)
  19. SaveCallbackInfo(info entity.OrderCallbackInfo) (interface{}, error)
  20. GetCallbackInfo(string) (interface{}, error)
  21. GetOrderInfoByCode(string) (interface{}, error)
  22. AddOrderInner(*entity.Order, int, string) (interface{}, error)
  23. GetOrderInfoByNurse(string, int) (interface{}, error)
  24. InsertAgent(orderId, openId, toopenId, customMobile string) (interface{}, error)
  25. AddOrderFCode(*entity.Order, int, string, string) (interface{}, error)
  26. OrderVaildCount(int, int, string) (interface{}, error)
  27. }