| | |
| | | import com.whyc.dto.Response; |
| | | import com.whyc.service.QRCodeService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * 二维码的识别和生成 |
| | |
| | | return new Response().set(1,res); |
| | | } |
| | | |
| | | @PostMapping(value = "extractAndGetData") |
| | | private Response extractAndGetData(@RequestBody byte[] data){ |
| | | //private Response extractAndGetData(@RequestBody String data){ |
| | | return new Response().set(1,"ok"); |
| | | //return service.extractAndGetData(data); |
| | | } |
| | | |
| | | @GetMapping("test") |
| | | private Response test(){ |
| | | return new Response().set(1,"test"); |
| | | } |
| | | |
| | | } |