associate_order.go 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. package model
  2. import "go-common/library/time"
  3. // order grant state
  4. const (
  5. AssociateGrantStateNone int8 = iota
  6. AssociateGrantStateHadGrant
  7. )
  8. // ArgBilibiliVipGrant bilibili vip grant args.
  9. type ArgBilibiliVipGrant struct {
  10. OpenID string
  11. OutOpenID string
  12. OutOrderNO string
  13. Duration int32
  14. AppID int64
  15. }
  16. // VipOrderAssociateGrant vip order associate grant.
  17. type VipOrderAssociateGrant struct {
  18. ID int64
  19. AppID int64
  20. Mid int64
  21. Months int32
  22. OutOpenID string
  23. OutTradeNO string
  24. State int8
  25. Ctime time.Time
  26. Mtime time.Time
  27. }
  28. // ArgEleVipGrant args ele vip grant.
  29. type ArgEleVipGrant struct {
  30. OrderNO string `form:"order_no" validate:"required"`
  31. }
  32. // VipAssociateGrantCount associate grant count.
  33. type VipAssociateGrantCount struct {
  34. ID int64 `json:"id"`
  35. AppID int64 `json:"app_id"`
  36. Mid int64 `json:"mid"`
  37. Months int32 `json:"months"`
  38. CurrentCount int64 `json:"current_count"`
  39. Ctime time.Time `json:"-"`
  40. Mtime time.Time `json:"-"`
  41. }