Files
quyun-v2/backend/app/http/v1/dto/common.go
2026-01-08 15:13:15 +08:00

29 lines
763 B
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"
type UploadResult struct {
// ID 媒体资源ID。
ID int64 `json:"id"`
// URL 访问地址包含签名或公共URL
URL string `json:"url"`
// Filename 原始文件名。
Filename string `json:"filename"`
// Size 文件大小(字节)。
Size int64 `json:"size"`
// MimeType 文件类型(如 image/png
MimeType string `json:"mime_type"`
}
type OptionsResponse struct {
// ContentStatus 内容状态选项。
ContentStatus []requests.KV `json:"content_status"`
// ContentGenre 内容类型/分类选项。
ContentGenre []requests.KV `json:"content_genre"`
}
type UploadForm struct {
// Type 上传资源类型(如 cover/media/avatar
Type string `form:"type" json:"type"`
}