feat: 添加了social的关注功能

This commit is contained in:
Leon
2025-12-19 19:03:42 +08:00
parent 7e97fc5026
commit d2f40acf4d
6 changed files with 340 additions and 1 deletions

33
internal/social/entity.go Normal file
View File

@@ -0,0 +1,33 @@
package social
import "feedsystem_video_go/internal/account"
type Social struct {
ID uint `gorm:"primaryKey"`
FollowerID uint `gorm:"index"`
VloggerID uint `gorm:"index"`
}
type FollowRequest struct {
VloggerID uint `json:"vlogger_id"`
}
type UnfollowRequest struct {
VloggerID uint `json:"vlogger_id"`
}
type GetAllFollowersRequest struct {
VloggerID uint `json:"vlogger_id"`
}
type GetAllFollowersResponse struct {
Followers []*account.Account `json:"followers"`
}
type GetAllVloggersRequest struct {
FollowerID uint `json:"follower_id"`
}
type GetAllVloggersResponse struct {
Vloggers []*account.Account `json:"vloggers"`
}