Documentation
¶
Index ¶
- Constants
- Variables
- func DoUpload(c *gin.Context, siteId string) string
- func FmtImgDir(dir, uri string) (string, string)
- func ImgResize(sourceFile, outFile string, newWidth int) (int, int)
- func InitWeb()
- func Md5Byte(bs []byte) string
- func Md5File(fileName string) (string, error)
- func WebAvatar(ctx *gin.Context, siteId string, userId int64)
- func WebPublicResource(auth *ws.Web)
- func WebResDownFile(ctx *gin.Context)
- func WebResourceDetail(web *ws.Web)
- func WebResourceInfo(auth *ws.Web)
- func WebResourceList(web *ws.Web)
- func WebUploadResource(c *gin.Context)
- type UpFile
Constants ¶
View Source
const (
UriUpload = "/upload/"
)
Variables ¶
View Source
var ( DirUpload string ImgHost string ImgMaxWidth int DownDir string )
Functions ¶
func WebPublicResource ¶
func WebResDownFile ¶
Content-Length:207081 Content-MD5:wHlX4Ow4JwWslrUuG4eA0w==
func WebResourceDetail ¶
func WebResourceInfo ¶
func WebResourceList ¶
func WebUploadResource ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.