File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -1059,8 +1059,8 @@ type queryUsersResponse struct {
10591059 Count int64 `json:"recordsCount,string,omitempty"`
10601060}
10611061
1062- // SQLExpression is a query condition used to filter results.
1063- type SQLExpression struct {
1062+ // Expression is a query condition used to filter results.
1063+ type Expression struct {
10641064 Email string `json:"email,omitempty"`
10651065 UID string `json:"userId,omitempty"`
10661066 PhoneNumber string `json:"phoneNumber,omitempty"`
@@ -1074,7 +1074,7 @@ type QueryUsersRequest struct {
10741074 SortBy SortBy `json:"-"`
10751075 Order Order `json:"-"`
10761076 TenantID string `json:"tenantId,omitempty"`
1077- Expression []* SQLExpression `json:"expression,omitempty"`
1077+ Expression []* Expression `json:"expression,omitempty"`
10781078}
10791079
10801080// MarshalJSON marshals a QueryUsersRequest into JSON (for internal use only).
Original file line number Diff line number Diff line change @@ -1947,7 +1947,7 @@ func TestQueryUsers(t *testing.T) {
19471947 Limit : 1 ,
19481948 SortBy : UserEmail ,
19491949 Order : Asc ,
1950- Expression : []* SQLExpression {
1950+ Expression : []* Expression {
19511951 {
19521952 Email : "testuser@example.com" ,
19531953 },
@@ -1992,7 +1992,7 @@ func TestQueryUsersError(t *testing.T) {
19921992 Limit : 1 ,
19931993 SortBy : UserEmail ,
19941994 Order : Asc ,
1995- Expression : []* SQLExpression {
1995+ Expression : []* Expression {
19961996 {
19971997 Email : "testuser@example.com" ,
19981998 },
You can’t perform that action at this time.
0 commit comments