mirror of
https://github.com/lzh-1625/go_process_manager.git
synced 2025-10-05 07:56:50 +08:00
初次提交
This commit is contained in:
18
model/config.go
Normal file
18
model/config.go
Normal file
@@ -0,0 +1,18 @@
|
||||
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"`
|
||||
}
|
Reference in New Issue
Block a user