likingService

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: 10 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateLiking

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

CreateLiking create a liking.

func DeleteLiking

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

DeleteLiking deletes liking.

func RetrieveLiked

func RetrieveLiked(item interface{}, currentPages ...int) model.LikedList

RetrieveLiked retrieves liked.

func RetrieveLikings

func RetrieveLikings(item interface{}, currentUserId uint, currentPages ...int) model.LikingList

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