|
@@ -7,15 +7,17 @@ import com.fdkankan.ucenter.annotation.CheckInnerApiPermit;
|
|
import com.fdkankan.ucenter.common.BaseController;
|
|
import com.fdkankan.ucenter.common.BaseController;
|
|
import com.fdkankan.ucenter.common.Result;
|
|
import com.fdkankan.ucenter.common.Result;
|
|
import com.fdkankan.ucenter.service.IInnerService;
|
|
import com.fdkankan.ucenter.service.IInnerService;
|
|
|
|
+import com.fdkankan.ucenter.vo.request.CameraDetailParam;
|
|
|
|
+import com.fdkankan.ucenter.vo.response.CameraVo;
|
|
import org.apache.commons.lang3.ObjectUtils;
|
|
import org.apache.commons.lang3.ObjectUtils;
|
|
import org.apache.commons.lang3.StringUtils;
|
|
import org.apache.commons.lang3.StringUtils;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
-import org.springframework.web.bind.annotation.GetMapping;
|
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
-import org.springframework.web.bind.annotation.RequestParam;
|
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
|
|
+import java.util.ArrayList;
|
|
|
|
+import java.util.Arrays;
|
|
import java.util.HashMap;
|
|
import java.util.HashMap;
|
|
|
|
+import java.util.List;
|
|
|
|
|
|
/**
|
|
/**
|
|
* <p>
|
|
* <p>
|
|
@@ -96,7 +98,11 @@ public class InnerController extends BaseController {
|
|
return Result.success(innerService.getSceneInfo(num));
|
|
return Result.success(innerService.getSceneInfo(num));
|
|
}
|
|
}
|
|
|
|
|
|
- public static void main(String[] args) {
|
|
|
|
- System.out.println(SecurityUtil.MD5(".\f\u0017\u0002\u0016\u001A\u0019E"));
|
|
|
|
|
|
+ @GetMapping(value = "/getSnCode/{snCode}")
|
|
|
|
+ public Result getSnCode( @PathVariable String snCode) {
|
|
|
|
+ if(StringUtils.isBlank(snCode)){
|
|
|
|
+ throw new BusinessException(ErrorCode.MISSING_REQUIRED_PARAMETERS);
|
|
|
|
+ }
|
|
|
|
+ return Result.success(innerService.getCameraDetail(snCode));
|
|
}
|
|
}
|
|
}
|
|
}
|