1
zhang
3 天以前 bc56530307e0e92b94a1abb5d38368f04b92e990
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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));
    }
 
}