client_query_request.go 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. 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. }