Page Menu
Home
Musing Studio
Search
Configure Global Search
Log In
Files
F10669516
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
705 B
Subscribers
None
View Options
diff --git a/organization.go b/organization.go
new file mode 100644
index 0000000..9ffe265
--- /dev/null
+++ b/organization.go
@@ -0,0 +1,27 @@
+package writeas
+
+// Role is an OrgMember's role.
+type Role string
+
+const (
+ RoleAdmin Role = "admin"
+ RoleEditor Role = "editor"
+ RoleAuthor Role = "author"
+)
+
+type (
+ // OrgMember represents a member of an Organization
+ OrgMember struct {
+ Author
+ Email string `json:"email"`
+ Role Role `json:"role"`
+ }
+
+ // OrgMemberParams are parameters for creating or updating an OrgMember.
+ OrgMemberParams struct {
+ AuthorParams
+ Username string `json:"username"`
+ Email string `json:"email"`
+ Role Role `json:"role"`
+ }
+)
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Fri, May 16, 11:22 AM (1 d, 15 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3240064
Attached To
rWGO writeas-go
Event Timeline
Log In to Comment