文件类型swagger的注解书写
用户头像上传 功能完成
This commit is contained in:
14
QMPlusServer/controller/api/reportformat.go
Normal file
14
QMPlusServer/controller/api/reportformat.go
Normal 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,
|
||||
})
|
||||
}
|
Reference in New Issue
Block a user