mirror of
				https://github.com/beego/bee.git
				synced 2025-11-03 07:33:25 +00:00 
			
		
		
		
	Update g_docs.go
This commit is contained in:
		
							
								
								
									
										16
									
								
								g_docs.go
									
									
									
									
									
								
							
							
						
						
									
										16
									
								
								g_docs.go
									
									
									
									
									
								
							@@ -145,17 +145,17 @@ func generateDocs(curpath string) {
 | 
				
			|||||||
					rootapi.Infos.Contact.Name = strings.TrimSpace(s[len("@Name"):])
 | 
										rootapi.Infos.Contact.Name = strings.TrimSpace(s[len("@Name"):])
 | 
				
			||||||
				} else if strings.HasPrefix(s, "@URL") {
 | 
									} else if strings.HasPrefix(s, "@URL") {
 | 
				
			||||||
					rootapi.Infos.Contact.URL = strings.TrimSpace(s[len("@URL"):])
 | 
										rootapi.Infos.Contact.URL = strings.TrimSpace(s[len("@URL"):])
 | 
				
			||||||
				} else if strings.HasPrefix(s, "@License") {
 | 
					 | 
				
			||||||
					if rootapi.Infos.License == nil {
 | 
					 | 
				
			||||||
						rootapi.Infos.License = &swagger.License{Name: strings.TrimSpace(s[len("@License"):])}
 | 
					 | 
				
			||||||
					} else {
 | 
					 | 
				
			||||||
						rootapi.Infos.License.Name = strings.TrimSpace(s[len("@License"):])
 | 
					 | 
				
			||||||
					}
 | 
					 | 
				
			||||||
				} else if strings.HasPrefix(s, "@LicenseUrl") {
 | 
									} else if strings.HasPrefix(s, "@LicenseUrl") {
 | 
				
			||||||
					if rootapi.Infos.License == nil {
 | 
										if rootapi.Infos.License == nil {
 | 
				
			||||||
						rootapi.Infos.License = &swagger.License{URL: strings.TrimSpace(s[len("@LicenseUrl"):])}
 | 
										        rootapi.Infos.License = &swagger.License{URL: strings.TrimSpace(s[len("@LicenseUrl"):])}
 | 
				
			||||||
					} else {
 | 
										} else {
 | 
				
			||||||
						rootapi.Infos.License.URL = strings.TrimSpace(s[len("@LicenseUrl"):])
 | 
										        rootapi.Infos.License.URL = strings.TrimSpace(s[len("@LicenseUrl"):])
 | 
				
			||||||
 | 
										}
 | 
				
			||||||
 | 
									} else if strings.HasPrefix(s, "@License") {
 | 
				
			||||||
 | 
										if rootapi.Infos.License == nil {
 | 
				
			||||||
 | 
										        rootapi.Infos.License = &swagger.License{Name: strings.TrimSpace(s[len("@License"):])}
 | 
				
			||||||
 | 
										} else {
 | 
				
			||||||
 | 
											rootapi.Infos.License.Name = strings.TrimSpace(s[len("@License"):])
 | 
				
			||||||
					}
 | 
										}
 | 
				
			||||||
				} else if strings.HasPrefix(s, "@Schemes") {
 | 
									} else if strings.HasPrefix(s, "@Schemes") {
 | 
				
			||||||
					rootapi.Schemes = strings.Split(strings.TrimSpace(s[len("@Schemes"):]), ",")
 | 
										rootapi.Schemes = strings.Split(strings.TrimSpace(s[len("@Schemes"):]), ",")
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user