Skip to content

Commit d14f9b7

Browse files
style: Rename SqlExpression to SQLExpression
Renames the `SqlExpression` struct to `SQLExpression` to conform to Go's linting standards for acronyms. - Updates the struct definition in `auth/user_mgt.go`. - Updates all usages of the struct in `auth/user_mgt.go` and `auth/user_mgt_test.go`.
1 parent 0f2f274 commit d14f9b7

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
@@ -849,8 +849,8 @@ type queryUsersResponse struct {
849849
Count string `json:"recordsCount,omitempty"`
850850
}
851851

852-
// SqlExpression is a query condition used to filter results.
853-
type SqlExpression struct {
852+
// SQLExpression is a query condition used to filter results.
853+
type SQLExpression struct {
854854
Email string `json:"email,omitempty"`
855855
UserID string `json:"userId,omitempty"`
856856
PhoneNumber string `json:"phoneNumber,omitempty"`
@@ -864,7 +864,7 @@ type QueryUsersRequest struct {
864864
SortBy string `json:"sortBy,omitempty"`
865865
Order string `json:"order,omitempty"`
866866
TenantID string `json:"tenantId,omitempty"`
867-
Expression []*SqlExpression `json:"expression,omitempty"`
867+
Expression []*SQLExpression `json:"expression,omitempty"`
868868
}
869869

870870
// SortByField is a field to use for sorting user accounts.

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: string(UserEmail),
19491949
Order: string(Asc),
1950-
Expression: []*SqlExpression{
1950+
Expression: []*SQLExpression{
19511951
{
19521952
19531953
},
@@ -1992,7 +1992,7 @@ func TestQueryUsersError(t *testing.T) {
19921992
Limit: "1",
19931993
SortBy: "USER_EMAIL",
19941994
Order: "ASC",
1995-
Expression: []*SqlExpression{
1995+
Expression: []*SQLExpression{
19961996
{
19971997
19981998
},

0 commit comments

Comments
 (0)