|
@@ -322,6 +322,10 @@ func GetAuditList(param protocol.RequestAuditList, companyid int64, userid int64 |
|
@@ -322,6 +322,10 @@ func GetAuditList(param protocol.RequestAuditList, companyid int64, userid int64 |
322
|
return returnData, nil
|
322
|
return returnData, nil
|
323
|
}
|
323
|
}
|
324
|
|
324
|
|
|
|
325
|
+type ChanceSelfCheckData struct {
|
|
|
326
|
+ Title string `json:"title"`
|
|
|
327
|
+ Result string `json:"result"`
|
|
|
328
|
+}
|
325
|
type ResponseChanceInfo struct {
|
329
|
type ResponseChanceInfo struct {
|
326
|
CreateTime string `json:"create_time"`
|
330
|
CreateTime string `json:"create_time"`
|
327
|
UserName string `json:"user_name"`
|
331
|
UserName string `json:"user_name"`
|
|
@@ -333,6 +337,7 @@ type ResponseChanceInfo struct { |
|
@@ -333,6 +337,7 @@ type ResponseChanceInfo struct { |
333
|
VideoData []models.ChanceDataVideos `json:"video_data"`
|
337
|
VideoData []models.ChanceDataVideos `json:"video_data"`
|
334
|
SpeechData []models.ChanceDataSpeechs `json:"speech_data"`
|
338
|
SpeechData []models.ChanceDataSpeechs `json:"speech_data"`
|
335
|
FlowLog []protocol.ChanceFlowLog `json:"flow_log"`
|
339
|
FlowLog []protocol.ChanceFlowLog `json:"flow_log"`
|
|
|
340
|
+ SelfCheck []ChanceSelfCheckData `json:"self_check"`
|
336
|
}
|
341
|
}
|
337
|
|
342
|
|
338
|
//机会详情
|
343
|
//机会详情
|
|
@@ -416,7 +421,7 @@ func GetChanceDetail(chanceid int64, companyid int64) (ResponseChanceInfo, error |
|
@@ -416,7 +421,7 @@ func GetChanceDetail(chanceid int64, companyid int64) (ResponseChanceInfo, error |
416
|
log.Warn("获取获取记录失败")
|
421
|
log.Warn("获取获取记录失败")
|
417
|
}
|
422
|
}
|
418
|
returnData.FlowLog = flowlogs
|
423
|
returnData.FlowLog = flowlogs
|
419
|
-
|
424
|
+ returnData.SelfCheck = getChanceSelfChecks(chanceid)
|
420
|
return returnData, nil
|
425
|
return returnData, nil
|
421
|
}
|
426
|
}
|
422
|
|
427
|
|
|
@@ -439,6 +444,11 @@ func getAuditFlowLog(chanceid int64) ([]protocol.ChanceFlowLog, error) { |
|
@@ -439,6 +444,11 @@ func getAuditFlowLog(chanceid int64) ([]protocol.ChanceFlowLog, error) { |
439
|
return flowLogs, err
|
444
|
return flowLogs, err
|
440
|
}
|
445
|
}
|
441
|
|
446
|
|
|
|
447
|
+func getChanceSelfChecks(chanceId int64) []ChanceSelfCheckData {
|
|
|
448
|
+ selfchecks := []ChanceSelfCheckData{}
|
|
|
449
|
+ return selfchecks
|
|
|
450
|
+}
|
|
|
451
|
+
|
442
|
func AllowChanceEnableStatus(chanceid int64, companyid int64) error {
|
452
|
func AllowChanceEnableStatus(chanceid int64, companyid int64) error {
|
443
|
var (
|
453
|
var (
|
444
|
err error
|
454
|
err error
|