Skip to content

Commit 7c1b7b9

Browse files
committed
fix:回滚部分删除内容
1 parent e6ca8c5 commit 7c1b7b9

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed
+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
package baseResponse
2+
3+
type Video struct {
4+
Id int64 `json:"id"`
5+
User User `json:"user"`
6+
PlayUrl string `json:"playUrl"`
7+
CoverUrl string `json:"coverUrl"`
8+
FavoriteCount int64 `json:"favoriteCount"`
9+
CommentCount int64 `json:"commentCount"`
10+
IsFavorite bool `json:"isFavorite"`
11+
Title string `json:"title"`
12+
}
13+
14+
type User struct {
15+
Id int64 `json:"id"`
16+
Name string `json:"name"`
17+
FollowCount int64 `json:"followCount"`
18+
FollowerCount int64 `json:"followerCount"`
19+
IsFollow bool `json:"isFollow"`
20+
}
21+
22+
type VideoArray []Video

server/video-center/cache/videoCache.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"fmt"
66
"github.com/go-redis/redis/v8"
77
"time"
8-
"video-center/Web/pkg/baseResponse"
8+
"video-center/baseResponse"
99
"video-center/dao"
1010
)
1111

0 commit comments

Comments
 (0)