|
@@ -4,6 +4,7 @@ import com.xy.annotate.RestMappingController;
|
|
|
import com.xy.dto.DeviceErrorsRecordDto;
|
|
|
import com.xy.utils.PageBean;
|
|
|
import com.xy.utils.R;
|
|
|
+import org.springframework.validation.annotation.Validated;
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
|
|
|
@@ -17,6 +18,22 @@ import org.springframework.web.bind.annotation.RequestBody;
|
|
|
*/
|
|
|
@RestMappingController("/device-errors-record")
|
|
|
public interface DeviceErrorsRecordService {
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 分页查询
|
|
|
+ *
|
|
|
+ * @param page
|
|
|
+ * @return
|
|
|
+ */
|
|
|
@PostMapping("page")
|
|
|
R<PageBean<DeviceErrorsRecordDto.Vo>> page(@RequestBody DeviceErrorsRecordDto.Page page);
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 添加
|
|
|
+ *
|
|
|
+ * @param save
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @PostMapping("save")
|
|
|
+ R save(@RequestBody @Validated DeviceErrorsRecordDto.Save save);
|
|
|
}
|