Files
mayfly-go/server/internal/msg/router/msg.go

19 lines
321 B
Go
Raw Normal View History

2023-07-03 21:42:04 +08:00
package router
import (
"mayfly-go/internal/msg/api"
"mayfly-go/internal/msg/application"
"mayfly-go/pkg/req"
"github.com/gin-gonic/gin"
)
func InitMsgRouter(router *gin.RouterGroup) {
msg := router.Group("msgs")
a := &api.Msg{
MsgApp: application.GetMsgApp(),
}
req.NewGet("/self", a.GetMsgs).Group(msg)
2023-07-03 21:42:04 +08:00
}