| | |
| | | package com.whyc.controller; |
| | | |
| | | import com.whyc.dto.Response; |
| | | import com.whyc.pojo.BattRTState; |
| | | import com.whyc.service.QRCodeService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | |
| | | } |
| | | |
| | | @PostMapping(value = "extractAndGetData") |
| | | private Response extractAndGetData(@RequestBody byte[] data){ |
| | | private Response<BattRTState> extractAndGetData(@RequestBody byte[] data){ |
| | | //private Response extractAndGetData(@RequestBody String data){ |
| | | return new Response().set(1,"ok"); |
| | | //return service.extractAndGetData(data); |
| | | return service.extractAndGetData(data); |
| | | } |
| | | |
| | | @PostMapping(value = "uploadVideo") |
| | | private Response<BattRTState> uploadVideo(@RequestBody byte[] data){ |
| | | //private Response extractAndGetData(@RequestBody String data){ |
| | | return service.uploadVideo(data); |
| | | } |
| | | |
| | | @GetMapping("test") |