Documentation ¶
Index ¶
- Variables
- type UploaderService
- func (us *UploaderService) AvatarThumbFile(ctx *gin.Context, uploadPath, fileName string, size int) (avatarfile []byte, err error)
- func (us *UploaderService) UploadAvatarFile(ctx *gin.Context) (url string, err error)
- func (us *UploaderService) UploadBrandingFile(ctx *gin.Context) (url string, err error)
- func (us *UploaderService) UploadPostFile(ctx *gin.Context) (url string, err error)
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type UploaderService ¶
type UploaderService struct {
// contains filtered or unexported fields
}
UploaderService user service
func NewUploaderService ¶
func NewUploaderService(serviceConfig *service_config.ServiceConfig, siteInfoService *siteinfo_common.SiteInfoCommonService) *UploaderService
NewUploaderService new upload service
func (*UploaderService) AvatarThumbFile ¶
func (*UploaderService) UploadAvatarFile ¶
func (us *UploaderService) UploadAvatarFile(ctx *gin.Context) (url string, err error)
UploadAvatarFile upload avatar file
func (*UploaderService) UploadBrandingFile ¶ added in v0.4.0
func (us *UploaderService) UploadBrandingFile(ctx *gin.Context) ( url string, err error)
func (*UploaderService) UploadPostFile ¶
func (us *UploaderService) UploadPostFile(ctx *gin.Context) ( url string, err error)
Click to show internal directories.
Click to hide internal directories.