feat(posts): add preview URL fields for post images
All checks were successful
Build Backend / build (push) Successful in 4m45s
Build Backend / build-docker (push) Successful in 1m31s

Add PreviewURL and PreviewURLLarge fields to PostImage model and responses. Image data now supports format "url|preview_url|preview_url_large" for storing multiple image variants. Also change comment cursor pagination to sort by created_at ASC (oldest first) to display earliest comments as first floor, and make AdminReviewVerificationRequest.Approve field optional.
This commit is contained in:
lafay
2026-04-10 01:13:58 +08:00
parent 539bec6f63
commit 6af6aaa9d0
5 changed files with 57 additions and 28 deletions

View File

@@ -1404,7 +1404,7 @@ type AdminVerificationDetailResponse struct {
// AdminReviewVerificationRequest 管理端审核认证请求
type AdminReviewVerificationRequest struct {
Approve bool `json:"approve" binding:"required"`
Approve bool `json:"approve"`
RejectReason string `json:"reject_reason" binding:"omitempty,max=500"`
}