Documentation
¶
Index ¶
- func Active(ctx context.Context, c *app.RequestContext)
- func Create(ctx context.Context, c *app.RequestContext)
- func Delete(ctx context.Context, c *app.RequestContext)
- func Get(ctx context.Context, c *app.RequestContext)
- func List(ctx context.Context, c *app.RequestContext)
- func MarkRead(ctx context.Context, c *app.RequestContext)
- func Mine(ctx context.Context, c *app.RequestContext)
- func SetNotifyService(s *notifyapp.Service)
- func UnreadCount(ctx context.Context, c *app.RequestContext)
- func Update(ctx context.Context, c *app.RequestContext)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Active ¶
func Active(ctx context.Context, c *app.RequestContext)
Active . @router /notifies/active [GET]
func Create ¶
func Create(ctx context.Context, c *app.RequestContext)
Create . @router /admin/notifies [POST]
func Delete ¶
func Delete(ctx context.Context, c *app.RequestContext)
Delete . @router /admin/notifies/:id [DELETE]
func Get ¶
func Get(ctx context.Context, c *app.RequestContext)
Get . @router /admin/notifies/:id [GET]
func List ¶
func List(ctx context.Context, c *app.RequestContext)
List . @router /admin/notifies [GET]
func MarkRead ¶ added in v0.15.0
func MarkRead(ctx context.Context, c *app.RequestContext)
MarkRead 标记已读(当前仅支持 all=true) POST /api/v1/notifies/mark-read [POST]
func Mine ¶ added in v0.15.0
func Mine(ctx context.Context, c *app.RequestContext)
Mine 我的通知列表(含广播 + 定向) GET /api/v1/notifies/mine [GET]
func SetNotifyService ¶ added in v0.16.2
SetNotifyService 注入装配级 notify 服务(bootstrap 调用)。
func UnreadCount ¶ added in v0.15.0
func UnreadCount(ctx context.Context, c *app.RequestContext)
UnreadCount 未读数(未登录防御性返回 0——迁移前语义;路由层实际已拦截匿名) GET /api/v1/notifies/unread-count [GET]
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.