118 lines
3.9 KiB
Go
118 lines
3.9 KiB
Go
package dto
|
||
|
||
import (
|
||
"encoding/json"
|
||
|
||
"quyun/v2/app/requests"
|
||
)
|
||
|
||
// SuperAuditLogListFilter 超管审计日志列表过滤条件。
|
||
type SuperAuditLogListFilter struct {
|
||
requests.Pagination
|
||
// ID 审计日志ID,精确匹配。
|
||
ID *int64 `query:"id"`
|
||
// TenantID 租户ID过滤。
|
||
TenantID *int64 `query:"tenant_id"`
|
||
// TenantCode 租户编码,模糊匹配。
|
||
TenantCode *string `query:"tenant_code"`
|
||
// TenantName 租户名称,模糊匹配。
|
||
TenantName *string `query:"tenant_name"`
|
||
// OperatorID 操作者用户ID,精确匹配。
|
||
OperatorID *int64 `query:"operator_id"`
|
||
// OperatorName 操作者用户名/昵称,模糊匹配。
|
||
OperatorName *string `query:"operator_name"`
|
||
// Action 动作标识过滤,精确匹配。
|
||
Action *string `query:"action"`
|
||
// TargetID 目标ID过滤,精确匹配。
|
||
TargetID *string `query:"target_id"`
|
||
// Keyword 详情关键词,模糊匹配。
|
||
Keyword *string `query:"keyword"`
|
||
// CreatedAtFrom 创建时间起始(RFC3339)。
|
||
CreatedAtFrom *string `query:"created_at_from"`
|
||
// CreatedAtTo 创建时间结束(RFC3339)。
|
||
CreatedAtTo *string `query:"created_at_to"`
|
||
// Asc 升序字段(id/created_at)。
|
||
Asc *string `query:"asc"`
|
||
// Desc 降序字段(id/created_at)。
|
||
Desc *string `query:"desc"`
|
||
}
|
||
|
||
// SuperAuditLogItem 超管审计日志条目。
|
||
type SuperAuditLogItem struct {
|
||
// ID 审计日志ID。
|
||
ID int64 `json:"id"`
|
||
// TenantID 租户ID。
|
||
TenantID int64 `json:"tenant_id"`
|
||
// TenantCode 租户编码。
|
||
TenantCode string `json:"tenant_code"`
|
||
// TenantName 租户名称。
|
||
TenantName string `json:"tenant_name"`
|
||
// OperatorID 操作者用户ID。
|
||
OperatorID int64 `json:"operator_id"`
|
||
// OperatorName 操作者用户名/昵称。
|
||
OperatorName string `json:"operator_name"`
|
||
// Action 动作标识。
|
||
Action string `json:"action"`
|
||
// TargetID 目标ID。
|
||
TargetID string `json:"target_id"`
|
||
// Detail 操作详情。
|
||
Detail string `json:"detail"`
|
||
// CreatedAt 创建时间(RFC3339)。
|
||
CreatedAt string `json:"created_at"`
|
||
}
|
||
|
||
// SuperSystemConfigListFilter 超管系统配置列表过滤条件。
|
||
type SuperSystemConfigListFilter struct {
|
||
requests.Pagination
|
||
// ConfigKey 配置Key,精确匹配。
|
||
ConfigKey *string `query:"config_key"`
|
||
// Keyword Key或描述关键词,模糊匹配。
|
||
Keyword *string `query:"keyword"`
|
||
// CreatedAtFrom 创建时间起始(RFC3339)。
|
||
CreatedAtFrom *string `query:"created_at_from"`
|
||
// CreatedAtTo 创建时间结束(RFC3339)。
|
||
CreatedAtTo *string `query:"created_at_to"`
|
||
// UpdatedAtFrom 更新时间起始(RFC3339)。
|
||
UpdatedAtFrom *string `query:"updated_at_from"`
|
||
// UpdatedAtTo 更新时间结束(RFC3339)。
|
||
UpdatedAtTo *string `query:"updated_at_to"`
|
||
// Asc 升序字段(id/config_key/updated_at)。
|
||
Asc *string `query:"asc"`
|
||
// Desc 降序字段(id/config_key/updated_at)。
|
||
Desc *string `query:"desc"`
|
||
}
|
||
|
||
// SuperSystemConfigCreateForm 超管系统配置创建参数。
|
||
type SuperSystemConfigCreateForm struct {
|
||
// ConfigKey 配置项Key(唯一)。
|
||
ConfigKey string `json:"config_key"`
|
||
// Value 配置值(JSON)。
|
||
Value json.RawMessage `json:"value"`
|
||
// Description 配置说明。
|
||
Description string `json:"description"`
|
||
}
|
||
|
||
// SuperSystemConfigUpdateForm 超管系统配置更新参数。
|
||
type SuperSystemConfigUpdateForm struct {
|
||
// Value 配置值(JSON,可选)。
|
||
Value *json.RawMessage `json:"value"`
|
||
// Description 配置说明(可选)。
|
||
Description *string `json:"description"`
|
||
}
|
||
|
||
// SuperSystemConfigItem 超管系统配置条目。
|
||
type SuperSystemConfigItem struct {
|
||
// ID 配置ID。
|
||
ID int64 `json:"id"`
|
||
// ConfigKey 配置项Key。
|
||
ConfigKey string `json:"config_key"`
|
||
// Value 配置值(JSON)。
|
||
Value json.RawMessage `json:"value"`
|
||
// Description 配置说明。
|
||
Description string `json:"description"`
|
||
// CreatedAt 创建时间(RFC3339)。
|
||
CreatedAt string `json:"created_at"`
|
||
// UpdatedAt 更新时间(RFC3339)。
|
||
UpdatedAt string `json:"updated_at"`
|
||
}
|