handlers

package
v0.0.0-...-3c40ba8 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2022 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateCommentHandle

func CreateCommentHandle(c *fiber.Ctx) error

CreateCommentHandle handle create a new comment

func DeleteCommentByPostIdHandle

func DeleteCommentByPostIdHandle(c *fiber.Ctx) error

DeleteCommentByPostIdHandle handle delete a Comment but postId

func DeleteCommentHandle

func DeleteCommentHandle(c *fiber.Ctx) error

DeleteCommentHandle handle delete a Comment

func GetCommentHandle

func GetCommentHandle(c *fiber.Ctx) error

GetCommentHandle handle get a comment

func GetCommentsByPostIdHandle

func GetCommentsByPostIdHandle(c *fiber.Ctx) error

GetCommentsByPostIdHandle handle query on comment

func QueryCommentHandle

func QueryCommentHandle(c *fiber.Ctx) error

QueryCommentHandle handle query on comment

func UpdateCommentHandle

func UpdateCommentHandle(c *fiber.Ctx) error

UpdateCommentHandle handle create a new comment

func UpdateCommentProfileHandle

func UpdateCommentProfileHandle(c *fiber.Ctx) error

UpdateCommentProfileHandle handle create a new post

Types

type CommentQueryByPostIdModel

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

type CommentQueryModel

type CommentQueryModel struct {
	Search string    `query:"search"`
	Page   int64     `query:"page"`
	Owner  uuid.UUID `query:"owner"`
	Type   int       `query:"type"`
}

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"`
}

Jump to

Keyboard shortcuts

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