mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat: add a paginated organization members endpoint (#16835)
Closes [coder/internal#460](https://github.com/coder/internal/issues/460)
This commit is contained in:
@@ -81,6 +81,17 @@ type OrganizationMemberWithUserData struct {
|
||||
OrganizationMember `table:"m,recursive_inline"`
|
||||
}
|
||||
|
||||
type PaginatedMembersRequest struct {
|
||||
OrganizationID uuid.UUID `table:"organization id" json:"organization_id" format:"uuid"`
|
||||
Limit int `json:"limit,omitempty"`
|
||||
Offset int `json:"offset,omitempty"`
|
||||
}
|
||||
|
||||
type PaginatedMembersResponse struct {
|
||||
Members []OrganizationMemberWithUserData
|
||||
Count int `json:"count"`
|
||||
}
|
||||
|
||||
type CreateOrganizationRequest struct {
|
||||
Name string `json:"name" validate:"required,organization_name"`
|
||||
// DisplayName will default to the same value as `Name` if not provided.
|
||||
|
||||
Reference in New Issue
Block a user