文件类型swagger的注解书写

用户头像上传 功能完成
This commit is contained in:
pixelqm
2019-09-05 23:55:30 +08:00
parent 167186fa78
commit 25c6fdeee1
9 changed files with 192 additions and 45 deletions

View File

@@ -0,0 +1,14 @@
package api
import (
"github.com/gin-gonic/gin"
"net/http"
)
func ReportFormat(c *gin.Context, success bool, msg string, json gin.H) {
c.JSON(http.StatusOK, gin.H{
"success": success,
"msg": msg,
"data": json,
})
}