Documentation ¶
Index ¶
- type Delivery
- type FollowRequest
- type Module
- type Usecase
- func (u Usecase) Follow(leaderID, followerID uint) error
- func (u Usecase) Followers(leaderID uint, offset, limit int) []models.Follow
- func (u Usecase) IsFollow(followerID, leaderID uint) bool
- func (u Usecase) Leaders(followerID uint, offset, limit int) []models.Follow
- func (u Usecase) UnFollow(leaderID, followerID uint) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Delivery ¶
type Delivery struct {
// contains filtered or unexported fields
}
func (Delivery) Follow ¶
@Summary Follow User @Description Follow User @Accept json @Produce json @Tags Follow @Param data body FollowRequest true "data" @Success 200 {object} string @Router /follow/ [post]
func (Delivery) Followers ¶
@Summary Followers list @Description Followers list @Accept json @Produce json @Tags Follow @Param user_id path int true "user_id" @Success 200 {object} []models.Follow @Router /follow/followers/{user_id} [get]
type FollowRequest ¶
type Module ¶
type Module struct { Usecase *Usecase // contains filtered or unexported fields }
func (*Module) SetupRoutes ¶
func (m *Module) SetupRoutes(router *gin.RouterGroup)
Click to show internal directories.
Click to hide internal directories.