notification_router.go 468 字节
package routers

import (
	"github.com/astaxie/beego"
	"gitlab.fjmaimaimai.com/linmadan/mmm-worth/pkg/port/beego/controllers"
)

func init() {
	beego.Router("/notifications/read", &controllers.NotificationController{}, "Post:ReadSentNotification")
	beego.Router("/notifications/read-all", &controllers.NotificationController{}, "Post:ReadAllUnReadSentNotification")
	beego.Router("/notifications/", &controllers.NotificationController{}, "Get:ListSentNotification")
}