mirror of
https://gitee.com/dromara/mayfly-go
synced 2026-04-27 06:35:20 +08:00
feat: 新增机器状态查看&机器状态等
This commit is contained in:
@@ -45,6 +45,13 @@ func InitMachineRouter(router *gin.RouterGroup) {
|
||||
Handle(m.SaveMachine)
|
||||
})
|
||||
|
||||
changeStatus := ctx.NewLogInfo("调整机器状态")
|
||||
machines.PUT(":machineId/:status", func(c *gin.Context) {
|
||||
ctx.NewReqCtxWithGin(c).
|
||||
WithLog(changeStatus).
|
||||
Handle(m.ChangeStatus)
|
||||
})
|
||||
|
||||
delMachine := ctx.NewLogInfo("删除机器")
|
||||
machines.DELETE(":machineId", func(c *gin.Context) {
|
||||
ctx.NewReqCtxWithGin(c).
|
||||
|
||||
Reference in New Issue
Block a user