jimmyyem 5 ماه پیش
والد
کامیت
61eb3de9e7

+ 0 - 1
desc/wechat/employee.api

@@ -64,7 +64,6 @@ type (
 		AiInfo  *string `json:"aiInfo,optional"`
 
 		ShowChat *bool `json:"showChat,optional"`
-		ShowAi *bool `json:"showAi,optional"`
 		IsVip *bool `json:"isVip,optional"`
     }
 

+ 1 - 5
internal/logic/employee/get_api_employee_detail_logic.go

@@ -33,13 +33,10 @@ func (l *GetApiEmployeeDetailLogic) GetApiEmployeeDetail(req *types.IDReq) (*typ
 	}
 
 	// 是否显示聊天,是否显示Ai连线,是否显示VIP
-	var showChat, showAi, isVip bool
+	var showChat, isVip bool
 	if data.APIKey != "" && data.APIBase != "" {
 		showChat = true
 	}
-	if data.AiInfo != "" {
-		showAi = true
-	}
 	if data.IsVip != 0 {
 		isVip = true
 	}
@@ -70,7 +67,6 @@ func (l *GetApiEmployeeDetailLogic) GetApiEmployeeDetail(req *types.IDReq) (*typ
 			VideoUrl:         &data.VideoURL,
 			CategoryId:       &data.CategoryID,
 			ShowChat:         &showChat,
-			ShowAi:           &showAi,
 			IsVip:            &isVip,
 		},
 	}, nil

+ 1 - 5
internal/logic/employee/get_api_employee_list_logic.go

@@ -43,13 +43,10 @@ func (l *GetApiEmployeeListLogic) GetApiEmployeeList(req *types.EmployeeListReq)
 	resp.Data.Total = data.PageDetails.Total
 
 	for _, v := range data.List {
-		var showChat, showAi, isVip bool
+		var showChat, isVip bool
 		if v.APIKey != "" && v.APIBase != "" {
 			showChat = true
 		}
-		if v.AiInfo != "" {
-			showAi = true
-		}
 		if v.IsVip != 0 {
 			isVip = true
 		}
@@ -76,7 +73,6 @@ func (l *GetApiEmployeeListLogic) GetApiEmployeeList(req *types.EmployeeListReq)
 				VideoUrl:         &v.VideoURL,
 				CategoryId:       &v.CategoryID,
 				ShowChat:         &showChat,
-				ShowAi:           &showAi,
 				IsVip:            &isVip,
 			})
 	}

+ 0 - 1
internal/types/types.go

@@ -1787,7 +1787,6 @@ type EmployeeInfo struct {
 	// AI信息
 	AiInfo   *string `json:"aiInfo,optional"`
 	ShowChat *bool   `json:"showChat,optional"`
-	ShowAi   *bool   `json:"showAi,optional"`
 	IsVip    *bool   `json:"isVip,optional"`
 }