File tree 2 files changed +23
-1
lines changed
2 files changed +23
-1
lines changed Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change 5
5
"fmt"
6
6
"github.com/go-redis/redis/v8"
7
7
"time"
8
- "video-center/Web/pkg/ baseResponse"
8
+ "video-center/baseResponse"
9
9
"video-center/dao"
10
10
)
11
11
You can’t perform that action at this time.
0 commit comments