Files
quyun-v2/backend/app/http/super/v1/dto/super_comment.go

75 lines
2.5 KiB
Go
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
package dto
import "quyun/v2/app/requests"
// SuperCommentListFilter 超管评论列表过滤条件。
type SuperCommentListFilter 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"`
// ContentID 内容ID精确匹配。
ContentID *int64 `query:"content_id"`
// ContentTitle 内容标题关键字,模糊匹配。
ContentTitle *string `query:"content_title"`
// UserID 评论用户ID精确匹配。
UserID *int64 `query:"user_id"`
// Username 评论用户用户名/昵称,模糊匹配。
Username *string `query:"username"`
// Keyword 评论内容关键字,模糊匹配。
Keyword *string `query:"keyword"`
// Status 评论状态过滤active/deleted/all
Status *string `query:"status"`
// CreatedAtFrom 创建时间起始RFC3339
CreatedAtFrom *string `query:"created_at_from"`
// CreatedAtTo 创建时间结束RFC3339
CreatedAtTo *string `query:"created_at_to"`
// Asc 升序字段id/created_at/likes
Asc *string `query:"asc"`
// Desc 降序字段id/created_at/likes
Desc *string `query:"desc"`
}
// SuperCommentItem 超管评论列表项。
type SuperCommentItem 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"`
// ContentID 内容ID。
ContentID int64 `json:"content_id"`
// ContentTitle 内容标题。
ContentTitle string `json:"content_title"`
// UserID 评论用户ID。
UserID int64 `json:"user_id"`
// Username 评论用户名称。
Username string `json:"username"`
// ReplyTo 回复评论ID0 表示一级评论)。
ReplyTo int64 `json:"reply_to"`
// Content 评论内容。
Content string `json:"content"`
// Likes 评论点赞数。
Likes int32 `json:"likes"`
// IsDeleted 是否已删除。
IsDeleted bool `json:"is_deleted"`
// CreatedAt 创建时间RFC3339
CreatedAt string `json:"created_at"`
// DeletedAt 删除时间RFC3339未删除为空
DeletedAt string `json:"deleted_at"`
}
// SuperCommentDeleteForm 超管删除评论表单。
type SuperCommentDeleteForm struct {
// Reason 删除原因(可选,用于审计记录)。
Reason string `json:"reason"`
}