Teams: Refactor most functionality to use hooks (#113713)
This commit is contained in:
@@ -47,11 +47,11 @@ type CreateTeamCommand struct {
|
||||
}
|
||||
|
||||
type UpdateTeamCommand struct {
|
||||
ID int64
|
||||
Name string
|
||||
Email string
|
||||
ExternalUID string
|
||||
OrgID int64 `json:"-"`
|
||||
ID int64 `json:"-"`
|
||||
Name string `json:"name"`
|
||||
Email string `json:"email"`
|
||||
ExternalUID string `json:"-"`
|
||||
OrgID int64 `json:"-"`
|
||||
}
|
||||
|
||||
type DeleteTeamCommand struct {
|
||||
|
||||
@@ -312,6 +312,10 @@ type GetTeamByIDParams struct {
|
||||
// in:path
|
||||
// required:true
|
||||
TeamID string `json:"team_id"`
|
||||
// in:query
|
||||
// required:false
|
||||
// default: false
|
||||
AccessControl bool `json:"accesscontrol"`
|
||||
}
|
||||
|
||||
// swagger:parameters deleteTeamByID
|
||||
|
||||
Reference in New Issue
Block a user