Documentation ¶
Overview ¶
Copyright 2019-2020 Axetroy. All rights reserved. MIT license.
Copyright 2019-2020 Axetroy. All rights reserved. MIT license.
Copyright 2019-2020 Axetroy. All rights reserved. MIT license.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var GetNotificationListByUserRouter = router.Handler(func(c router.Context) { var input Query c.ResponseFunc(c.ShouldBindQuery(&input), func() schema.Response { return GetNotificationListByUser(helper.NewContext(&c), input) }) })
GetListRouter get list router
View Source
var GetRouter = router.Handler(func(c router.Context) { id := c.Param("id") c.ResponseFunc(nil, func() schema.Response { return Get(helper.NewContext(&c), id) }) })
GetRouter get notification detail router
View Source
var ReadRouter = router.Handler(func(c router.Context) { notificationID := c.Param("id") c.ResponseFunc(nil, func() schema.Response { return MarkRead(helper.NewContext(&c), notificationID) }) })
ReadRouter read this notification router
Functions ¶
func GetNotificationListByUser ¶
GetList get notification list
Types ¶
Click to show internal directories.
Click to hide internal directories.