teams: editor added as admin for created teams.

This commit is contained in:
Leonard Gram
2019-03-06 11:47:18 +01:00
parent 22e098b830
commit af4994ba16
5 changed files with 37 additions and 17 deletions

View File

@@ -12,11 +12,12 @@ var (
// TeamMember model
type TeamMember struct {
Id int64
OrgId int64
TeamId int64
UserId int64
External bool
Id int64
OrgId int64
TeamId int64
UserId int64
External bool
Permission int64
Created time.Time
Updated time.Time
@@ -26,10 +27,11 @@ type TeamMember struct {
// COMMANDS
type AddTeamMemberCommand struct {
UserId int64 `json:"userId" binding:"Required"`
OrgId int64 `json:"-"`
TeamId int64 `json:"-"`
External bool `json:"-"`
UserId int64 `json:"userId" binding:"Required"`
OrgId int64 `json:"-"`
TeamId int64 `json:"-"`
External bool `json:"-"`
Permission int64 `json:"-"`
}
type RemoveTeamMemberCommand struct {