mirror of https://github.com/Xhofe/alist
				
				
				
			
		
			
				
	
	
		
			49 lines
		
	
	
		
			863 B
		
	
	
	
		
			Go
		
	
	
			
		
		
	
	
			49 lines
		
	
	
		
			863 B
		
	
	
	
		
			Go
		
	
	
| package driver
 | |
| 
 | |
| type Additional interface{}
 | |
| 
 | |
| type Select string
 | |
| 
 | |
| type Item struct {
 | |
| 	Name     string `json:"name"`
 | |
| 	Type     string `json:"type"`
 | |
| 	Default  string `json:"default"`
 | |
| 	Options  string `json:"options"`
 | |
| 	Required bool   `json:"required"`
 | |
| 	Help     string `json:"help"`
 | |
| }
 | |
| 
 | |
| type Info struct {
 | |
| 	Common     []Item `json:"common"`
 | |
| 	Additional []Item `json:"additional"`
 | |
| 	Config     Config `json:"config"`
 | |
| }
 | |
| 
 | |
| type IRootPath interface {
 | |
| 	GetRootPath() string
 | |
| }
 | |
| 
 | |
| type IRootId interface {
 | |
| 	GetRootId() string
 | |
| }
 | |
| 
 | |
| type RootPath struct {
 | |
| 	RootFolderPath string `json:"root_folder_path"`
 | |
| }
 | |
| 
 | |
| type RootID struct {
 | |
| 	RootFolderID string `json:"root_folder_id"`
 | |
| }
 | |
| 
 | |
| func (r RootPath) GetRootPath() string {
 | |
| 	return r.RootFolderPath
 | |
| }
 | |
| 
 | |
| func (r *RootPath) SetRootPath(path string) {
 | |
| 	r.RootFolderPath = path
 | |
| }
 | |
| 
 | |
| func (r RootID) GetRootId() string {
 | |
| 	return r.RootFolderID
 | |
| }
 |