fix: change statistic birthday type to int64

pull/386/head
jakezhu9 1 year ago
parent 11c98b2745
commit 0d1c8d0e77
No known key found for this signature in database
GPG Key ID: 03F747222842F1D9

@ -19,8 +19,8 @@ var (
}
BirthDay = Property{
KeyValue: "birthday",
DefaultValue: int(0),
Kind: reflect.Int,
DefaultValue: int64(0),
Kind: reflect.Int64,
}
DefaultMenuTeam = Property{
KeyValue: "default_menu_team",

@ -113,8 +113,8 @@ func (s statisticServiceImpl) Statistic(ctx context.Context) (*dto.Statistic, er
statistic.LinkCount = linkCount
statistic.VisitCount = postVisitCount + sheetVisitCount
statistic.LikeCount = postLikeCount + sheetLikeCount
statistic.Birthday = int64(birthday.(int))
statistic.EstablishDays = (time.Now().UnixMilli() - int64(birthday.(int))) / (1000 * 24 * 3600)
statistic.Birthday = birthday.(int64)
statistic.EstablishDays = (time.Now().UnixMilli() - birthday.(int64)) / (1000 * 24 * 3600)
return &statistic, nil
}

Loading…
Cancel
Save