Chore: Move updateorg out of sqlstore (#54111)
* Chore: move updateorg out of sqlstore * fix api test
This commit is contained in:
@@ -71,6 +71,11 @@ type UserOrgDTO struct {
|
||||
Role RoleType `json:"role"`
|
||||
}
|
||||
|
||||
type UpdateOrgCommand struct {
|
||||
Name string
|
||||
OrgId int64
|
||||
}
|
||||
|
||||
func (r RoleType) IsValid() bool {
|
||||
return r == RoleViewer || r == RoleAdmin || r == RoleEditor
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user