api/v1/device.go
@@ -56,14 +56,14 @@ ctx.Ok() } // SetDeviceConfig // Config // @Tags 设备 // @Summary 设置设备一些配置 // @Produce application/json // @Param object body request.DeviceConfig true "查询参数" // @Success 200 {object} contextx.Response{} "成功" // @Router /v1/device/config [post] func (slf *DeviceApi) config(c *gin.Context) { func (slf *DeviceApi) Config(c *gin.Context) { var params request.DeviceConfig ctx, ok := contextx.NewContext(c, ¶ms) if !ok {