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