From ef10ac19c68a3129f826a8fdda91763408e0e27e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=B4=AB=E7=B3=BB=E6=B5=81=E6=9C=88?= <1362134872@qq.com> Date: Mon, 7 Dec 2020 15:20:16 +0800 Subject: [PATCH] BindWith deprecated https://github.com/gin-gonic/gin/blob/master/deprecated.go --- apis/system/sysuser.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apis/system/sysuser.go b/apis/system/sysuser.go index 2e641bd..6c4fa89 100644 --- a/apis/system/sysuser.go +++ b/apis/system/sysuser.go @@ -190,7 +190,7 @@ func GetSysUserInit(c *gin.Context) { // @Router /api/v1/sysUser [post] func InsertSysUser(c *gin.Context) { var sysuser system.SysUser - err := c.BindWith(&sysuser, binding.JSON) + err := c.MustBindWith(&sysuser, binding.JSON) if err != nil { app.Error(c, -1, err, "") return