mirror of
https://github.com/lzh-1625/go_process_manager.git
synced 2025-09-26 20:11:20 +08:00
19 lines
383 B
Go
19 lines
383 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 SystemConfigurationResp struct {
|
|
Key string `json:"key"`
|
|
Value any `json:"value"`
|
|
Default string `json:"default"`
|
|
Describe string `json:"describe"`
|
|
}
|