蛋蛋星球 后台端
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.

hdl_config.go 627 B

1 day ago
12345678910111213141516171819202122232425
  1. package hdl
  2. import (
  3. "applet/app/e"
  4. "applet/app/md"
  5. "applet/app/svc"
  6. "github.com/gin-gonic/gin"
  7. )
  8. // Config
  9. // @Summary 基本配置
  10. // @Tags 基本配置
  11. // @Description 基本配置
  12. // @Accept json
  13. // @Produce json
  14. // @param Authorization header string true "验证参数Bearer和token空格拼接"
  15. // @Success 200 {object} md.ConfigResp "具体数据"
  16. // @Failure 400 {object} md.Response "具体错误"
  17. // @Router /api/config [get]
  18. func Config(c *gin.Context) {
  19. res := md.ConfigResp{}
  20. res.OssUrl = svc.GetOssDomain()
  21. e.OutSuc(c, res, nil)
  22. return
  23. }