Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ListNotificationRequest ¶
type ListNotificationRequest struct { // 是否只列出未读的消息 // // required: true // min: 1 NotificationType int `json:"notificationType"` // // 分页 *basichandlers.PaginationRequest }
ListNotificationRequest model swagger:model ListNotificationRequest
type MarkNotificationRequest ¶
type MarkNotificationRequest struct { // id列表 // // required: true // min: 1 NotificationID []int `json:"notificationID"` // 标记为已读或者未读,默认为0,即标记为已读 // // required: true // min: 1 Unread int `json:"unread"` }
MarkNotificationRequest model swagger:model MarkNotificationRequest
type NotificationHandlers ¶
type NotificationHandlers struct {
*basichandlers.Basic
}
NotificationHandlers defined for moment apis
func (*NotificationHandlers) List ¶
func (n *NotificationHandlers) List() gin.HandlerFunc
List notifications @Tags 通知 @Description 通知分页 @Accept json @Produce json @Param Authorization header string true "Authentication header" @Param ListNotificationRequest body notificationhandlers.ListNotificationRequest true "通知分页" @Success 200 "{"code":200,"data":{},"message":"操作成功"}" @Router /notifications/list [post]
func (*NotificationHandlers) Mark ¶
func (n *NotificationHandlers) Mark() gin.HandlerFunc
Mark notifications @Tags 通知 @Description 标记通知 @Accept json @Produce json @Param Authorization header string true "Authentication header" @Param MarkNotificationRequest body notificationhandlers.MarkNotificationRequest true "标记通知" @Success 200 "{"code":200,"data":{},"message":"操作成功"}" @Router /notifications/mark [post]
func (*NotificationHandlers) Remove ¶
func (n *NotificationHandlers) Remove() gin.HandlerFunc
Remove notification @Tags 通知 @Description 删除通知 @Accept json @Produce json @Param Authorization header string true "Authentication header" @Param RemoveNotificationRequest body notificationhandlers.RemoveNotificationRequest true "删除通知" @Success 200 "{"code":200,"data":{},"message":"操作成功"}" @Router /notifications/remove [post]
type RemoveNotificationRequest ¶
type RemoveNotificationRequest struct { // 通知ID // // required: true // min: 1 NotificationID uint `json:"notificationID"` }
RemoveNotificationRequest model swagger:model RemoveNotificationRequest