...
|
...
|
@@ -28,13 +28,17 @@ type ReviseContentsItemData struct { |
|
|
Type string `json:"type"`
|
|
|
Value string `json:"value"`
|
|
|
Path string `json:"path"`
|
|
|
Cover struct {
|
|
|
Path string `json:"path"`
|
|
|
} `json:"cover"`
|
|
|
Duration int `json:"duration"`
|
|
|
}
|
|
|
|
|
|
type ReviseContentsItem struct {
|
|
|
Content string `json:"content"`
|
|
|
Data []ReviseContentsItemData `json:"data"`
|
|
|
Data []ReviseContentsItemData `json:"data,omitempty"`
|
|
|
InputType string `json:"inputType"`
|
|
|
Lable string `json:"lable "`
|
|
|
Lable string `json:"lable"`
|
|
|
}
|
|
|
|
|
|
type ChanceReviseLogData struct {
|
...
|
...
|
@@ -76,5 +80,10 @@ func GetChanceReviseLogData(flowLogId int64) (*ChanceReviseLog, *ChanceReviseLog |
|
|
Videos: make([]ChanceDataVideos, 0),
|
|
|
}
|
|
|
json.Unmarshal([]byte(reviseLog.Data), reviseLogData)
|
|
|
for i := range reviseLogData.ReviseContents {
|
|
|
if reviseLogData.ReviseContents[i].InputType == "" {
|
|
|
reviseLogData.ReviseContents[i].InputType = InputTypeText
|
|
|
}
|
|
|
}
|
|
|
return reviseLog, reviseLogData, err
|
|
|
} |
...
|
...
|
|