mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-14 11:58:02 +00:00
parent
e08b8dcb13
commit
1b44e9ad76
@ -11,7 +11,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func (s *Server) GetUserGrantByID(ctx context.Context, req *mgmt_pb.GetUserGrantByIDRequest) (*mgmt_pb.GetUserGrantByIDResponse, error) {
|
func (s *Server) GetUserGrantByID(ctx context.Context, req *mgmt_pb.GetUserGrantByIDRequest) (*mgmt_pb.GetUserGrantByIDResponse, error) {
|
||||||
idQuery, err := query.NewUserGrantGrantIDSearchQuery(req.GrantId)
|
idQuery, err := query.NewUserGrantIDSearchQuery(req.GrantId)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
@ -93,6 +93,10 @@ func NewUserGrantGrantIDSearchQuery(id string) (SearchQuery, error) {
|
|||||||
return NewTextQuery(UserGrantGrantID, id, TextEquals)
|
return NewTextQuery(UserGrantGrantID, id, TextEquals)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func NewUserGrantIDSearchQuery(id string) (SearchQuery, error) {
|
||||||
|
return NewTextQuery(UserGrantID, id, TextEquals)
|
||||||
|
}
|
||||||
|
|
||||||
func NewUserGrantUserTypeQuery(typ domain.UserType) (SearchQuery, error) {
|
func NewUserGrantUserTypeQuery(typ domain.UserType) (SearchQuery, error) {
|
||||||
return NewNumberQuery(UserTypeCol, typ, NumberEquals)
|
return NewNumberQuery(UserTypeCol, typ, NumberEquals)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user