mirror of
https://gitcode.com/flipped-aurora/gin-vue-admin.git
synced 2026-05-14 11:17:55 +00:00
更改为shouldBindJson 不主动修改 400
This commit is contained in:
@@ -85,7 +85,7 @@ func DeleteFile(c *gin.Context) {
|
||||
// @Router /fileUploadAndDownload/getFileList [post]
|
||||
func GetFileList(c *gin.Context) {
|
||||
var pageInfo modelInterface.PageInfo
|
||||
_ = c.BindJSON(&pageInfo)
|
||||
_ = c.ShouldBindJSON(&pageInfo)
|
||||
err, list, total := new(dbModel.ExaFileUploadAndDownload).GetInfoList(pageInfo)
|
||||
if err != nil {
|
||||
servers.ReportFormat(c, false, fmt.Sprintf("获取数据失败,%v", err), gin.H{})
|
||||
|
||||
Reference in New Issue
Block a user