1、action中各动作添加数据权限

2、修改jwt中key为常量
This commit is contained in:
linwenxiang committed 2020-09-03 10:49:31 +08:00
1 parent d3622c93fc
commit 4b8c372038
8 files changed
+54 -16

No files matched your search

+2 -2
View File
@@ -49,11 +49,11 @@ func IndexAction(m model.ActiveRecord, d dto.Index, f func() interface{}) gin.Ha
if !errors.Is(err, gorm.ErrRecordNotFound) {
tools.HasError(err, "查询失败", 500)
}
app.PageOK(c, list, int(count), req.GetPageIndex(), req.GetPageSize(), "查询成功")
c.Next()
default:
err = errors.New("db connect not exist")
tools.HasError(err, "", 500)
}
app.PageOK(c, list, int(count), req.GetPageIndex(), req.GetPageSize(), "查询成功")
c.Next()
}
}