add ui configurable config options

This commit is contained in:
2025-06-27 16:31:37 +02:00
parent 5f53d66bc4
commit 861b18651b
8 changed files with 365 additions and 138 deletions

11
models/config.go Normal file
View File

@@ -0,0 +1,11 @@
package models
import (
"gorm.io/gorm"
)
type Config struct {
gorm.Model
Key string `json:"key" binding:"required" gorm:"unique;not null"`
Value string `json:"value" binding:"required"`
}