zlimit.go 605 B

1234567891011121314151617181920212223242526272829303132333435
  1. package model
  2. // auth const
  3. const (
  4. Forbidden = int64(1)
  5. Allow = int64(2)
  6. Formal = int64(3)
  7. Pay = int64(4)
  8. AllowDown = int64(1)
  9. ForbiddenDown = int64(0)
  10. AuthOK = 1
  11. AuthNotOK = 0
  12. )
  13. // for prom
  14. var (
  15. PlayAuth = map[int64]string{
  16. Forbidden: "play_forbidden",
  17. Allow: "play_allown",
  18. Formal: "play_formal_member",
  19. Pay: "play_pay_member",
  20. }
  21. DownAuth = map[int64]string{
  22. ForbiddenDown: "down_forbidden",
  23. AllowDown: "down_allown",
  24. }
  25. )
  26. // Auth for auth result
  27. type Auth struct {
  28. Play int64 `json:"play"`
  29. Down int64 `json:"down"`
  30. }