mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-11-04 08:20:25 +08:00
refactor: 引入日志切割库、indexApi拆分等
This commit is contained in:
@@ -13,11 +13,16 @@ func InitMachineRouter(router *gin.RouterGroup) {
|
||||
m := new(api.Machine)
|
||||
biz.ErrIsNil(ioc.Inject(m))
|
||||
|
||||
dashbord := new(api.Dashbord)
|
||||
biz.ErrIsNil(ioc.Inject(dashbord))
|
||||
|
||||
machines := router.Group("machines")
|
||||
{
|
||||
saveMachineP := req.NewPermission("machine:update")
|
||||
|
||||
reqs := [...]*req.Conf{
|
||||
req.NewGet("dashbord", dashbord.Dashbord),
|
||||
|
||||
req.NewGet("", m.Machines),
|
||||
|
||||
req.NewGet(":machineId/stats", m.MachineStats),
|
||||
|
||||
Reference in New Issue
Block a user