travel

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllList

func AllList(c *ctx.Context)

@Summary 所有标记过的城市 @Tags 旅行足迹 @Accept json @Produce json @Success 200 {object} ctx.Response{data=[]allListResp} @Router /travel/all [get]

func Create

func Create(c *ctx.Context)

@Summary 标记地点 @Tags 旅行足迹 @Accept json @Produce json @param payload body createParam true "request payload" @Success 200 {object} ctx.Response{data=db.Travel} @Router /travel [post]

func Delete

func Delete(c *ctx.Context)

@Summary 删除标记 @Tags 旅行足迹 @Accept json @Produce json @param payload body ctx.IDList true "request payload" @Success 200 {object} ctx.Response @Router /travel [delete]

func List

func List(c *ctx.Context)

@Summary 足迹 @Tags 旅行足迹 @Accept json @Produce json @Param page query int false "page" @Param size query int false "size" @Param id[] query uint false "id" @Param created_at[] query string false "created_at" @Success 200 {object} ctx.Response{data=[]db.Travel} @Router /travel [get]

func Router

func Router(e *gin.RouterGroup)

func Update

func Update(c *ctx.Context)

@Summary 更新标记 @Tags 旅行足迹 @Accept json @Produce json @param payload body updateParam true "request payload" @Success 200 {object} ctx.Response{data=db.Travel} @Router /travel [put]

Types

This section is empty.

Jump to

Keyboard shortcuts

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