|
@@ -33,16 +33,21 @@ func (l *ResEmpowerLogic) ResEmpower(req *types.ResEmpowerReq) (resp *types.BiRe
|
|
|
entUserIds = append(entUserIds, Int64All(v))
|
|
|
}
|
|
|
var r *pb.Resp
|
|
|
- pdReq := &pb.EmpowerReq{
|
|
|
- Appid: "10000",
|
|
|
- FunctionCode: req.FunctionCode,
|
|
|
- EntId: req.EntId,
|
|
|
- EntUserId: entUserIds,
|
|
|
- }
|
|
|
if req.ReqType == 1 {
|
|
|
- r, err = l.svcCtx.ResourceCenterRpc.Empower(context.Background(), pdReq)
|
|
|
+ r, err = l.svcCtx.ResourceCenterRpc.Empower(context.Background(), &pb.EmpowerReq{
|
|
|
+ Appid: "10000",
|
|
|
+ FunctionCode: req.FunctionCode,
|
|
|
+ EntId: req.EntId,
|
|
|
+ EntUserId: entUserIds,
|
|
|
+ })
|
|
|
} else if req.ReqType == 2 {
|
|
|
- r, err = l.svcCtx.ResourceCenterRpc.ReEmpower(context.Background(), pdReq)
|
|
|
+ r, err = l.svcCtx.ResourceCenterRpc.CrReEmpower(context.Background(), &pb.CrReEmpowerReq{
|
|
|
+ Appid: "10000",
|
|
|
+ FunctionModule: []string{"bi_电销菜单管理"},
|
|
|
+ FunctionCode: strings.Split(req.FunctionCode, ","),
|
|
|
+ EntId: req.EntId,
|
|
|
+ EntUserId: entUserIds,
|
|
|
+ })
|
|
|
} else if req.ReqType == -1 {
|
|
|
r, err = l.svcCtx.ResourceCenterRpc.CancelAllEmpower(context.Background(), &pb.AllEmpowerReq{
|
|
|
Appid: "10000",
|