Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Send ¶
Send godoc
@Summary Send notification @Id sendMessage @Tags Message @Description Send notification to user_id @Param user_secret path string true "Secret of user" @Param title formData string false "Message Title" default(Notification) @Param content formData string true "Message Content" @Param long formData string false "Long Message Content (optional)" @Param priority formData enum.Priority false "The priority of message" default(normal) @Produce json @Success 200 {object} common.Response[models.Message] @Failure 400 {object} common.BadRequestResponse @Failure 401 {object} common.UnauthorizedResponse @Router /{user_secret}/send [post]
func Short ¶
Short godoc
@Summary Send notification @Id sendMessageLite @Tags Message @Description Send notification to user_id @Param user_secret path string true "Secret of user" @Param string body string true "Message Content" @Accept plain @Produce json @Success 200 {object} common.Response[models.Message] @Failure 400 {object} common.BadRequestResponse @Failure 401 {object} common.UnauthorizedResponse @Router /{user_secret} [post]
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.