@@ -1071,7 +1071,7 @@ type QueryUsersRequest struct {
10711071 ReturnUserInfo bool `json:"returnUserInfo"`
10721072 Limit int64 `json:"limit,string,omitempty"`
10731073 Offset int64 `json:"offset,string,omitempty"`
1074- SortBy SortByField `json:"-"`
1074+ SortBy SortBy `json:"-"`
10751075 Order Order `json:"-"`
10761076 TenantID string `json:"tenantId,omitempty"`
10771077 Expression []* SQLExpression `json:"expression,omitempty"`
@@ -1081,7 +1081,7 @@ type QueryUsersRequest struct {
10811081func (q * QueryUsersRequest ) MarshalJSON () ([]byte , error ) {
10821082 var sortBy string
10831083 if q .SortBy != sortByUnspecified {
1084- sortBys := map [SortByField ]string {
1084+ sortBys := map [SortBy ]string {
10851085 UID : "USER_ID" ,
10861086 Name : "NAME" ,
10871087 CreatedAt : "CREATED_AT" ,
@@ -1113,11 +1113,11 @@ func (q *QueryUsersRequest) MarshalJSON() ([]byte, error) {
11131113 return json .Marshal (temp )
11141114}
11151115
1116- // SortByField is a field to use for sorting user accounts.
1117- type SortByField int
1116+ // SortBy is a field to use for sorting user accounts.
1117+ type SortBy int
11181118
11191119const (
1120- sortByUnspecified SortByField = iota
1120+ sortByUnspecified SortBy = iota
11211121 // UID sorts results by userId.
11221122 UID
11231123 // Name sorts results by name.
0 commit comments