userLiking

package
v0.0.0-...-dffa276 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 29, 2023 License: MIT Imports: 12 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateLiking

func CreateLiking(c *gin.Context, user interface{}) (int, error)

CreateLiking create a liking to an user.

func CreateLikingOnUser

func CreateLikingOnUser(c *gin.Context) (int, error)

CreateLikingOnUser creates liking on user.

func DeleteLiking

func DeleteLiking(c *gin.Context, inputUser interface{}) (int, error)

DeleteLiking deletes liking of an user.

func DeleteLikingOnUser

func DeleteLikingOnUser(c *gin.Context) (int, error)

DeleteLikingOnUser deletes liking on a user.

func RetrieveLikedOnUser

func RetrieveLikedOnUser(c *gin.Context) ([]model.User, int, bool, bool, int, error)

RetrieveLikedOnUser retrieve liked on a user.

func RetrieveLikingsOnUser

func RetrieveLikingsOnUser(c *gin.Context) ([]model.User, int, bool, bool, int, error)

RetrieveLikingsOnUser retrieves likings on a user.

func UpdateUserLikedCount

func UpdateUserLikedCount(c *gin.Context) (int, error)

UpdateUserLikedCount updates user liked count.

func UpdateUserLikingCount

func UpdateUserLikingCount(user *model.User) (int, error)

UpdateUserLikingCount updates user liking 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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL