mirror of
				https://github.com/TeaOSLab/EdgeAdmin.git
				synced 2025-11-04 13:10:26 +08:00 
			
		
		
		
	
		
			
	
	
		
			19 lines
		
	
	
		
			314 B
		
	
	
	
		
			Go
		
	
	
	
	
	
		
		
			
		
	
	
			19 lines
		
	
	
		
			314 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| 
								 | 
							
								package index
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								import (
							 | 
						||
| 
								 | 
							
									"github.com/iwind/TeaGo/actions"
							 | 
						||
| 
								 | 
							
									stringutil "github.com/iwind/TeaGo/utils/string"
							 | 
						||
| 
								 | 
							
								)
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								type IndexAction actions.Action
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								// 首页(登录页)
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								var TokenSalt = stringutil.Rand(32)
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								func (this *IndexAction) RunGet(params struct {
							 | 
						||
| 
								 | 
							
									From string
							 | 
						||
| 
								 | 
							
								}) {
							 | 
						||
| 
								 | 
							
									this.WriteString("Hello, i am index")
							 | 
						||
| 
								 | 
							
								}
							 |