feat: add member list to workspace

This commit is contained in:
steven
2022-10-03 23:30:51 +08:00
parent 887e757c39
commit 922f8e6f95
5 changed files with 48 additions and 6 deletions

View File

@@ -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 {