面包店
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

svc_file_domain.go 405 B

9 months ago
123456789101112131415161718
  1. package svc
  2. import (
  3. "applet/app/md"
  4. "github.com/gin-gonic/gin"
  5. )
  6. // 文件host
  7. func FileImgHost(c *gin.Context) string {
  8. res := SysCfgFind(c, md.KEY_CFG_FILE_SCHEME, md.KEY_CFG_FILE_HOST)
  9. return res[md.KEY_CFG_FILE_SCHEME] + "://" + res[md.KEY_CFG_FILE_HOST] + "/"
  10. }
  11. // 获取缩略图参数
  12. func FileImgThumbnail(c *gin.Context) string {
  13. return SysCfgGet(c, md.KEY_CFG_FILE_AVATAR_THUMBNAIL)
  14. }