2021-09-11 14:04:09 +08:00
|
|
|
package router
|
|
|
|
|
|
|
|
|
|
import (
|
2022-06-02 17:41:11 +08:00
|
|
|
"mayfly-go/internal/common/api"
|
2024-01-21 22:52:20 +08:00
|
|
|
"mayfly-go/pkg/biz"
|
|
|
|
|
"mayfly-go/pkg/ioc"
|
2023-01-14 16:29:52 +08:00
|
|
|
"mayfly-go/pkg/req"
|
2021-09-11 14:04:09 +08:00
|
|
|
|
|
|
|
|
"github.com/gin-gonic/gin"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
func InitIndexRouter(router *gin.RouterGroup) {
|
|
|
|
|
index := router.Group("common/index")
|
2024-01-21 22:52:20 +08:00
|
|
|
i := new(api.Index)
|
|
|
|
|
biz.ErrIsNil(ioc.Inject(i))
|
2021-09-11 14:04:09 +08:00
|
|
|
{
|
|
|
|
|
// 首页基本信息统计
|
2023-07-08 20:05:55 +08:00
|
|
|
req.NewGet("count", i.Count).Group(index)
|
2021-09-11 14:04:09 +08:00
|
|
|
}
|
|
|
|
|
}
|