message

package
v0.0.0-...-4e1c0da Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

func Delete(context *common.Context)

Delete godoc

@Summary      Delete message record
@Id           deleteMessageById
@Tags         Message
@Description  Delete message record with id
@Param        user_secret  path  string  true  "Secret of user"
@Param        id           path  string  true  "ID of message"
@Produce      json
@Success      200  {object}  common.Response[bool]
@Failure      401  {object}  common.UnauthorizedResponse
@Router       /{user_secret}/message/{id} [delete]

func Get

func Get(context *common.Context)

Get godoc

@Summary      Get message record detail
@Id           getMessageById
@Tags         Message
@Description  Get message record detail of a message
@Param        user_secret  path  string  true  "Secret of user"
@Param        id           path  string  true  "ID of message"
@Produce      json
@Success      200  {object}  common.Response[models.Message]
@Failure      400  {object}  common.BadRequestResponse
@Failure      401  {object}  common.UnauthorizedResponse
@Failure      404  {object}  common.NotFoundResponse
@Router       /{user_secret}/message/{id} [get]

Types

This section is empty.

Jump to

Keyboard shortcuts

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