Skip to content

Commit 23723ce

Browse files
committed
rename Expression
1 parent 0e145b0 commit 23723ce

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

auth/user_mgt.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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).

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)