mirror of
				https://github.com/lzh-1625/go_process_manager.git
				synced 2025-10-31 19:32:43 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			19 lines
		
	
	
		
			384 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			384 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| package model
 | |
| 
 | |
| type Config struct {
 | |
| 	Id    int     `gorm:"column:id;primary_key"`
 | |
| 	Key   string  `gorm:"column:key"`
 | |
| 	Value *string `gorm:"column:value"`
 | |
| }
 | |
| 
 | |
| func (n *Config) TableName() string {
 | |
| 	return "config"
 | |
| }
 | |
| 
 | |
| type SystemConfigurationVo struct {
 | |
| 	Key      string `json:"key"`
 | |
| 	Value    any    `json:"value"`
 | |
| 	Default  string `json:"default"`
 | |
| 	Describe string `json:"describe"`
 | |
| }
 | 
