feat: add audit logs and system configs
This commit is contained in:
@@ -1231,6 +1231,39 @@ definitions:
|
||||
description: TotalSize 资产总大小(字节)。
|
||||
type: integer
|
||||
type: object
|
||||
dto.SuperAuditLogItem:
|
||||
properties:
|
||||
action:
|
||||
description: Action 动作标识。
|
||||
type: string
|
||||
created_at:
|
||||
description: CreatedAt 创建时间(RFC3339)。
|
||||
type: string
|
||||
detail:
|
||||
description: Detail 操作详情。
|
||||
type: string
|
||||
id:
|
||||
description: ID 审计日志ID。
|
||||
type: integer
|
||||
operator_id:
|
||||
description: OperatorID 操作者用户ID。
|
||||
type: integer
|
||||
operator_name:
|
||||
description: OperatorName 操作者用户名/昵称。
|
||||
type: string
|
||||
target_id:
|
||||
description: TargetID 目标ID。
|
||||
type: string
|
||||
tenant_code:
|
||||
description: TenantCode 租户编码。
|
||||
type: string
|
||||
tenant_id:
|
||||
description: TenantID 租户ID。
|
||||
type: integer
|
||||
tenant_name:
|
||||
description: TenantName 租户名称。
|
||||
type: string
|
||||
type: object
|
||||
dto.SuperContentBatchReviewForm:
|
||||
properties:
|
||||
action:
|
||||
@@ -1766,6 +1799,54 @@ definitions:
|
||||
description: TenantID 租户ID(不传代表全平台)。
|
||||
type: integer
|
||||
type: object
|
||||
dto.SuperSystemConfigCreateForm:
|
||||
properties:
|
||||
config_key:
|
||||
description: ConfigKey 配置项Key(唯一)。
|
||||
type: string
|
||||
description:
|
||||
description: Description 配置说明。
|
||||
type: string
|
||||
value:
|
||||
description: Value 配置值(JSON)。
|
||||
items:
|
||||
type: integer
|
||||
type: array
|
||||
type: object
|
||||
dto.SuperSystemConfigItem:
|
||||
properties:
|
||||
config_key:
|
||||
description: ConfigKey 配置项Key。
|
||||
type: string
|
||||
created_at:
|
||||
description: CreatedAt 创建时间(RFC3339)。
|
||||
type: string
|
||||
description:
|
||||
description: Description 配置说明。
|
||||
type: string
|
||||
id:
|
||||
description: ID 配置ID。
|
||||
type: integer
|
||||
updated_at:
|
||||
description: UpdatedAt 更新时间(RFC3339)。
|
||||
type: string
|
||||
value:
|
||||
description: Value 配置值(JSON)。
|
||||
items:
|
||||
type: integer
|
||||
type: array
|
||||
type: object
|
||||
dto.SuperSystemConfigUpdateForm:
|
||||
properties:
|
||||
description:
|
||||
description: Description 配置说明(可选)。
|
||||
type: string
|
||||
value:
|
||||
description: Value 配置值(JSON,可选)。
|
||||
items:
|
||||
type: integer
|
||||
type: array
|
||||
type: object
|
||||
dto.SuperTenantContentStatusUpdateForm:
|
||||
properties:
|
||||
status:
|
||||
@@ -2936,6 +3017,37 @@ paths:
|
||||
summary: Asset usage
|
||||
tags:
|
||||
- Asset
|
||||
/super/v1/audit-logs:
|
||||
get:
|
||||
consumes:
|
||||
- application/json
|
||||
description: List audit logs across tenants
|
||||
parameters:
|
||||
- description: Page number
|
||||
in: query
|
||||
name: page
|
||||
type: integer
|
||||
- description: Page size
|
||||
in: query
|
||||
name: limit
|
||||
type: integer
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
schema:
|
||||
allOf:
|
||||
- $ref: '#/definitions/requests.Pager'
|
||||
- properties:
|
||||
items:
|
||||
items:
|
||||
$ref: '#/definitions/dto.SuperAuditLogItem'
|
||||
type: array
|
||||
type: object
|
||||
summary: List audit logs
|
||||
tags:
|
||||
- Audit
|
||||
/super/v1/auth/login:
|
||||
post:
|
||||
consumes:
|
||||
@@ -3562,6 +3674,86 @@ paths:
|
||||
summary: Report overview
|
||||
tags:
|
||||
- Report
|
||||
/super/v1/system-configs:
|
||||
get:
|
||||
consumes:
|
||||
- application/json
|
||||
description: List platform system configs
|
||||
parameters:
|
||||
- description: Page number
|
||||
in: query
|
||||
name: page
|
||||
type: integer
|
||||
- description: Page size
|
||||
in: query
|
||||
name: limit
|
||||
type: integer
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
schema:
|
||||
allOf:
|
||||
- $ref: '#/definitions/requests.Pager'
|
||||
- properties:
|
||||
items:
|
||||
items:
|
||||
$ref: '#/definitions/dto.SuperSystemConfigItem'
|
||||
type: array
|
||||
type: object
|
||||
summary: List system configs
|
||||
tags:
|
||||
- SystemConfig
|
||||
post:
|
||||
consumes:
|
||||
- application/json
|
||||
description: Create platform system config
|
||||
parameters:
|
||||
- description: Create form
|
||||
in: body
|
||||
name: form
|
||||
required: true
|
||||
schema:
|
||||
$ref: '#/definitions/dto.SuperSystemConfigCreateForm'
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
schema:
|
||||
$ref: '#/definitions/dto.SuperSystemConfigItem'
|
||||
summary: Create system config
|
||||
tags:
|
||||
- SystemConfig
|
||||
/super/v1/system-configs/{id}:
|
||||
patch:
|
||||
consumes:
|
||||
- application/json
|
||||
description: Update platform system config
|
||||
parameters:
|
||||
- description: Config ID
|
||||
format: int64
|
||||
in: path
|
||||
name: id
|
||||
required: true
|
||||
type: integer
|
||||
- description: Update form
|
||||
in: body
|
||||
name: form
|
||||
required: true
|
||||
schema:
|
||||
$ref: '#/definitions/dto.SuperSystemConfigUpdateForm'
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
schema:
|
||||
$ref: '#/definitions/dto.SuperSystemConfigItem'
|
||||
summary: Update system config
|
||||
tags:
|
||||
- SystemConfig
|
||||
/super/v1/tenant-join-requests:
|
||||
get:
|
||||
consumes:
|
||||
|
||||
Reference in New Issue
Block a user