mirror of
https://github.com/skyle1995/NetworkAuth.git
synced 2026-05-25 02:24:05 +08:00
Add classification annotations
This commit is contained in:
@@ -2,13 +2,13 @@ package models
|
||||
|
||||
import "time"
|
||||
|
||||
// ============================================================================
|
||||
// 结构体定义
|
||||
// ============================================================================
|
||||
|
||||
// Settings 系统设置表模型
|
||||
// 用于存储应用的配置参数
|
||||
// Name 为配置项名称,唯一索引
|
||||
// Value 为配置项的值
|
||||
// Description 为配置项描述说明
|
||||
// CreatedAt/UpdatedAt 由 GORM 自动维护
|
||||
|
||||
type Settings struct {
|
||||
ID uint `gorm:"primaryKey;comment:设置ID,自增主键"`
|
||||
Name string `gorm:"uniqueIndex;size:64;not null;comment:配置项名称,唯一索引"`
|
||||
|
||||
Reference in New Issue
Block a user