Documentation ¶
Index ¶
- func CreateLiking(c *gin.Context, user interface{}) (int, error)
- func CreateLikingOnUser(c *gin.Context) (int, error)
- func DeleteLiking(c *gin.Context, inputUser interface{}) (int, error)
- func DeleteLikingOnUser(c *gin.Context) (int, error)
- func RetrieveLikedOnUser(c *gin.Context) ([]model.User, int, bool, bool, int, error)
- func RetrieveLikingsOnUser(c *gin.Context) ([]model.User, int, bool, bool, int, error)
- func UpdateUserLikedCount(c *gin.Context) (int, error)
- func UpdateUserLikingCount(user *model.User) (int, error)
- type CreateLikingForm
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateLiking ¶
CreateLiking create a liking to an user.
func CreateLikingOnUser ¶
CreateLikingOnUser creates liking on user.
func DeleteLiking ¶
DeleteLiking deletes liking of an user.
func DeleteLikingOnUser ¶
DeleteLikingOnUser deletes liking on a user.
func RetrieveLikedOnUser ¶
RetrieveLikedOnUser retrieve liked on a user.
func RetrieveLikingsOnUser ¶
RetrieveLikingsOnUser retrieves likings on a user.
func UpdateUserLikedCount ¶
UpdateUserLikedCount updates user liked count.
Types ¶
type CreateLikingForm ¶
type CreateLikingForm struct { UserId uint `form:"userId" binding:"required"` ParentId uint `form:"parentId" binding:"required"` }
CreateLikingForm is used when creating a liking.
Click to show internal directories.
Click to hide internal directories.