zhangqian
2023-11-01 372e5032b10eddc00b7a87a862a71dea6705609c
api/v1/device.go
@@ -16,14 +16,14 @@
type DeviceApi struct{}
// Set
// SetCurrentDeviceId
// @Tags      设备
// @Summary   设置当前设备id
// @Produce   application/json
// @Param     object  body    request.SetCurrentDevice true  "查询参数"
// @Success   200   {object}  contextx.Response{}  "成功"
// @Router    /v1/device/set [post]
func (slf *DeviceApi) Set(c *gin.Context) {
// @Router    /v1/device/setCurrentDeviceId [post]
func (slf *DeviceApi) SetCurrentDeviceId(c *gin.Context) {
   var params request.SetCurrentDevice
   ctx, ok := contextx.NewContext(c, &params)
   if !ok {