加入权限管理

This commit is contained in:
marvzhang
2020-03-20 17:43:11 +08:00
parent 1e2b580ed4
commit fa62e1a2dc
26 changed files with 437 additions and 70 deletions

View File

@@ -9,7 +9,12 @@ import (
)
func GetScheduleList(c *gin.Context) {
results, err := model.GetScheduleList(nil)
query := bson.M{}
// 获取校验
query = services.GetAuthQuery(query, c)
results, err := model.GetScheduleList(query)
if err != nil {
HandleError(http.StatusInternalServerError, c, err)
return