client_query_request.go 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. package ports
  2. type QueryByWhereAndOrderByRequest struct {
  3. DatabaseID string
  4. TablePrefixWithSchema string
  5. Version string
  6. Select string
  7. Where []ColumnCompare
  8. OrderBy []string
  9. PageNo int
  10. PageSize int
  11. }
  12. type CommonQueryRequest struct {
  13. DatabaseID string
  14. TablePrefixWithSchema string
  15. Version string
  16. Select string
  17. Where []ColumnCompare
  18. OrderBy []string
  19. Or []ColumnCompare
  20. GroupBy []string
  21. Join string
  22. Having []ColumnCompare
  23. PageNo int
  24. PageSize int
  25. }
  26. type QueryByKeysRequest struct {
  27. DatabaseID string
  28. TablePrefixWithSchema string
  29. Version string
  30. Select string
  31. KeyValues map[string]string
  32. }
  33. type CountWhereRequest struct {
  34. DatabaseID string
  35. TablePrefixWithSchema string
  36. Version string
  37. Where []ColumnCompare
  38. }
  39. type CommonCountRequest struct {
  40. DatabaseID string
  41. TablePrefixWithSchema string
  42. Version string
  43. Where []ColumnCompare
  44. Or []ColumnCompare
  45. GroupBy []string
  46. Join string
  47. Having []ColumnCompare
  48. }
  49. type EventQueryByKeysRequest struct {
  50. DatabaseID string
  51. TablePrefixWithSchema string
  52. Select string
  53. KeyValues []string
  54. PageNo int
  55. PageSize int
  56. }
  57. type CommonEventQueryRequest struct {
  58. DatabaseID string
  59. TablePrefixWithSchema string
  60. Select string
  61. KeyValues []string
  62. Version string
  63. Operation string
  64. CreatorID string
  65. StartCreatedTime string
  66. EndCreatedTime string
  67. PageNo int
  68. PageSize int
  69. }
  70. type CountEventByKeysRequest struct {
  71. DatabaseID string
  72. TablePrefixWithSchema string
  73. KeyValues []string
  74. }
  75. type CommonCountEventRequest struct {
  76. DatabaseID string
  77. TablePrefixWithSchema string
  78. KeyValues []string
  79. Version string
  80. Operation string
  81. CreatorID string
  82. StartCreatedTime string
  83. EndCreatedTime string
  84. }