|
@@ -48,6 +48,16 @@ func (l *GetUsageDetailListLogic) GetUsageDetailList(req *types.UsageDetailListR
|
|
|
resp.Data.Total = data.PageDetails.Total
|
|
|
|
|
|
for _, v := range data.List {
|
|
|
+ app := "未知"
|
|
|
+ if v.App == 1 {
|
|
|
+ app = "智能回复"
|
|
|
+ } else if v.App == 2 {
|
|
|
+ app = "AI角色-优化问题"
|
|
|
+ } else if v.App == 3 {
|
|
|
+ app = "AI角色-回复"
|
|
|
+ } else if v.App == 4 {
|
|
|
+ app = "SOP-节点判断"
|
|
|
+ }
|
|
|
request := v.Request
|
|
|
if v.App == 2 {
|
|
|
request = "问题优化"
|
|
@@ -64,7 +74,8 @@ func (l *GetUsageDetailListLogic) GetUsageDetailList(req *types.UsageDetailListR
|
|
|
Status: &v.Status,
|
|
|
Type: &v.Type,
|
|
|
BotId: &v.BotID,
|
|
|
- App: &v.App,
|
|
|
+ ReceiverId: &v.ReceiverID,
|
|
|
+ App: &app,
|
|
|
SessionId: &v.SessionID,
|
|
|
Request: &request,
|
|
|
Response: &v.Response,
|