handlers

package
v0.0.0-...-702fcad Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2021 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateVoteHandle

func CreateVoteHandle(c *fiber.Ctx) error

CreateVoteHandle handle create a new vote

func DeleteVoteByPostIdHandle

func DeleteVoteByPostIdHandle(c *fiber.Ctx) error

DeleteVoteByPostIdHandle handle delete a Vote but postId

func DeleteVoteHandle

func DeleteVoteHandle(c *fiber.Ctx) error

DeleteVoteHandle handle delete a Vote

func GetVoteHandle

func GetVoteHandle(c *fiber.Ctx) error

GetVoteHandle handle get a vote

func GetVotesByPostIdHandle

func GetVotesByPostIdHandle(c *fiber.Ctx) error

GetVotesByPostIdHandle handle query on vote

func UpdateVoteHandle

func UpdateVoteHandle(c *fiber.Ctx) error

UpdateVoteHandle handle create a new vote

Types

type PostModelNotification

type PostModelNotification struct {
	ObjectId         uuid.UUID `json:"objectId"`
	OwnerUserId      uuid.UUID `json:"ownerUserId"`
	OwnerDisplayName string    `json:"ownerDisplayName"`
	OwnerAvatar      string    `json:"ownerAvatar"`
	URLKey           string    `json:"urlKey"`
}

type ResultAsync

type ResultAsync struct {
	Result []byte
	Error  error
}

type UserInfoInReq

type UserInfoInReq struct {
	UserId      uuid.UUID `json:"uid"`
	Username    string    `json:"email"`
	DisplayName string    `json:"displayName"`
	SocialName  string    `json:"socialName"`
	Avatar      string    `json:"avatar"`
	Banner      string    `json:"banner"`
	TagLine     string    `json:"tagLine"`
	SystemRole  string    `json:"role"`
	CreatedDate int64     `json:"createdDate"`
}

type VoteQueryModel

type VoteQueryModel struct {
	Page   int64     `query:"page"`
	PostId uuid.UUID `query:"postId"`
}

Jump to

Keyboard shortcuts

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