增加消息管理

This commit is contained in:
GoEdgeLab
2020-10-20 20:18:12 +08:00
parent 957b5b620c
commit 10faba32ea
15 changed files with 274 additions and 3 deletions

View File

@@ -0,0 +1,20 @@
package messages
import (
"github.com/TeaOSLab/EdgeAdmin/internal/web/helpers"
"github.com/iwind/TeaGo"
)
func init() {
TeaGo.BeforeStart(func(server *TeaGo.Server) {
server.
Helper(new(helpers.UserMustAuth)).
Helper(new(Helper)).
Prefix("/messages").
GetPost("", new(IndexAction)).
Post("/badge", new(BadgeAction)).
Post("/readAll", new(ReadAllAction)).
Post("/readPage", new(ReadPageAction)).
EndAll()
})
}