|
|
@@ -132,16 +132,16 @@ func (s *UserService) GetDataScope(userInfo *request.UserInfo) (dataScope g.Map,
|
|
|
}
|
|
|
|
|
|
// 产品线数据权限
|
|
|
- lineSrv, _ := NewLineService(s.Ctx)
|
|
|
- productLineList, err := lineSrv.getCurrentUserProductAuth(userId)
|
|
|
- if err != nil {
|
|
|
- return nil, err
|
|
|
- }
|
|
|
+ //lineSrv, _ := NewLineService(s.Ctx)
|
|
|
+ //productLineList, err := lineSrv.getCurrentUserProductAuth(userId)
|
|
|
+ //if err != nil {
|
|
|
+ // return nil, err
|
|
|
+ //}
|
|
|
// 大项目授权数据权限
|
|
|
- isBigProject, err := lineSrv.getCurrentUserBigProjectAuth(userId)
|
|
|
- if err != nil {
|
|
|
- return nil, err
|
|
|
- }
|
|
|
+ //isBigProject, err := lineSrv.getCurrentUserBigProjectAuth(userId)
|
|
|
+ //if err != nil {
|
|
|
+ // return nil, err
|
|
|
+ //}
|
|
|
|
|
|
// 地区数据权限
|
|
|
//regionSrv, _ := NewRegionService(s.Ctx)
|
|
|
@@ -207,10 +207,10 @@ func (s *UserService) GetDataScope(userInfo *request.UserInfo) (dataScope g.Map,
|
|
|
userIdArr.Add(userId)
|
|
|
}
|
|
|
//dataScope = g.Map{"userIds": userIdArr.Slice(), "cust_city_id": regionList, "product_line": productLineList}
|
|
|
- dataScope = g.Map{"userIds": userIdArr.Slice(), "product_line": productLineList}
|
|
|
- if isBigProject != "" {
|
|
|
- dataScope["is_big"] = isBigProject
|
|
|
- }
|
|
|
+ dataScope = g.Map{"userIds": userIdArr.Slice()}
|
|
|
+ //if isBigProject != "" {
|
|
|
+ // dataScope["is_big"] = isBigProject
|
|
|
+ //}
|
|
|
dataScope["roles"] = userInfo.Roles
|
|
|
dataScope["posts"] = userInfo.Posts
|
|
|
return dataScope, nil
|