mirror of
https://github.com/passbolt/go-passbolt-cli.git
synced 2025-09-13 14:59:09 +00:00
Add Group Json Output
This commit is contained in:
parent
269e117fbf
commit
4dcb528f70
3 changed files with 116 additions and 46 deletions
19
group/json.go
Normal file
19
group/json.go
Normal file
|
@ -0,0 +1,19 @@
|
|||
package group
|
||||
|
||||
import "time"
|
||||
|
||||
type GroupJsonOutput struct {
|
||||
ID *string `json:"id,omitempty"`
|
||||
Name *string `json:"name,omitempty"`
|
||||
Users []GroupUserMembershipJsonOutput `json:"users,omitempty"`
|
||||
CreatedTimestamp *time.Time `json:"created_timestamp,omitempty"`
|
||||
ModifiedTimestamp *time.Time `json:"modified_timestamp,omitempty"`
|
||||
}
|
||||
|
||||
type GroupUserMembershipJsonOutput struct {
|
||||
ID *string `json:"id,omitempty"`
|
||||
Username *string `json:"username,omitempty"`
|
||||
FirstName *string `json:"first_name,omitempty"`
|
||||
LastName *string `json:"last_name,omitempty"`
|
||||
IsGroupManager *bool `json:"is_group_manager,omitempty"`
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue