Documentation
¶
Overview ¶
Copyright 2019 Axetroy. All rights reserved. MIT license.
Copyright 2019 Axetroy. All rights reserved. MIT license.
Copyright 2019 Axetroy. All rights reserved. MIT license.
Copyright 2019 Axetroy. All rights reserved. MIT license.
Copyright 2019 Axetroy. All rights reserved. MIT license.
Copyright 2019 Axetroy. All rights reserved. MIT license.
Index ¶
- func Create(context controller.Context, input CreateParams) (res schema.Response)
- func CreateRouter(context *gin.Context)
- func Delete(context controller.Context, notificationId string) (res schema.Response)
- func DeleteNotificationById(id string)
- func DeleteNotificationMarkById(id string)
- func DeleteRouter(context *gin.Context)
- func Get(context controller.Context, id string) (res schema.Response)
- func GetNotificationListByAdmin(context controller.Context, input Query) (res schema.List)
- func GetNotificationListByAdminRouter(context *gin.Context)
- func GetNotificationListByUser(context controller.Context, input Query) (res schema.List)
- func GetNotificationListByUserRouter(context *gin.Context)
- func GetRouter(context *gin.Context)
- func MarkRead(context controller.Context, notificationID string) (res schema.Response)
- func ReadRouter(context *gin.Context)
- func Update(context controller.Context, notificationId string, input UpdateParams) (res schema.Response)
- func UpdateRouter(context *gin.Context)
- type CreateParams
- type Query
- type UpdateParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Create ¶
func Create(context controller.Context, input CreateParams) (res schema.Response)
func CreateRouter ¶
func DeleteNotificationById ¶
func DeleteNotificationById(id string)
func DeleteNotificationMarkById ¶
func DeleteNotificationMarkById(id string)
func DeleteRouter ¶
func Get ¶
func Get(context controller.Context, id string) (res schema.Response)
Get notification detail
func GetNotificationListByAdmin ¶
func GetNotificationListByAdmin(context controller.Context, input Query) (res schema.List)
GetList get notification list
func GetNotificationListByAdminRouter ¶
GetListRouter get list router
func GetNotificationListByUser ¶
func GetNotificationListByUser(context controller.Context, input Query) (res schema.List)
GetList get notification list
func GetNotificationListByUserRouter ¶
GetListRouter get list router
func MarkRead ¶
func MarkRead(context controller.Context, notificationID string) (res schema.Response)
MarkRead mark notification as read
func Update ¶
func Update(context controller.Context, notificationId string, input UpdateParams) (res schema.Response)
func UpdateRouter ¶
Types ¶
type CreateParams ¶
type UpdateParams ¶
Click to show internal directories.
Click to hide internal directories.