Browse Source

Consolidate different member-type structs into one member struct

main
Sam 5 years ago
parent
commit
a9e004c8b3
  1. 26
      types.go

26
types.go

@ -445,23 +445,7 @@ type uv struct {
EldestSeqno int `json:"eldestSeqno"` EldestSeqno int `json:"eldestSeqno"`
} }
type owners struct { type member struct {
Uv uv `json:"uv"`
Username string `json:"username"`
FullName string `json:"fullName"`
NeedsPUK bool `json:"needsPUK"`
Status int `json:"status"`
}
type admins struct {
Uv uv `json:"uv"`
Username string `json:"username"`
FullName string `json:"fullName"`
NeedsPUK bool `json:"needsPUK"`
Status int `json:"status"`
}
type readers struct {
Uv uv `json:"uv"` Uv uv `json:"uv"`
Username string `json:"username"` Username string `json:"username"`
FullName string `json:"fullName"` FullName string `json:"fullName"`
@ -470,10 +454,10 @@ type readers struct {
} }
type members struct { type members struct {
Owners []owners `json:"owners"` Owners []member `json:"owners"`
Admins []admins `json:"admins"` Admins []member `json:"admins"`
Writers []interface{} `json:"writers"` Writers []member `json:"writers"`
Readers []readers `json:"readers"` Readers []member `json:"readers"`
} }
type annotatedActiveInvites struct { type annotatedActiveInvites struct {

Loading…
Cancel
Save