video.go 420 B

12345678910111213141516171819
  1. package resource
  2. import (
  3. "github.com/gin-gonic/gin"
  4. "hongze/fms_api/controller/resp"
  5. services "hongze/fms_api/services/resource"
  6. )
  7. type VideoController struct{}
  8. func (v *VideoController) GetOssStsToken(c *gin.Context) {
  9. ret, err := services.GetOssSTSToken()
  10. if err != nil {
  11. resp.FailMsg("获取STSToken失败", "获取STSToken失败"+err.Error(), c)
  12. return
  13. }
  14. resp.OkData("获取成功", ret, c)
  15. return
  16. }