|
@@ -35,6 +35,7 @@ type RecordCount struct {
|
|
|
UserId int
|
|
|
Mobile string
|
|
|
MediaId int
|
|
|
+ MediaName string
|
|
|
TraceId string
|
|
|
MediaType string
|
|
|
IpAddress string
|
|
@@ -53,13 +54,14 @@ func convertToMediaCountDTO(record RecordCount) (dto userService.RecordCountDTO)
|
|
|
}
|
|
|
|
|
|
func CountMedia(count RecordCount) (traceId string, err error) {
|
|
|
- meida, err := mediaService.GetMediaById(count.MediaType, count.MediaId)
|
|
|
+ media, err := mediaService.GetMediaById(count.MediaType, count.MediaId)
|
|
|
if err != nil {
|
|
|
err = exception.New(exception.MediaFoundFailed)
|
|
|
return
|
|
|
}
|
|
|
dto := convertToMediaCountDTO(count)
|
|
|
- return userService.CountMedia(dto, meida.MediaType)
|
|
|
+ dto.SourceTitle = media.MediaName
|
|
|
+ return userService.CountMedia(dto, media.MediaType)
|
|
|
}
|
|
|
|
|
|
func RangeSearchByAnalyst(mediaType string, analystId int, userId int) (total int64, latestId int64, ids []int, mappingRiskLevel string) {
|