Bläddra i källkod

feat:测试用例

wangshan 3 år sedan
förälder
incheckning
f2ebd84f83

BIN
api/api.exe


+ 5 - 0
api/internal/handler/routes.go

@@ -67,6 +67,11 @@ func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) {
 				Path:    "/userCenter/workDesktop/renew/:actionMode",
 				Handler: WorkDesktopComprehensiveHandler(serverCtx),
 			},
+			{
+				Method:  http.MethodPost,
+				Path:    "/userCenter/workDesktop/clearUserInfo",
+				Handler: WorkDesktopClearUserInfoHandler(serverCtx),
+			},
 		},
 	)
 

+ 28 - 0
api/internal/handler/workdesktopclearuserinfohandler.go

@@ -0,0 +1,28 @@
+package handler
+
+import (
+	"net/http"
+
+	"github.com/zeromicro/go-zero/rest/httpx"
+	"userCenter/api/internal/logic"
+	"userCenter/api/internal/svc"
+	"userCenter/api/internal/types"
+)
+
+func WorkDesktopClearUserInfoHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
+	return func(w http.ResponseWriter, r *http.Request) {
+		var req types.WorkDesktopComprehensiveReq
+		if err := httpx.Parse(r, &req); err != nil {
+			httpx.Error(w, err)
+			return
+		}
+
+		l := logic.NewWorkDesktopClearUserInfoLogic(r.Context(), svcCtx, r)
+		resp, err := l.WorkDesktopClearUserInfo(&req)
+		if err != nil {
+			httpx.Error(w, err)
+		} else {
+			httpx.OkJson(w, resp)
+		}
+	}
+}

+ 43 - 0
api/internal/logic/workdesktopclearuserinfologic.go

@@ -0,0 +1,43 @@
+package logic
+
+import (
+	"context"
+	"net/http"
+	"userCenter/entity"
+	"userCenter/rpc/pb"
+
+	"userCenter/api/internal/svc"
+	"userCenter/api/internal/types"
+
+	"github.com/zeromicro/go-zero/core/logx"
+)
+
+type WorkDesktopClearUserInfoLogic struct {
+	logx.Logger
+	ctx    context.Context
+	svcCtx *svc.ServiceContext
+	r      *http.Request
+}
+
+func NewWorkDesktopClearUserInfoLogic(ctx context.Context, svcCtx *svc.ServiceContext, r *http.Request) *WorkDesktopClearUserInfoLogic {
+	return &WorkDesktopClearUserInfoLogic{
+		Logger: logx.WithContext(ctx),
+		ctx:    ctx,
+		svcCtx: svcCtx,
+		r:      r,
+	}
+}
+
+func (l *WorkDesktopClearUserInfoLogic) WorkDesktopClearUserInfo(req *types.WorkDesktopClearUserInfo) (resp *types.CommonResp, err error) {
+	res, err := entity.UserCenterRpc.WorkDesktopClearUserInfo(l.ctx, &pb.WorkDesktopClearUserInfoReq{
+		UserId:   req.UserId,
+		AppId:    req.AppId,
+		Platform: req.Platform,
+		UserIds:  req.UserIds,
+	})
+	return &types.CommonResp{
+		Error_code: res.ErrorCode,
+		Error_msg:  res.ErrorMsg,
+		Data:       res.Data,
+	}, err
+}

+ 7 - 0
api/internal/types/types.go

@@ -242,3 +242,10 @@ type CommonResp struct {
 	Error_msg  string      `json:"error_msg"`
 	Data       interface{} `json:"data"`
 }
+
+type WorkDesktopClearUserInfo struct {
+	Platform string `json:"platform,optional"`
+	UserId   string `header:"userId,optional"`
+	AppId    string `header:"appId,optional"`
+	UserIds  string `json:"userIds"`
+}

+ 9 - 0
api/userCenter.api

@@ -257,6 +257,13 @@ type (
 		Error_msg  string      `json:"error_msg"`
 		Data       interface{} `json:"data"`
 	}
+	//工作桌面清用户内存信息
+	WorkDesktopClearUserInfo {
+		Platform string `json:"platform,optional"`
+		UserId   string `header:"userId,optional"`
+		AppId    string `header:"appId,optional"`
+		UserIds  string `json:"userIds"`
+	}
 )
 
 service userCenter-api {
@@ -283,6 +290,8 @@ service userCenter-api {
 	post /userCenter/workDesktop/menuInfo (WorkDesktopMenuInfoReq) returns (CommonResp)
 	@handler WorkDesktopComprehensive
 	post /userCenter/workDesktop/renew/:actionMode (WorkDesktopComprehensiveReq) returns (CommonResp)
+	@handler WorkDesktopClearUserInfo
+	post /userCenter/workDesktop/clearUserInfo (WorkDesktopClearUserInfo) returns (CommonResp)
 }
 
 @server(

+ 17 - 12
entity/user.go

@@ -128,18 +128,7 @@ func ClearUserPower() {
 		select {
 		case userId := <-UserPowerPools:
 			if userId != "" {
-				PowerLock.Lock()
-				userPower := UserPowerMapMap[userId]
-				PowerLock.Unlock()
-				if userPower != nil {
-					func() {
-						UserPowerLock[userId].Lock()
-						defer UserPowerLock[userId].Lock()
-						PowerLock.Lock()
-						delete(UserPowerMapMap, userId)
-						PowerLock.Unlock()
-					}()
-				}
+				go ClearFunc(userId)
 			}
 		case <-time.After(UserPowerOutTime):
 			logx.Info("-超时-", UserPowerOutTime)
@@ -148,3 +137,19 @@ func ClearUserPower() {
 		}
 	}
 }
+
+//
+func ClearFunc(userId string) {
+	PowerLock.Lock()
+	userPower := UserPowerMapMap[userId]
+	PowerLock.Unlock()
+	if userPower != nil {
+		func() {
+			UserPowerLock[userId].Lock()
+			defer UserPowerLock[userId].Lock()
+			PowerLock.Lock()
+			delete(UserPowerMapMap, userId)
+			PowerLock.Unlock()
+		}()
+	}
+}

+ 4 - 1
rpc/etc/usercenter.yaml

@@ -49,4 +49,7 @@ Mongo:
     size: 50
     address: 192.168.3.206:27080
 BigMemberOff: false
-CommonlySize: 10
+CommonlySize: 10
+ManagerUserIds: 
+  - 5f51d194b44a4a76fe4cf342
+  - 62e09d13df1f161cf87b1153

+ 11 - 4
rpc/internal/config/config.go

@@ -27,8 +27,9 @@ type Config struct {
 	Mongo            struct {
 		Main *MongoStruct
 	}
-	BigMemberOff bool
-	CommonlySize int //常用功能设置数量
+	BigMemberOff   bool
+	CommonlySize   int //常用功能设置数量
+	ManagerUserIds []string
 }
 type MongoStruct struct {
 	Address        string `json:"address"`
@@ -43,7 +44,8 @@ type MongoStruct struct {
 }
 
 var (
-	ConfigJson Config
+	ConfigJson        Config
+	ManagerUserIdsMap = map[string]bool{}
 )
 
 type Mysql struct {
@@ -65,5 +67,10 @@ func init() {
 		},
 	})
 	entity.ResourceLib = resource.NewResource(resourceClient)
-
+	//
+	if len(ConfigJson.ManagerUserIds) > 0 {
+		for _, v := range ConfigJson.ManagerUserIds {
+			ManagerUserIdsMap[v] = true
+		}
+	}
 }

+ 43 - 0
rpc/internal/logic/workdesktopclearuserinfologic.go

@@ -0,0 +1,43 @@
+package logic
+
+import (
+	"context"
+	"strings"
+	"userCenter/entity"
+	"userCenter/rpc/internal/config"
+	"userCenter/rpc/internal/svc"
+	"userCenter/rpc/pb"
+
+	"github.com/zeromicro/go-zero/core/logx"
+)
+
+type WorkDesktopClearUserInfoLogic struct {
+	ctx    context.Context
+	svcCtx *svc.ServiceContext
+	logx.Logger
+}
+
+func NewWorkDesktopClearUserInfoLogic(ctx context.Context, svcCtx *svc.ServiceContext) *WorkDesktopClearUserInfoLogic {
+	return &WorkDesktopClearUserInfoLogic{
+		ctx:    ctx,
+		svcCtx: svcCtx,
+		Logger: logx.WithContext(ctx),
+	}
+}
+
+// 手动清除用户功能内存信息
+func (l *WorkDesktopClearUserInfoLogic) WorkDesktopClearUserInfo(in *pb.WorkDesktopClearUserInfoReq) (*pb.WorkDesktopComprehensiveResp, error) {
+	//是否是管理者账号
+	if config.ManagerUserIdsMap[in.UserId] {
+		//in.UserIds 不为空;清此用户内存信息
+		//in.UserIds 为空;清全部
+		if in.UserIds != "" {
+			for _, uv := range strings.Split(in.UserIds, ",") {
+				go entity.ClearFunc(uv)
+			}
+		}
+	} else {
+		go entity.ClearFunc(in.UserId)
+	}
+	return &pb.WorkDesktopComprehensiveResp{}, nil
+}

+ 7 - 1
rpc/internal/server/usercenterserver.go

@@ -100,8 +100,14 @@ func (s *UserCenterServer) WorkDesktopMenuInfo(ctx context.Context, in *pb.WorkD
 	return l.WorkDesktopMenuInfo(in)
 }
 
-// 菜单选择模式
+// 菜单选择模式||常用功能更新||常用功能列表
 func (s *UserCenterServer) WorkDesktopComprehensive(ctx context.Context, in *pb.WorkDesktopComprehensiveReq) (*pb.WorkDesktopComprehensiveResp, error) {
 	l := logic.NewWorkDesktopComprehensiveLogic(ctx, s.svcCtx)
 	return l.WorkDesktopComprehensive(in)
 }
+
+// 手动清除用户功能内存信息
+func (s *UserCenterServer) WorkDesktopClearUserInfo(ctx context.Context, in *pb.WorkDesktopClearUserInfoReq) (*pb.WorkDesktopComprehensiveResp, error) {
+	l := logic.NewWorkDesktopClearUserInfoLogic(ctx, s.svcCtx)
+	return l.WorkDesktopClearUserInfo(in)
+}

+ 163 - 63
rpc/pb/userCenter.pb.go

@@ -2960,6 +2960,78 @@ func (x *WorkDesktopComprehensiveResp) GetData() []*ThreeLevelMenu {
 	return nil
 }
 
+//清除用户功能相关内存信息
+type WorkDesktopClearUserInfoReq struct {
+	state         protoimpl.MessageState
+	sizeCache     protoimpl.SizeCache
+	unknownFields protoimpl.UnknownFields
+
+	UserId   string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"`
+	AppId    string `protobuf:"bytes,2,opt,name=appId,proto3" json:"appId,omitempty"`
+	Platform string `protobuf:"bytes,3,opt,name=platform,proto3" json:"platform,omitempty"`
+	UserIds  string `protobuf:"bytes,4,opt,name=userIds,proto3" json:"userIds,omitempty"`
+}
+
+func (x *WorkDesktopClearUserInfoReq) Reset() {
+	*x = WorkDesktopClearUserInfoReq{}
+	if protoimpl.UnsafeEnabled {
+		mi := &file_userCenter_proto_msgTypes[37]
+		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+		ms.StoreMessageInfo(mi)
+	}
+}
+
+func (x *WorkDesktopClearUserInfoReq) String() string {
+	return protoimpl.X.MessageStringOf(x)
+}
+
+func (*WorkDesktopClearUserInfoReq) ProtoMessage() {}
+
+func (x *WorkDesktopClearUserInfoReq) ProtoReflect() protoreflect.Message {
+	mi := &file_userCenter_proto_msgTypes[37]
+	if protoimpl.UnsafeEnabled && x != nil {
+		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+		if ms.LoadMessageInfo() == nil {
+			ms.StoreMessageInfo(mi)
+		}
+		return ms
+	}
+	return mi.MessageOf(x)
+}
+
+// Deprecated: Use WorkDesktopClearUserInfoReq.ProtoReflect.Descriptor instead.
+func (*WorkDesktopClearUserInfoReq) Descriptor() ([]byte, []int) {
+	return file_userCenter_proto_rawDescGZIP(), []int{37}
+}
+
+func (x *WorkDesktopClearUserInfoReq) GetUserId() string {
+	if x != nil {
+		return x.UserId
+	}
+	return ""
+}
+
+func (x *WorkDesktopClearUserInfoReq) GetAppId() string {
+	if x != nil {
+		return x.AppId
+	}
+	return ""
+}
+
+func (x *WorkDesktopClearUserInfoReq) GetPlatform() string {
+	if x != nil {
+		return x.Platform
+	}
+	return ""
+}
+
+func (x *WorkDesktopClearUserInfoReq) GetUserIds() string {
+	if x != nil {
+		return x.UserIds
+	}
+	return ""
+}
+
 var File_userCenter_proto protoreflect.FileDescriptor
 
 var file_userCenter_proto_rawDesc = []byte{
@@ -3333,51 +3405,64 @@ var file_userCenter_proto_rawDesc = []byte{
 	0x09, 0x52, 0x08, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x4d, 0x73, 0x67, 0x12, 0x23, 0x0a, 0x04, 0x64,
 	0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x54, 0x68, 0x72, 0x65,
 	0x65, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x4d, 0x65, 0x6e, 0x75, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61,
-	0x32, 0xb0, 0x05, 0x0a, 0x0a, 0x55, 0x73, 0x65, 0x72, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x12,
-	0x24, 0x0a, 0x07, 0x45, 0x6e, 0x74, 0x41, 0x75, 0x74, 0x68, 0x12, 0x0b, 0x2e, 0x45, 0x6e, 0x74,
-	0x41, 0x75, 0x74, 0x68, 0x52, 0x65, 0x71, 0x1a, 0x0c, 0x2e, 0x45, 0x6e, 0x74, 0x41, 0x75, 0x74,
-	0x68, 0x52, 0x65, 0x73, 0x70, 0x12, 0x27, 0x0a, 0x0a, 0x45, 0x6e, 0x74, 0x45, 0x78, 0x61, 0x6d,
-	0x69, 0x6e, 0x65, 0x12, 0x0b, 0x2e, 0x45, 0x78, 0x61, 0x6d, 0x69, 0x6e, 0x65, 0x52, 0x65, 0x71,
-	0x1a, 0x0c, 0x2e, 0x45, 0x78, 0x61, 0x6d, 0x69, 0x6e, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12, 0x24,
-	0x0a, 0x07, 0x45, 0x6e, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x0b, 0x2e, 0x45, 0x6e, 0x74, 0x4c,
-	0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x1a, 0x0c, 0x2e, 0x45, 0x6e, 0x74, 0x4c, 0x69, 0x73, 0x74,
-	0x52, 0x65, 0x73, 0x70, 0x12, 0x30, 0x0a, 0x0b, 0x45, 0x78, 0x61, 0x6d, 0x69, 0x6e, 0x65, 0x4c,
-	0x69, 0x73, 0x74, 0x12, 0x0f, 0x2e, 0x45, 0x78, 0x61, 0x6d, 0x69, 0x6e, 0x65, 0x4c, 0x69, 0x73,
-	0x74, 0x52, 0x65, 0x71, 0x1a, 0x10, 0x2e, 0x45, 0x78, 0x61, 0x6d, 0x69, 0x6e, 0x65, 0x4c, 0x69,
-	0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x27, 0x0a, 0x08, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x45,
-	0x6e, 0x74, 0x12, 0x0c, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x45, 0x6e, 0x74, 0x52, 0x65, 0x71,
-	0x1a, 0x0d, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x45, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12,
-	0x25, 0x0a, 0x07, 0x45, 0x6e, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x0c, 0x2e, 0x43, 0x68, 0x65,
-	0x63, 0x6b, 0x45, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x1a, 0x0c, 0x2e, 0x45, 0x6e, 0x74, 0x49, 0x6e,
-	0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x12, 0x28, 0x0a, 0x09, 0x45, 0x6e, 0x74, 0x55, 0x70, 0x64,
-	0x61, 0x74, 0x65, 0x12, 0x0d, 0x2e, 0x45, 0x6e, 0x74, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52,
-	0x65, 0x71, 0x1a, 0x0c, 0x2e, 0x45, 0x78, 0x61, 0x6d, 0x69, 0x6e, 0x65, 0x52, 0x65, 0x73, 0x70,
-	0x12, 0x2d, 0x0a, 0x0b, 0x45, 0x78, 0x61, 0x6d, 0x69, 0x6e, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12,
-	0x10, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x45, 0x78, 0x61, 0x6d, 0x69, 0x6e, 0x65, 0x52, 0x65,
-	0x71, 0x1a, 0x0c, 0x2e, 0x45, 0x6e, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x12,
-	0x3c, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x42, 0x79, 0x43, 0x6f,
-	0x64, 0x65, 0x12, 0x13, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x42, 0x79,
-	0x43, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x71, 0x1a, 0x14, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x74, 0x61,
-	0x74, 0x75, 0x73, 0x42, 0x79, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12, 0x24, 0x0a,
-	0x07, 0x55, 0x73, 0x65, 0x72, 0x41, 0x64, 0x64, 0x12, 0x0b, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x41,
-	0x64, 0x64, 0x52, 0x65, 0x71, 0x1a, 0x0c, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x41, 0x64, 0x64, 0x52,
-	0x65, 0x73, 0x70, 0x12, 0x26, 0x0a, 0x0a, 0x55, 0x73, 0x65, 0x72, 0x55, 0x70, 0x64, 0x61, 0x74,
-	0x65, 0x12, 0x0a, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x52, 0x65, 0x71, 0x1a, 0x0c, 0x2e,
-	0x45, 0x78, 0x61, 0x6d, 0x69, 0x6e, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12, 0x23, 0x0a, 0x07, 0x55,
-	0x73, 0x65, 0x72, 0x44, 0x65, 0x6c, 0x12, 0x0a, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x52,
-	0x65, 0x71, 0x1a, 0x0c, 0x2e, 0x45, 0x78, 0x61, 0x6d, 0x69, 0x6e, 0x65, 0x52, 0x65, 0x73, 0x70,
-	0x12, 0x48, 0x0a, 0x13, 0x57, 0x6f, 0x72, 0x6b, 0x44, 0x65, 0x73, 0x6b, 0x74, 0x6f, 0x70, 0x4d,
-	0x65, 0x6e, 0x75, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x17, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x44, 0x65,
-	0x73, 0x6b, 0x74, 0x6f, 0x70, 0x4d, 0x65, 0x6e, 0x75, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71,
-	0x1a, 0x18, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x44, 0x65, 0x73, 0x6b, 0x74, 0x6f, 0x70, 0x4d, 0x65,
-	0x6e, 0x75, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x12, 0x57, 0x0a, 0x18, 0x57, 0x6f,
-	0x72, 0x6b, 0x44, 0x65, 0x73, 0x6b, 0x74, 0x6f, 0x70, 0x43, 0x6f, 0x6d, 0x70, 0x72, 0x65, 0x68,
-	0x65, 0x6e, 0x73, 0x69, 0x76, 0x65, 0x12, 0x1c, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x44, 0x65, 0x73,
-	0x6b, 0x74, 0x6f, 0x70, 0x43, 0x6f, 0x6d, 0x70, 0x72, 0x65, 0x68, 0x65, 0x6e, 0x73, 0x69, 0x76,
-	0x65, 0x52, 0x65, 0x71, 0x1a, 0x1d, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x44, 0x65, 0x73, 0x6b, 0x74,
-	0x6f, 0x70, 0x43, 0x6f, 0x6d, 0x70, 0x72, 0x65, 0x68, 0x65, 0x6e, 0x73, 0x69, 0x76, 0x65, 0x52,
-	0x65, 0x73, 0x70, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f,
-	0x74, 0x6f, 0x33,
+	0x22, 0x81, 0x01, 0x0a, 0x1b, 0x57, 0x6f, 0x72, 0x6b, 0x44, 0x65, 0x73, 0x6b, 0x74, 0x6f, 0x70,
+	0x43, 0x6c, 0x65, 0x61, 0x72, 0x55, 0x73, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71,
+	0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
+	0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x49,
+	0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x49, 0x64, 0x12, 0x1a,
+	0x0a, 0x08, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09,
+	0x52, 0x08, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x12, 0x18, 0x0a, 0x07, 0x75, 0x73,
+	0x65, 0x72, 0x49, 0x64, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x75, 0x73, 0x65,
+	0x72, 0x49, 0x64, 0x73, 0x32, 0x89, 0x06, 0x0a, 0x0a, 0x55, 0x73, 0x65, 0x72, 0x43, 0x65, 0x6e,
+	0x74, 0x65, 0x72, 0x12, 0x24, 0x0a, 0x07, 0x45, 0x6e, 0x74, 0x41, 0x75, 0x74, 0x68, 0x12, 0x0b,
+	0x2e, 0x45, 0x6e, 0x74, 0x41, 0x75, 0x74, 0x68, 0x52, 0x65, 0x71, 0x1a, 0x0c, 0x2e, 0x45, 0x6e,
+	0x74, 0x41, 0x75, 0x74, 0x68, 0x52, 0x65, 0x73, 0x70, 0x12, 0x27, 0x0a, 0x0a, 0x45, 0x6e, 0x74,
+	0x45, 0x78, 0x61, 0x6d, 0x69, 0x6e, 0x65, 0x12, 0x0b, 0x2e, 0x45, 0x78, 0x61, 0x6d, 0x69, 0x6e,
+	0x65, 0x52, 0x65, 0x71, 0x1a, 0x0c, 0x2e, 0x45, 0x78, 0x61, 0x6d, 0x69, 0x6e, 0x65, 0x52, 0x65,
+	0x73, 0x70, 0x12, 0x24, 0x0a, 0x07, 0x45, 0x6e, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x0b, 0x2e,
+	0x45, 0x6e, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x1a, 0x0c, 0x2e, 0x45, 0x6e, 0x74,
+	0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x30, 0x0a, 0x0b, 0x45, 0x78, 0x61, 0x6d,
+	0x69, 0x6e, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x0f, 0x2e, 0x45, 0x78, 0x61, 0x6d, 0x69, 0x6e,
+	0x65, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x1a, 0x10, 0x2e, 0x45, 0x78, 0x61, 0x6d, 0x69,
+	0x6e, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x27, 0x0a, 0x08, 0x43, 0x68,
+	0x65, 0x63, 0x6b, 0x45, 0x6e, 0x74, 0x12, 0x0c, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x45, 0x6e,
+	0x74, 0x52, 0x65, 0x71, 0x1a, 0x0d, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x45, 0x6e, 0x74, 0x52,
+	0x65, 0x73, 0x70, 0x12, 0x25, 0x0a, 0x07, 0x45, 0x6e, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x0c,
+	0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x45, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x1a, 0x0c, 0x2e, 0x45,
+	0x6e, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x12, 0x28, 0x0a, 0x09, 0x45, 0x6e,
+	0x74, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x0d, 0x2e, 0x45, 0x6e, 0x74, 0x55, 0x70, 0x64,
+	0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x1a, 0x0c, 0x2e, 0x45, 0x78, 0x61, 0x6d, 0x69, 0x6e, 0x65,
+	0x52, 0x65, 0x73, 0x70, 0x12, 0x2d, 0x0a, 0x0b, 0x45, 0x78, 0x61, 0x6d, 0x69, 0x6e, 0x65, 0x49,
+	0x6e, 0x66, 0x6f, 0x12, 0x10, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x45, 0x78, 0x61, 0x6d, 0x69,
+	0x6e, 0x65, 0x52, 0x65, 0x71, 0x1a, 0x0c, 0x2e, 0x45, 0x6e, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x52,
+	0x65, 0x73, 0x70, 0x12, 0x3c, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73,
+	0x42, 0x79, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x13, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74,
+	0x75, 0x73, 0x42, 0x79, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x71, 0x1a, 0x14, 0x2e, 0x47, 0x65,
+	0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x42, 0x79, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x73,
+	0x70, 0x12, 0x24, 0x0a, 0x07, 0x55, 0x73, 0x65, 0x72, 0x41, 0x64, 0x64, 0x12, 0x0b, 0x2e, 0x55,
+	0x73, 0x65, 0x72, 0x41, 0x64, 0x64, 0x52, 0x65, 0x71, 0x1a, 0x0c, 0x2e, 0x55, 0x73, 0x65, 0x72,
+	0x41, 0x64, 0x64, 0x52, 0x65, 0x73, 0x70, 0x12, 0x26, 0x0a, 0x0a, 0x55, 0x73, 0x65, 0x72, 0x55,
+	0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x0a, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x52, 0x65,
+	0x71, 0x1a, 0x0c, 0x2e, 0x45, 0x78, 0x61, 0x6d, 0x69, 0x6e, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12,
+	0x23, 0x0a, 0x07, 0x55, 0x73, 0x65, 0x72, 0x44, 0x65, 0x6c, 0x12, 0x0a, 0x2e, 0x55, 0x73, 0x65,
+	0x72, 0x49, 0x64, 0x52, 0x65, 0x71, 0x1a, 0x0c, 0x2e, 0x45, 0x78, 0x61, 0x6d, 0x69, 0x6e, 0x65,
+	0x52, 0x65, 0x73, 0x70, 0x12, 0x48, 0x0a, 0x13, 0x57, 0x6f, 0x72, 0x6b, 0x44, 0x65, 0x73, 0x6b,
+	0x74, 0x6f, 0x70, 0x4d, 0x65, 0x6e, 0x75, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x17, 0x2e, 0x57, 0x6f,
+	0x72, 0x6b, 0x44, 0x65, 0x73, 0x6b, 0x74, 0x6f, 0x70, 0x4d, 0x65, 0x6e, 0x75, 0x49, 0x6e, 0x66,
+	0x6f, 0x52, 0x65, 0x71, 0x1a, 0x18, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x44, 0x65, 0x73, 0x6b, 0x74,
+	0x6f, 0x70, 0x4d, 0x65, 0x6e, 0x75, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x12, 0x57,
+	0x0a, 0x18, 0x57, 0x6f, 0x72, 0x6b, 0x44, 0x65, 0x73, 0x6b, 0x74, 0x6f, 0x70, 0x43, 0x6f, 0x6d,
+	0x70, 0x72, 0x65, 0x68, 0x65, 0x6e, 0x73, 0x69, 0x76, 0x65, 0x12, 0x1c, 0x2e, 0x57, 0x6f, 0x72,
+	0x6b, 0x44, 0x65, 0x73, 0x6b, 0x74, 0x6f, 0x70, 0x43, 0x6f, 0x6d, 0x70, 0x72, 0x65, 0x68, 0x65,
+	0x6e, 0x73, 0x69, 0x76, 0x65, 0x52, 0x65, 0x71, 0x1a, 0x1d, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x44,
+	0x65, 0x73, 0x6b, 0x74, 0x6f, 0x70, 0x43, 0x6f, 0x6d, 0x70, 0x72, 0x65, 0x68, 0x65, 0x6e, 0x73,
+	0x69, 0x76, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12, 0x57, 0x0a, 0x18, 0x57, 0x6f, 0x72, 0x6b, 0x44,
+	0x65, 0x73, 0x6b, 0x74, 0x6f, 0x70, 0x43, 0x6c, 0x65, 0x61, 0x72, 0x55, 0x73, 0x65, 0x72, 0x49,
+	0x6e, 0x66, 0x6f, 0x12, 0x1c, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x44, 0x65, 0x73, 0x6b, 0x74, 0x6f,
+	0x70, 0x43, 0x6c, 0x65, 0x61, 0x72, 0x55, 0x73, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65,
+	0x71, 0x1a, 0x1d, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x44, 0x65, 0x73, 0x6b, 0x74, 0x6f, 0x70, 0x43,
+	0x6f, 0x6d, 0x70, 0x72, 0x65, 0x68, 0x65, 0x6e, 0x73, 0x69, 0x76, 0x65, 0x52, 0x65, 0x73, 0x70,
+	0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
 }
 
 var (
@@ -3392,7 +3477,7 @@ func file_userCenter_proto_rawDescGZIP() []byte {
 	return file_userCenter_proto_rawDescData
 }
 
-var file_userCenter_proto_msgTypes = make([]protoimpl.MessageInfo, 37)
+var file_userCenter_proto_msgTypes = make([]protoimpl.MessageInfo, 38)
 var file_userCenter_proto_goTypes = []interface{}{
 	(*EntAuthReq)(nil),                   // 0: EntAuthReq
 	(*EntAuthResp)(nil),                  // 1: EntAuthResp
@@ -3431,6 +3516,7 @@ var file_userCenter_proto_goTypes = []interface{}{
 	(*TipInfo)(nil),                      // 34: TipInfo
 	(*WorkDesktopComprehensiveReq)(nil),  // 35: WorkDesktopComprehensiveReq
 	(*WorkDesktopComprehensiveResp)(nil), // 36: WorkDesktopComprehensiveResp
+	(*WorkDesktopClearUserInfoReq)(nil),  // 37: WorkDesktopClearUserInfoReq
 }
 var file_userCenter_proto_depIdxs = []int32{
 	2,  // 0: EntAuthResp.data:type_name -> EntAuthData
@@ -3463,22 +3549,24 @@ var file_userCenter_proto_depIdxs = []int32{
 	27, // 27: UserCenter.UserDel:input_type -> UserIdReq
 	28, // 28: UserCenter.WorkDesktopMenuInfo:input_type -> WorkDesktopMenuInfoReq
 	35, // 29: UserCenter.WorkDesktopComprehensive:input_type -> WorkDesktopComprehensiveReq
-	1,  // 30: UserCenter.EntAuth:output_type -> EntAuthResp
-	4,  // 31: UserCenter.EntExamine:output_type -> ExamineResp
-	7,  // 32: UserCenter.EntList:output_type -> EntListResp
-	11, // 33: UserCenter.ExamineList:output_type -> ExamineListResp
-	15, // 34: UserCenter.CheckEnt:output_type -> CheckEntResp
-	17, // 35: UserCenter.EntInfo:output_type -> EntInfoResp
-	4,  // 36: UserCenter.EntUpdate:output_type -> ExamineResp
-	17, // 37: UserCenter.ExamineInfo:output_type -> EntInfoResp
-	22, // 38: UserCenter.GetStatusByCode:output_type -> GetStatusByCodeResp
-	25, // 39: UserCenter.UserAdd:output_type -> UserAddResp
-	4,  // 40: UserCenter.UserUpdate:output_type -> ExamineResp
-	4,  // 41: UserCenter.UserDel:output_type -> ExamineResp
-	29, // 42: UserCenter.WorkDesktopMenuInfo:output_type -> WorkDesktopMenuInfoResp
-	36, // 43: UserCenter.WorkDesktopComprehensive:output_type -> WorkDesktopComprehensiveResp
-	30, // [30:44] is the sub-list for method output_type
-	16, // [16:30] is the sub-list for method input_type
+	37, // 30: UserCenter.WorkDesktopClearUserInfo:input_type -> WorkDesktopClearUserInfoReq
+	1,  // 31: UserCenter.EntAuth:output_type -> EntAuthResp
+	4,  // 32: UserCenter.EntExamine:output_type -> ExamineResp
+	7,  // 33: UserCenter.EntList:output_type -> EntListResp
+	11, // 34: UserCenter.ExamineList:output_type -> ExamineListResp
+	15, // 35: UserCenter.CheckEnt:output_type -> CheckEntResp
+	17, // 36: UserCenter.EntInfo:output_type -> EntInfoResp
+	4,  // 37: UserCenter.EntUpdate:output_type -> ExamineResp
+	17, // 38: UserCenter.ExamineInfo:output_type -> EntInfoResp
+	22, // 39: UserCenter.GetStatusByCode:output_type -> GetStatusByCodeResp
+	25, // 40: UserCenter.UserAdd:output_type -> UserAddResp
+	4,  // 41: UserCenter.UserUpdate:output_type -> ExamineResp
+	4,  // 42: UserCenter.UserDel:output_type -> ExamineResp
+	29, // 43: UserCenter.WorkDesktopMenuInfo:output_type -> WorkDesktopMenuInfoResp
+	36, // 44: UserCenter.WorkDesktopComprehensive:output_type -> WorkDesktopComprehensiveResp
+	36, // 45: UserCenter.WorkDesktopClearUserInfo:output_type -> WorkDesktopComprehensiveResp
+	31, // [31:46] is the sub-list for method output_type
+	16, // [16:31] is the sub-list for method input_type
 	16, // [16:16] is the sub-list for extension type_name
 	16, // [16:16] is the sub-list for extension extendee
 	0,  // [0:16] is the sub-list for field type_name
@@ -3934,6 +4022,18 @@ func file_userCenter_proto_init() {
 				return nil
 			}
 		}
+		file_userCenter_proto_msgTypes[37].Exporter = func(v interface{}, i int) interface{} {
+			switch v := v.(*WorkDesktopClearUserInfoReq); i {
+			case 0:
+				return &v.state
+			case 1:
+				return &v.sizeCache
+			case 2:
+				return &v.unknownFields
+			default:
+				return nil
+			}
+		}
 	}
 	type x struct{}
 	out := protoimpl.TypeBuilder{
@@ -3941,7 +4041,7 @@ func file_userCenter_proto_init() {
 			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
 			RawDescriptor: file_userCenter_proto_rawDesc,
 			NumEnums:      0,
-			NumMessages:   37,
+			NumMessages:   38,
 			NumExtensions: 0,
 			NumServices:   1,
 		},

+ 40 - 2
rpc/pb/userCenter_grpc.pb.go

@@ -48,8 +48,10 @@ type UserCenterClient interface {
 	UserDel(ctx context.Context, in *UserIdReq, opts ...grpc.CallOption) (*ExamineResp, error)
 	//获取菜单树
 	WorkDesktopMenuInfo(ctx context.Context, in *WorkDesktopMenuInfoReq, opts ...grpc.CallOption) (*WorkDesktopMenuInfoResp, error)
-	//菜单选择模式
+	//菜单选择模式||常用功能更新||常用功能列表
 	WorkDesktopComprehensive(ctx context.Context, in *WorkDesktopComprehensiveReq, opts ...grpc.CallOption) (*WorkDesktopComprehensiveResp, error)
+	//手动清除用户功能内存信息
+	WorkDesktopClearUserInfo(ctx context.Context, in *WorkDesktopClearUserInfoReq, opts ...grpc.CallOption) (*WorkDesktopComprehensiveResp, error)
 }
 
 type userCenterClient struct {
@@ -186,6 +188,15 @@ func (c *userCenterClient) WorkDesktopComprehensive(ctx context.Context, in *Wor
 	return out, nil
 }
 
+func (c *userCenterClient) WorkDesktopClearUserInfo(ctx context.Context, in *WorkDesktopClearUserInfoReq, opts ...grpc.CallOption) (*WorkDesktopComprehensiveResp, error) {
+	out := new(WorkDesktopComprehensiveResp)
+	err := c.cc.Invoke(ctx, "/UserCenter/WorkDesktopClearUserInfo", in, out, opts...)
+	if err != nil {
+		return nil, err
+	}
+	return out, nil
+}
+
 // UserCenterServer is the server API for UserCenter service.
 // All implementations must embed UnimplementedUserCenterServer
 // for forward compatibility
@@ -216,8 +227,10 @@ type UserCenterServer interface {
 	UserDel(context.Context, *UserIdReq) (*ExamineResp, error)
 	//获取菜单树
 	WorkDesktopMenuInfo(context.Context, *WorkDesktopMenuInfoReq) (*WorkDesktopMenuInfoResp, error)
-	//菜单选择模式
+	//菜单选择模式||常用功能更新||常用功能列表
 	WorkDesktopComprehensive(context.Context, *WorkDesktopComprehensiveReq) (*WorkDesktopComprehensiveResp, error)
+	//手动清除用户功能内存信息
+	WorkDesktopClearUserInfo(context.Context, *WorkDesktopClearUserInfoReq) (*WorkDesktopComprehensiveResp, error)
 	mustEmbedUnimplementedUserCenterServer()
 }
 
@@ -267,6 +280,9 @@ func (UnimplementedUserCenterServer) WorkDesktopMenuInfo(context.Context, *WorkD
 func (UnimplementedUserCenterServer) WorkDesktopComprehensive(context.Context, *WorkDesktopComprehensiveReq) (*WorkDesktopComprehensiveResp, error) {
 	return nil, status.Errorf(codes.Unimplemented, "method WorkDesktopComprehensive not implemented")
 }
+func (UnimplementedUserCenterServer) WorkDesktopClearUserInfo(context.Context, *WorkDesktopClearUserInfoReq) (*WorkDesktopComprehensiveResp, error) {
+	return nil, status.Errorf(codes.Unimplemented, "method WorkDesktopClearUserInfo not implemented")
+}
 func (UnimplementedUserCenterServer) mustEmbedUnimplementedUserCenterServer() {}
 
 // UnsafeUserCenterServer may be embedded to opt out of forward compatibility for this service.
@@ -532,6 +548,24 @@ func _UserCenter_WorkDesktopComprehensive_Handler(srv interface{}, ctx context.C
 	return interceptor(ctx, in, info, handler)
 }
 
+func _UserCenter_WorkDesktopClearUserInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+	in := new(WorkDesktopClearUserInfoReq)
+	if err := dec(in); err != nil {
+		return nil, err
+	}
+	if interceptor == nil {
+		return srv.(UserCenterServer).WorkDesktopClearUserInfo(ctx, in)
+	}
+	info := &grpc.UnaryServerInfo{
+		Server:     srv,
+		FullMethod: "/UserCenter/WorkDesktopClearUserInfo",
+	}
+	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+		return srv.(UserCenterServer).WorkDesktopClearUserInfo(ctx, req.(*WorkDesktopClearUserInfoReq))
+	}
+	return interceptor(ctx, in, info, handler)
+}
+
 // UserCenter_ServiceDesc is the grpc.ServiceDesc for UserCenter service.
 // It's only intended for direct use with grpc.RegisterService,
 // and not to be introspected or modified (even as a copy)
@@ -595,6 +629,10 @@ var UserCenter_ServiceDesc = grpc.ServiceDesc{
 			MethodName: "WorkDesktopComprehensive",
 			Handler:    _UserCenter_WorkDesktopComprehensive_Handler,
 		},
+		{
+			MethodName: "WorkDesktopClearUserInfo",
+			Handler:    _UserCenter_WorkDesktopClearUserInfo_Handler,
+		},
 	},
 	Streams:  []grpc.StreamDesc{},
 	Metadata: "userCenter.proto",

+ 9 - 0
rpc/userCenter.proto

@@ -314,6 +314,13 @@ message WorkDesktopComprehensiveResp{
   string  error_msg = 2;
   repeated ThreeLevelMenu data = 3;
 }
+//清除用户功能相关内存信息
+message  WorkDesktopClearUserInfoReq{
+  string userId = 1;
+  string appId = 2;
+  string platform = 3;
+  string userIds = 4;
+}
 
 service UserCenter {
   //企业认证
@@ -345,4 +352,6 @@ service UserCenter {
   rpc WorkDesktopMenuInfo (WorkDesktopMenuInfoReq) returns (WorkDesktopMenuInfoResp);
   //菜单选择模式||常用功能更新||常用功能列表
   rpc WorkDesktopComprehensive (WorkDesktopComprehensiveReq) returns (WorkDesktopComprehensiveResp);
+  //手动清除用户功能内存信息
+  rpc WorkDesktopClearUserInfo (WorkDesktopClearUserInfoReq) returns (WorkDesktopComprehensiveResp);
 }

+ 11 - 2
rpc/usercenter/usercenter.go

@@ -46,6 +46,7 @@ type (
 	UserAddResp                  = pb.UserAddResp
 	UserAdds                     = pb.UserAdds
 	UserIdReq                    = pb.UserIdReq
+	WorkDesktopClearUserInfoReq  = pb.WorkDesktopClearUserInfoReq
 	WorkDesktopComprehensiveReq  = pb.WorkDesktopComprehensiveReq
 	WorkDesktopComprehensiveResp = pb.WorkDesktopComprehensiveResp
 	WorkDesktopMenuInfoReq       = pb.WorkDesktopMenuInfoReq
@@ -78,8 +79,10 @@ type (
 		UserDel(ctx context.Context, in *UserIdReq, opts ...grpc.CallOption) (*ExamineResp, error)
 		// 获取菜单树
 		WorkDesktopMenuInfo(ctx context.Context, in *WorkDesktopMenuInfoReq, opts ...grpc.CallOption) (*WorkDesktopMenuInfoResp, error)
-		// 菜单选择模式
+		// 菜单选择模式||常用功能更新||常用功能列表
 		WorkDesktopComprehensive(ctx context.Context, in *WorkDesktopComprehensiveReq, opts ...grpc.CallOption) (*WorkDesktopComprehensiveResp, error)
+		// 手动清除用户功能内存信息
+		WorkDesktopClearUserInfo(ctx context.Context, in *WorkDesktopClearUserInfoReq, opts ...grpc.CallOption) (*WorkDesktopComprehensiveResp, error)
 	}
 
 	defaultUserCenter struct {
@@ -171,8 +174,14 @@ func (m *defaultUserCenter) WorkDesktopMenuInfo(ctx context.Context, in *WorkDes
 	return client.WorkDesktopMenuInfo(ctx, in, opts...)
 }
 
-// 菜单选择模式
+// 菜单选择模式||常用功能更新||常用功能列表
 func (m *defaultUserCenter) WorkDesktopComprehensive(ctx context.Context, in *WorkDesktopComprehensiveReq, opts ...grpc.CallOption) (*WorkDesktopComprehensiveResp, error) {
 	client := pb.NewUserCenterClient(m.cli.Conn())
 	return client.WorkDesktopComprehensive(ctx, in, opts...)
 }
+
+// 手动清除用户功能内存信息
+func (m *defaultUserCenter) WorkDesktopClearUserInfo(ctx context.Context, in *WorkDesktopClearUserInfoReq, opts ...grpc.CallOption) (*WorkDesktopComprehensiveResp, error) {
+	client := pb.NewUserCenterClient(m.cli.Conn())
+	return client.WorkDesktopClearUserInfo(ctx, in, opts...)
+}