...
|
...
|
@@ -322,6 +322,10 @@ func GetAuditList(param protocol.RequestAuditList, companyid int64, userid int64 |
|
|
return returnData, nil
|
|
|
}
|
|
|
|
|
|
type ChanceSelfCheckData struct {
|
|
|
Title string `json:"title"`
|
|
|
Result string `json:"result"`
|
|
|
}
|
|
|
type ResponseChanceInfo struct {
|
|
|
CreateTime string `json:"create_time"`
|
|
|
UserName string `json:"user_name"`
|
...
|
...
|
@@ -333,6 +337,7 @@ type ResponseChanceInfo struct { |
|
|
VideoData []models.ChanceDataVideos `json:"video_data"`
|
|
|
SpeechData []models.ChanceDataSpeechs `json:"speech_data"`
|
|
|
FlowLog []protocol.ChanceFlowLog `json:"flow_log"`
|
|
|
SelfCheck []ChanceSelfCheckData `json:"self_check"`
|
|
|
}
|
|
|
|
|
|
//机会详情
|
...
|
...
|
@@ -416,7 +421,7 @@ func GetChanceDetail(chanceid int64, companyid int64) (ResponseChanceInfo, error |
|
|
log.Warn("获取获取记录失败")
|
|
|
}
|
|
|
returnData.FlowLog = flowlogs
|
|
|
|
|
|
returnData.SelfCheck = getChanceSelfChecks(chanceid)
|
|
|
return returnData, nil
|
|
|
}
|
|
|
|
...
|
...
|
@@ -439,6 +444,11 @@ func getAuditFlowLog(chanceid int64) ([]protocol.ChanceFlowLog, error) { |
|
|
return flowLogs, err
|
|
|
}
|
|
|
|
|
|
func getChanceSelfChecks(chanceId int64) []ChanceSelfCheckData {
|
|
|
selfchecks := []ChanceSelfCheckData{}
|
|
|
return selfchecks
|
|
|
}
|
|
|
|
|
|
func AllowChanceEnableStatus(chanceid int64, companyid int64) error {
|
|
|
var (
|
|
|
err error
|
...
|
...
|
|