package com.huimv.video.dhicc.controller.ClientController;


import com.dahuatech.icc.exception.ClientException;
import com.huimv.video.dhicc.icc.IccUtil;
import com.huimv.video.dhicc.result.R;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

/**
 * 事件信息的最终端口
 */
@RestController
@RequestMapping("token")
public class GetToken {
    @RequestMapping("/getToken")
    public R getAccidentRecordPicture(HttpServletRequest request
    ) throws ClientException {
        String token = new IccUtil().getToken();
        return R.ok("请求成功").put("token", token);
    }
}


