feat: 新增机器状态查看&机器状态等

This commit is contained in:
meilin.huang
2022-04-27 10:59:02 +08:00
parent 6fe892ca9f
commit ce78b2caee
41 changed files with 1240 additions and 2470 deletions

View File

@@ -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).