BindWith deprecated

https://github.com/gin-gonic/gin/blob/master/deprecated.go
This commit is contained in:
紫系流月 2020-12-07 15:20:16 +08:00 committed by GitHub
parent e8bfdeb7bd
commit ef10ac19c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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