Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
46 lines
1.6 KiB
Go
46 lines
1.6 KiB
Go
package dto
|
||
|
||
import "quyun/v2/app/requests"
|
||
|
||
// CreatorAuditLogListFilter 创作者侧审计日志列表过滤条件。
|
||
type CreatorAuditLogListFilter struct {
|
||
// Pagination 分页参数(page/limit)。
|
||
requests.Pagination
|
||
// 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/2006-01-02)。
|
||
CreatedAtFrom *string `query:"created_at_from"`
|
||
// CreatedAtTo 创建时间结束(RFC3339/2006-01-02)。
|
||
CreatedAtTo *string `query:"created_at_to"`
|
||
// Asc 升序字段(id/created_at)。
|
||
Asc *string `query:"asc"`
|
||
// Desc 降序字段(id/created_at)。
|
||
Desc *string `query:"desc"`
|
||
}
|
||
|
||
// CreatorAuditLogItem 创作者侧审计日志条目。
|
||
type CreatorAuditLogItem struct {
|
||
// ID 审计日志ID。
|
||
ID int64 `json:"id"`
|
||
// 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"`
|
||
}
|