mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-11-13 21:00:26 +08:00
22 lines
372 B
Go
22 lines
372 B
Go
|
|
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(),
|
||
|
|
}
|
||
|
|
{
|
||
|
|
msg.GET("/self", func(c *gin.Context) {
|
||
|
|
req.NewCtxWithGin(c).Handle(a.GetMsgs)
|
||
|
|
})
|
||
|
|
}
|
||
|
|
}
|