用户juese

This commit is contained in:
苏尹岚
2020-09-27 17:21:03 +08:00
parent 9ba9d8e807
commit e9d391ea98
3 changed files with 65 additions and 0 deletions

View File

@@ -133,3 +133,15 @@ func UpdateRole(ctx *jxcontext.Context, roleID int, name string, isDelete bool)
dao.Commit(db)
return num, err
}
func GetUserRole(ctx *jxcontext.Context, userID string) (userRoles []*model.UserRole, err error) {
return dao.GetUserRole(dao.GetDB(), userID)
}
func UpdateUserRole(ctx *jxcontext.Context, userIDs []string, roleIDs []int) (err error) {
// var (
// db = dao.GetDB()
// )
return err
}