package com.zy.acs.gateway.controller;
|
|
import com.zy.acs.framework.common.R;
|
import com.zy.acs.gateway.utils.PacCoder;
|
import lombok.extern.slf4j.Slf4j;
|
import org.springframework.web.bind.annotation.*;
|
|
|
@RestController
|
@Slf4j
|
@RequestMapping(value = "/utils")
|
public class UtilsController {
|
|
/**
|
* 查询最新的十条数据
|
*
|
* @return
|
*/
|
@RequestMapping(value = "/decode/{hex}")
|
@ResponseBody
|
public R query(@PathVariable String hex) {
|
return R.ok(PacCoder.decode(hex));
|
}
|
|
}
|