Method
GetUserGroupByID
(ctx context.Context, id string)
Source from the content-addressed store, hash-verified
| 47 | ` |
| 48 | |
| 49 | func (q *Queries) GetUserGroupByID(ctx context.Context, id string) (UserGroup, error) { |
| 50 | row := q.db.QueryRow(ctx, getUserGroupByID, id) |
| 51 | var i UserGroup |
| 52 | err := row.Scan( |
| 53 | &i.ID, |
| 54 | &i.Name, |
| 55 | &i.Remark, |
| 56 | &i.InboundIds, |
| 57 | ) |
| 58 | return i, err |
| 59 | } |
| 60 | |
| 61 | const listUserGroupMembers = `-- name: ListUserGroupMembers :many |
| 62 | SELECT user_id FROM user_group_members WHERE group_id = $1 ORDER BY user_id |
Callers
nothing calls this directly
Tested by
no test coverage detected