mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 19:06:18 +01:00 
			
		
		
		
	
				
					committed by
					
						 techknowlogick
						techknowlogick
					
				
			
			
				
	
			
			
			
						parent
						
							d95caf50ec
						
					
				
				
					commit
					43cf2f3b55
				
			| @@ -6,25 +6,27 @@ package structs | ||||
|  | ||||
| // Organization represents an organization | ||||
| type Organization struct { | ||||
| 	ID          int64       `json:"id"` | ||||
| 	UserName    string      `json:"username"` | ||||
| 	FullName    string      `json:"full_name"` | ||||
| 	AvatarURL   string      `json:"avatar_url"` | ||||
| 	Description string      `json:"description"` | ||||
| 	Website     string      `json:"website"` | ||||
| 	Location    string      `json:"location"` | ||||
| 	Visibility  VisibleType `json:"visibility"` | ||||
| 	ID          int64  `json:"id"` | ||||
| 	UserName    string `json:"username"` | ||||
| 	FullName    string `json:"full_name"` | ||||
| 	AvatarURL   string `json:"avatar_url"` | ||||
| 	Description string `json:"description"` | ||||
| 	Website     string `json:"website"` | ||||
| 	Location    string `json:"location"` | ||||
| 	Visibility  string `json:"visibility"` | ||||
| } | ||||
|  | ||||
| // CreateOrgOption options for creating an organization | ||||
| type CreateOrgOption struct { | ||||
| 	// required: true | ||||
| 	UserName    string      `json:"username" binding:"Required"` | ||||
| 	FullName    string      `json:"full_name"` | ||||
| 	Description string      `json:"description"` | ||||
| 	Website     string      `json:"website"` | ||||
| 	Location    string      `json:"location"` | ||||
| 	Visibility  VisibleType `json:"visibility"` | ||||
| 	UserName    string `json:"username" binding:"Required"` | ||||
| 	FullName    string `json:"full_name"` | ||||
| 	Description string `json:"description"` | ||||
| 	Website     string `json:"website"` | ||||
| 	Location    string `json:"location"` | ||||
| 	// possible values are `public` (default), `limited` or `private` | ||||
| 	// enum: public,limited,private | ||||
| 	Visibility string `json:"visibility" binding:"In(,public,limited,private)"` | ||||
| } | ||||
|  | ||||
| // EditOrgOption options for editing an organization | ||||
| @@ -33,4 +35,7 @@ type EditOrgOption struct { | ||||
| 	Description string `json:"description"` | ||||
| 	Website     string `json:"website"` | ||||
| 	Location    string `json:"location"` | ||||
| 	// possible values are `public`, `limited` or `private` | ||||
| 	// enum: public,limited,private | ||||
| 	Visibility string `json:"visibility" binding:"In(,public,limited,private)"` | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user