package routes import ( "github.com/gofiber/fiber/v2" "github.com/break/junhong_cmp_fiber/internal/handler/admin" "github.com/break/junhong_cmp_fiber/internal/model/dto" "github.com/break/junhong_cmp_fiber/pkg/openapi" ) // registerAssetLifecycleRoutes 注册资产手动停用路由 func registerAssetLifecycleRoutes(router fiber.Router, handler *admin.AssetLifecycleHandler, doc *openapi.Generator, basePath string) { Register(router, doc, basePath, "PATCH", "/iot-cards/:id/deactivate", handler.DeactivateIotCard, RouteSpec{ Summary: "手动停用IoT卡", Tags: []string{"IoT卡管理"}, Input: new(dto.IDReq), Output: nil, Auth: true, }) Register(router, doc, basePath, "PATCH", "/devices/:id/deactivate", handler.DeactivateDevice, RouteSpec{ Summary: "手动停用设备", Tags: []string{"设备管理"}, Input: new(dto.IDReq), Output: nil, Auth: true, }) }