post

package
v0.0.0-...-830fbbb Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Detail

func Detail(ctx *gin.Context)

Detail - get post and replies @Tags Post @Summary get post and replies @Accept json @Produce json @Param uuid path string true "post's uuid" @Param size query uint false "specify list size" @Param from query string false "specify list from" @Success 200 {array} model.Post @Router /post/{uuid} [get]

func Index

func Index(ctx *gin.Context)

Index - list all posts with topic ID @Tags Post @Summary list all posts with topic ID @Accept json @Produce json @Param topic query string true "post's topic" @Param size query uint false "specify list size" @Param from query string false "specify list from" @Success 200 {array} model.Post @Router /post [get]

func More

func More(ctx *gin.Context)

More - get reply posts of the post @Tags Post @Summary get reply posts @Accept json @Produce json @Param uuid path string false "get reply posts" @Param size query uint false "specify list size" @Param from query string false "specify list from" @Success 200 {array} model.Post @Router /post/{uuid}/more [get]

Types

This section is empty.

Jump to

Keyboard shortcuts

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