mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	#1692 add admin APIs to add/remove a user from teams
This commit is contained in:
		
							
								
								
									
										14
									
								
								modules/context/api_org.go
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								modules/context/api_org.go
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,14 @@
 | 
			
		||||
// Copyright 2016 The Gogs Authors. All rights reserved.
 | 
			
		||||
// Use of this source code is governed by a MIT-style
 | 
			
		||||
// license that can be found in the LICENSE file.
 | 
			
		||||
 | 
			
		||||
package context
 | 
			
		||||
 | 
			
		||||
import (
 | 
			
		||||
	"github.com/gogits/gogs/models"
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
type APIOrganization struct {
 | 
			
		||||
	Organization *models.User
 | 
			
		||||
	Team         *models.Team
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user