重构增加模型枚举值定义

This commit is contained in:
2025-05-09 18:56:17 +08:00
parent d5a242d6b4
commit 071a0e1a6c
29 changed files with 252 additions and 138 deletions

View File

@@ -60,7 +60,7 @@ type client struct {
GrantClient field.Bool // 允许客户端凭证授予
GrantRefresh field.Bool // 允许刷新令牌授予
GrantPassword field.Bool // 允许密码授予
Spec field.Int32 // 安全规范:1-native,2-browser,3-web
Spec field.Int32 // 安全规范:1-native,2-browser,3-web,4-trusted
Name field.String // 名称
Icon field.String // 图标URL
Status field.Int32 // 状态:0-禁用,1-正常

View File

@@ -49,7 +49,7 @@ type logsRequest struct {
ALL field.Asterisk
ID field.Int32 // 访问日志ID
Identity field.Int32 // 访客身份:0-游客,1-用户,2-服务,3-管理员
Identity field.Int32 // 访客身份:0-游客,1-用户,2-管理员,3-公共服务,4-安全服务,5-内部服务
Visitor field.Int32 // 访客ID
IP field.String // IP地址
Ua field.String // 用户代理