瀏覽代碼

feat:状态

wangshan 2 年之前
父節點
當前提交
5c5be55edb
共有 4 個文件被更改,包括 4 次插入4 次删除
  1. 1 1
      api/internal/types/types.go
  2. 1 1
      api/userCenter.api
  3. 1 1
      rpc/etc/usercenter.yaml
  4. 1 1
      service/workDesktop.go

+ 1 - 1
api/internal/types/types.go

@@ -240,7 +240,7 @@ type WorkDesktopMenuInfoReq struct {
 	NewUserId  string `header:"newUserId"` //base_user_id<---base_user
 	EntId      int64  `header:"entId,optional"`
 	EntUserId  int64  `header:"entUserId,optional"`
-	WorkStatus int64  `header:"workStatus,optional"`
+	WorkStatus int64  `json:"workStatus,optional"`
 }
 
 type WorkDesktopComprehensiveReq struct {

+ 1 - 1
api/userCenter.api

@@ -254,7 +254,7 @@ type (
 		NewUserId  string `header:"newUserId"` //base_user_id<---base_user
 		EntId      int64  `header:"entId,optional"`
 		EntUserId  int64  `header:"entUserId,optional"`
-		WorkStatus int64  `header:"workStatus,optional"`
+		WorkStatus int64  `json:"workStatus,optional"`
 	}
 	//工作桌面-- 菜单模式:全部/可用选择记录
 	//工作桌面--常用功能更新

+ 1 - 1
rpc/etc/usercenter.yaml

@@ -77,5 +77,5 @@ DefaultPopup:
     title: 提示信息
     content: 请前往电脑端使用
     confirmText: 知道了
-WorkTableOut: work_menu
+WorkTableOut: work_menu_new
 WorkTableInside: work_menu_new

+ 1 - 1
service/workDesktop.go

@@ -223,7 +223,7 @@ func GetWordDesktopMenuTree(in *WorkDesktopMenuInfoReq) ([]*pb.MenuList, error)
 	RedisMenuKey := fmt.Sprintf(entity.RedisMenuKey, in.AppId, in.Platform, in.UserId)
 	logx.Info("RedisMenuKey:", RedisMenuKey)
 	menuBytes, err := redis.GetBytes(entity.RedisCode, RedisMenuKey)
-	if err == nil && len(*menuBytes) > 0 {
+	if in.WorkStatus == 0 && err == nil && len(*menuBytes) > 0 {
 		if json.Unmarshal(*menuBytes, &menuList) == nil {
 			return menuList, nil
 		}