Files
YouduWiki/backend/domain/file.go
2026-05-21 19:52:45 +08:00

22 lines
373 B
Go

package domain
const (
Bucket = "static-file"
)
type ObjectUploadResp struct {
Key string `json:"key"`
Filename string `json:"filename"`
}
type UploadByUrlReq struct {
KbId string `json:"kb_id"`
Url string `json:"url" validate:"required,url"`
}
type AnydocUploadResp struct {
Code uint `json:"code"`
Err string `json:"err"`
Data string `json:"data"`
}