|
@@ -33,6 +33,7 @@ type ETAReportDTO struct {
|
|
|
}
|
|
|
|
|
|
type ReportChapterDTO struct {
|
|
|
+ Title string `json:"title"`
|
|
|
Content string `json:"content"`
|
|
|
VideoURL string `json:"videoURL"`
|
|
|
VideoName string `json:"videoName"`
|
|
@@ -140,6 +141,7 @@ func convertToETAReportDTO(report eta.ETAReport) (dto ETAReportDTO) {
|
|
|
func convertToReportChapterDTO(chapters []eta.ReportChapter) (dtoList []ReportChapterDTO) {
|
|
|
for _, chapter := range chapters {
|
|
|
dto := ReportChapterDTO{
|
|
|
+ Title: chapter.Title,
|
|
|
Content: html.UnescapeString(chapter.Content),
|
|
|
VideoURL: chapter.VideoURL,
|
|
|
VideoName: chapter.VideoName,
|