Documentation ¶
Index ¶
- type UploadAvatarCommand
- type UploadAvatarHandler
- type UploadAvatarHandlerConfig
- type UploadAvatarResult
- type UploadBusinessAvatarCommand
- type UploadBusinessAvatarHandler
- type UploadBusinessAvatarHandlerConfig
- type UploadBusinessAvatarResult
- type UploadBusinessCoverCommand
- type UploadBusinessCoverHandler
- type UploadBusinessCoverHandlerConfig
- type UploadBusinessCoverResult
- type UploadImageCommand
- type UploadImageHandler
- type UploadImageHandlerConfig
- type UploadImageResult
- type UploadMarkdownCommand
- type UploadMarkdownHandler
- type UploadMarkdownHandlerConfig
- type UploadMarkdownResult
- type UploadPdfCommand
- type UploadPdfHandler
- type UploadPdfHandlerConfig
- type UploadPdfResult
- type UploadSvgCommand
- type UploadSvgHandler
- type UploadSvgHandlerConfig
- type UploadSvgResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UploadAvatarCommand ¶
type UploadAvatarCommand struct { UserName string Content *multipart.FileHeader }
type UploadAvatarHandler ¶
type UploadAvatarHandler decorator.CommandHandler[UploadAvatarCommand, *UploadAvatarResult]
func NewUploadAvatarHandler ¶
func NewUploadAvatarHandler(config UploadAvatarHandlerConfig) UploadAvatarHandler
type UploadAvatarResult ¶
type UploadAvatarResult struct {
Url string
}
type UploadBusinessAvatarCommand ¶
type UploadBusinessAvatarCommand struct { NickName string Content *multipart.FileHeader }
type UploadBusinessAvatarHandler ¶
type UploadBusinessAvatarHandler decorator.CommandHandler[UploadBusinessAvatarCommand, *UploadBusinessAvatarResult]
func NewUploadBusinessAvatarHandler ¶
func NewUploadBusinessAvatarHandler(config UploadBusinessAvatarHandlerConfig) UploadBusinessAvatarHandler
type UploadBusinessAvatarResult ¶
type UploadBusinessAvatarResult struct {
Url string
}
type UploadBusinessCoverCommand ¶
type UploadBusinessCoverCommand struct { NickName string Content *multipart.FileHeader }
type UploadBusinessCoverHandler ¶
type UploadBusinessCoverHandler decorator.CommandHandler[UploadBusinessCoverCommand, *UploadBusinessCoverResult]
func NewUploadBusinessCoverHandler ¶
func NewUploadBusinessCoverHandler(config UploadBusinessCoverHandlerConfig) UploadBusinessCoverHandler
type UploadBusinessCoverResult ¶
type UploadBusinessCoverResult struct {
Url string
}
type UploadImageCommand ¶
type UploadImageCommand struct { RandomName bool `json:"randomName"` Slugify bool `json:"slugify"` FileName string `json:"fileName"` Dir string `json:"dir"` Content *multipart.FileHeader `json:"content"` IsAdmin bool `json:"-"` MinifyLevel cdn.MinifyLevel `json:"minifyLevel"` }
type UploadImageHandler ¶
type UploadImageHandler decorator.CommandHandler[UploadImageCommand, *UploadImageResult]
func NewUploadImageHandler ¶
func NewUploadImageHandler(config UploadImageHandlerConfig) UploadImageHandler
type UploadImageResult ¶
type UploadImageResult struct {
Url string
}
type UploadMarkdownCommand ¶
type UploadMarkdownHandler ¶
type UploadMarkdownHandler decorator.CommandHandler[UploadMarkdownCommand, *UploadMarkdownResult]
func NewUploadMarkdownHandler ¶
func NewUploadMarkdownHandler(config UploadMarkdownHandlerConfig) UploadMarkdownHandler
type UploadMarkdownResult ¶
type UploadMarkdownResult struct {
Url string
}
type UploadPdfCommand ¶
type UploadPdfHandler ¶
type UploadPdfHandler decorator.CommandHandler[UploadPdfCommand, *UploadPdfResult]
func NewUploadPdfHandler ¶
func NewUploadPdfHandler(config UploadPdfHandlerConfig) UploadPdfHandler
type UploadPdfHandlerConfig ¶
type UploadPdfResult ¶
type UploadPdfResult struct {
Url string
}
type UploadSvgCommand ¶
type UploadSvgHandler ¶
type UploadSvgHandler decorator.CommandHandler[UploadSvgCommand, *UploadSvgResult]
func NewUploadSvgHandler ¶
func NewUploadSvgHandler(config UploadSvgHandlerConfig) UploadSvgHandler
type UploadSvgHandlerConfig ¶
type UploadSvgResult ¶
type UploadSvgResult struct {
Url string
}
Click to show internal directories.
Click to hide internal directories.