Documentation ¶
Index ¶
Constants ¶
View Source
const MaxAvatarSize = 2 * 1024 * 1024
MaxAvatarSize is the max avatar size which is 2MB.
View Source
const MaxBackgroundSize = 2 * 1024 * 1024
MaxBackgroundSize is the max background size which is 2MB.
View Source
const PictureKeyPrefix = "picture/"
PictureKeyPrefix is the prefix of the picture key.
Variables ¶
This section is empty.
Functions ¶
func UploadPictureToOSS ¶
UploadPictureToOSS upload user's avatar or background image to OSS. It returns the uploaded asset URL.
func UploadPictureToS3 ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.