Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterRouter ¶
func RegisterRouter(g *gin.RouterGroup)
Types ¶
type Handler ¶
type Handler struct {
}
func (*Handler) Delete ¶
func (*Handler) Delete() gin.HandlerFunc
func (*Handler) List ¶
func (*Handler) List() gin.HandlerFunc
func (*Handler) MarkRead ¶
func (*Handler) MarkRead() gin.HandlerFunc
func (*Handler) New ¶
func (*Handler) New() gin.HandlerFunc
type RNotification ¶
type RNotification struct {
ID uint `json:"id"`
UserID uint `json:"user_id"`
Content string `json:"content"`
IsRead bool `json:"is_read"`
CreateTime time.Time `json:"create_time"`
}
func BindList ¶
func BindList(notifications []cpt.Notification) []*RNotification
func BindNotification ¶
func BindNotification(n *cpt.Notification) *RNotification
type RespList ¶
type RespList struct {
Response
Notifications []*RNotification `json:"notifications"`
}
Click to show internal directories.
Click to hide internal directories.