dao.go 854 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. package block
  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 int64
  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. StartTime int64 `json:"st"`
  42. EndTime int64 `json:"et"`
  43. }
  44. // MCUserDetail .
  45. type MCUserDetail struct {
  46. BlockCount int64 `json:"block_count"`
  47. }