mirror of
				https://github.com/1Panel-dev/1Panel.git
				synced 2025-10-31 03:07:34 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			25 lines
		
	
	
	
		
			748 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
	
		
			748 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| package dto
 | |
| 
 | |
| import "time"
 | |
| 
 | |
| type ScriptInfo struct {
 | |
| 	ID            uint      `json:"id"`
 | |
| 	Name          string    `json:"name"`
 | |
| 	IsInteractive bool      `json:"isInteractive"`
 | |
| 	Lable         string    `json:"lable"`
 | |
| 	Script        string    `json:"script"`
 | |
| 	GroupList     []uint    `json:"groupList"`
 | |
| 	GroupBelong   []string  `json:"groupBelong"`
 | |
| 	IsSystem      bool      `json:"isSystem"`
 | |
| 	Description   string    `json:"description"`
 | |
| 	CreatedAt     time.Time `json:"createdAt"`
 | |
| }
 | |
| 
 | |
| type ScriptOperate struct {
 | |
| 	ID            uint   `json:"id"`
 | |
| 	IsInteractive bool   `json:"isInteractive"`
 | |
| 	Name          string `json:"name"`
 | |
| 	Script        string `json:"script"`
 | |
| 	Groups        string `json:"groups"`
 | |
| 	Description   string `json:"description"`
 | |
| }
 |