mirror of
https://github.com/aykhans/slash-e.git
synced 2025-07-03 20:21:40 +00:00
feat: add member list to workspace
This commit is contained in:
@ -12,6 +12,9 @@ type Workspace struct {
|
||||
// Domain specific fields
|
||||
Name string `json:"name"`
|
||||
Description string `json:"description"`
|
||||
|
||||
// Related fields
|
||||
WorkspaceUserList []*WorkspaceUser `json:"workspaceUserList"`
|
||||
}
|
||||
|
||||
type WorkspaceCreate struct {
|
||||
|
@ -23,10 +23,13 @@ func (e Role) String() string {
|
||||
type WorkspaceUser struct {
|
||||
WorkspaceID int `json:"workspaceId"`
|
||||
UserID int `json:"userId"`
|
||||
User *User `json:"user"`
|
||||
Role Role `json:"role"`
|
||||
CreatedTs int64 `json:"createdTs"`
|
||||
UpdatedTs int64 `json:"updatedTs"`
|
||||
|
||||
// Related fields
|
||||
Email string `json:"email"`
|
||||
Name string `json:"name"`
|
||||
}
|
||||
|
||||
type WorkspaceUserUpsert struct {
|
||||
|
Reference in New Issue
Block a user