|
@@ -1,13 +1,12 @@
|
|
|
package middleground
|
|
|
|
|
|
import (
|
|
|
- "context"
|
|
|
- "log"
|
|
|
-
|
|
|
"bp.jydev.jianyu360.cn/BaseService/userCenter/rpc/pb"
|
|
|
"bp.jydev.jianyu360.cn/BaseService/userCenter/rpc/usercenter"
|
|
|
+ "context"
|
|
|
"github.com/zeromicro/go-zero/core/discov"
|
|
|
"github.com/zeromicro/go-zero/zrpc"
|
|
|
+ "log"
|
|
|
)
|
|
|
|
|
|
type userCenter struct {
|
|
@@ -190,3 +189,29 @@ func (u *userCenter) WorkDesktopClearUserInfo(req pb.WorkDesktopClearUserInfoReq
|
|
|
}
|
|
|
return resp
|
|
|
}
|
|
|
+
|
|
|
+//用户菜单获取
|
|
|
+func (u *userCenter) WorkDesktopMenuInfo(req pb.WorkDesktopMenuInfoReq) *pb.WorkDesktopMenuInfoResp {
|
|
|
+ client := u.NewClient()
|
|
|
+ //defer client.Conn().Close()
|
|
|
+ resp, err := usercenter.NewUserCenter(client).WorkDesktopMenuInfo(context.Background(), &pb.WorkDesktopMenuInfoReq{
|
|
|
+ AppId: req.AppId,
|
|
|
+ UserId: req.UserId,
|
|
|
+ Phone: req.Phone,
|
|
|
+ Platform: req.Platform,
|
|
|
+ NewUserId: req.NewUserId,
|
|
|
+ EntId: req.EntId,
|
|
|
+ EntUserId: req.EntUserId,
|
|
|
+ WorkStatus: req.WorkStatus,
|
|
|
+ AccountId: req.AccountId,
|
|
|
+ EntAccountId: req.EntAccountId,
|
|
|
+ PositionId: req.PositionId,
|
|
|
+ PositionType: req.PositionType,
|
|
|
+ MgoUserId: req.MgoUserId,
|
|
|
+ })
|
|
|
+ if err != nil {
|
|
|
+ log.Println(err)
|
|
|
+ return nil
|
|
|
+ }
|
|
|
+ return resp
|
|
|
+}
|