Skip to content

Commit 784ca1b

Browse files
committed
rename Expression
1 parent 0e145b0 commit 784ca1b

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

auth/user_mgt.go

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1059,22 +1059,22 @@ 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"`
10671067
}
10681068

10691069
// QueryUsersRequest is the request structure for the accounts:query endpoint.
10701070
type QueryUsersRequest struct {
1071-
ReturnUserInfo bool `json:"returnUserInfo"`
1072-
Limit int64 `json:"limit,string,omitempty"`
1073-
Offset int64 `json:"offset,string,omitempty"`
1074-
SortBy SortBy `json:"-"`
1075-
Order Order `json:"-"`
1076-
TenantID string `json:"tenantId,omitempty"`
1077-
Expression []*SQLExpression `json:"expression,omitempty"`
1071+
ReturnUserInfo bool `json:"returnUserInfo"`
1072+
Limit int64 `json:"limit,string,omitempty"`
1073+
Offset int64 `json:"offset,string,omitempty"`
1074+
SortBy SortBy `json:"-"`
1075+
Order Order `json:"-"`
1076+
TenantID string `json:"tenantId,omitempty"`
1077+
Expression []*Expression `json:"expression,omitempty"`
10781078
}
10791079

10801080
// MarshalJSON marshals a QueryUsersRequest into JSON (for internal use only).

auth/user_mgt_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
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
19981998
},

0 commit comments

Comments
 (0)