client_query_request.go 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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 int32
  10. PageSize int32
  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 int32
  24. PageSize int32
  25. }
  26. type QueryByKeysRequest struct {
  27. DatabaseID string
  28. TablePrefixWithSchema string
  29. Version string
  30. Select string
  31. Keys []Key
  32. Where []ColumnCompare
  33. }
  34. type CommonQueryByKeysRequest struct {
  35. DatabaseID string
  36. TablePrefixWithSchema string
  37. Version string
  38. Select string
  39. Keys []Key
  40. Where []ColumnCompare
  41. Or []ColumnCompare
  42. }
  43. type CountWhereRequest struct {
  44. DatabaseID string
  45. TablePrefixWithSchema string
  46. Version string
  47. Where []ColumnCompare
  48. PageNo int32
  49. PageSize int32
  50. }
  51. type CommonCountRequest struct {
  52. DatabaseID string
  53. TablePrefixWithSchema string
  54. Version string
  55. Where []ColumnCompare
  56. Or []ColumnCompare
  57. GroupBy []string
  58. Join string
  59. Having []ColumnCompare
  60. PageNo int32
  61. PageSize int32
  62. }