archive.go 545 B

123456789101112131415161718192021222324252627282930313233343536
  1. package conf
  2. // Rules 稿件导入规则
  3. type Rules struct {
  4. Archive *ArchiveRule
  5. Up *UPRule
  6. Dimension *PageRule
  7. }
  8. // ArchiveRule .
  9. type ArchiveRule struct {
  10. Titles []string
  11. Contents []string
  12. TID []int32
  13. SubTID []int32
  14. State int
  15. NotAccess int
  16. }
  17. // UPRule .
  18. type UPRule struct {
  19. UName []string
  20. MID []int64
  21. }
  22. // PageRule .
  23. type PageRule struct {
  24. MinX int64
  25. MinY int64
  26. MaxX int64
  27. MaxY int64
  28. MinYX float32
  29. MaxYX float32
  30. MaxDuration int64
  31. MinDuration int64
  32. }