dao.go 691 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. package model
  2. import (
  3. "time"
  4. )
  5. // DBUser .
  6. type DBUser struct {
  7. ID int64
  8. MID int64
  9. Status BlockStatus
  10. CTime time.Time
  11. MTime time.Time
  12. }
  13. // DBUserDetail .
  14. type DBUserDetail struct {
  15. ID int64
  16. MID int64
  17. BlockCount int
  18. CTime time.Time
  19. MTime time.Time
  20. }
  21. // DBHistory .
  22. type DBHistory struct {
  23. ID int64
  24. MID int64
  25. AdminID int64
  26. AdminName string
  27. Source BlockSource
  28. Area BlockArea
  29. Reason string
  30. Comment string
  31. Action BlockAction
  32. StartTime time.Time
  33. Duration int64
  34. Notify bool
  35. CTime time.Time
  36. MTime time.Time
  37. }
  38. // MCBlockInfo .
  39. type MCBlockInfo struct {
  40. BlockStatus BlockStatus `json:"bs"`
  41. }