forked from zmops/zeus-iot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
50 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
zeus-webapp/src/main/java/com/zmops/iot/web/device/dto/ServiceExecuteDto.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package com.zmops.iot.web.device.dto; | ||
|
||
import lombok.Data; | ||
|
||
import javax.validation.constraints.NotBlank; | ||
import javax.validation.constraints.NotNull; | ||
import java.util.List; | ||
|
||
/** | ||
* @author yefei | ||
**/ | ||
@Data | ||
public class ServiceExecuteDto { | ||
|
||
@NotBlank | ||
private String deviceId; | ||
@NotNull | ||
private Long serviceId; | ||
|
||
private List<ServiceParam> serviceParams; | ||
|
||
@Data | ||
public static class ServiceParam { | ||
@NotBlank | ||
private String key; | ||
@NotBlank | ||
private String value; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters