client_query_request.go 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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. PageNo int32
  39. PageSize int32
  40. }
  41. type CommonCountRequest struct {
  42. DatabaseID string
  43. TablePrefixWithSchema string
  44. Version string
  45. Where []ColumnCompare
  46. Or []ColumnCompare
  47. GroupBy []string
  48. Join string
  49. Having []ColumnCompare
  50. PageNo int32
  51. PageSize int32
  52. }