mirror of
https://github.com/pocket-id/pocket-id.git
synced 2025-12-09 23:02:59 +03:00
36 lines
1.1 KiB
Go
36 lines
1.1 KiB
Go
package dto
|
|
|
|
import (
|
|
datatype "github.com/pocket-id/pocket-id/backend/internal/model/types"
|
|
)
|
|
|
|
type UserGroupDtoWithUsers struct {
|
|
ID string `json:"id"`
|
|
FriendlyName string `json:"friendlyName"`
|
|
Name string `json:"name"`
|
|
CustomClaims []CustomClaimDto `json:"customClaims"`
|
|
Users []UserDto `json:"users"`
|
|
LdapID *string `json:"ldapId"`
|
|
CreatedAt datatype.DateTime `json:"createdAt"`
|
|
}
|
|
|
|
type UserGroupDtoWithUserCount struct {
|
|
ID string `json:"id"`
|
|
FriendlyName string `json:"friendlyName"`
|
|
Name string `json:"name"`
|
|
CustomClaims []CustomClaimDto `json:"customClaims"`
|
|
UserCount int64 `json:"userCount"`
|
|
LdapID *string `json:"ldapId"`
|
|
CreatedAt datatype.DateTime `json:"createdAt"`
|
|
}
|
|
|
|
type UserGroupCreateDto struct {
|
|
FriendlyName string `json:"friendlyName" binding:"required,min=2,max=50"`
|
|
Name string `json:"name" binding:"required,min=2,max=255"`
|
|
LdapID string `json:"-"`
|
|
}
|
|
|
|
type UserGroupUpdateUsersDto struct {
|
|
UserIDs []string `json:"userIds" binding:"required"`
|
|
}
|