You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- package com.telpo.dipperposition.controller;
-
- import com.telpo.dipperposition.service.IDipperDataAsyncTaskService;
- import lombok.extern.slf4j.Slf4j;
- import org.springframework.beans.factory.annotation.Autowired;
- import org.springframework.beans.factory.annotation.Value;
- import org.springframework.web.bind.annotation.RequestMapping;
- import org.springframework.web.bind.annotation.RestController;
-
-
- /**
- * @program: DipperPositionController
- * @description: 北斗定位
- * @author: linwl
- * @create: 2020-07-10 14:01
- */
- @RestController
- @Slf4j
- public class DipperDataAsyncTaskController {
- @Value(value = "${position-server.serverAddr}")
- private String serverAddr;
- //RzlAccount rzlAccount;
-
- @Autowired
- IDipperDataAsyncTaskService dipperDataAsyncTaskService;
-
- /*
- * 拉取星历数据
- */
- public void pullAstEPH() {
- dipperDataAsyncTaskService.pullAstEPH();
- }
-
- /*
- * 获取星历数据
- */
- public String getAstEPH() {
- log.info("DipperDataAsyncTaskController serverAddr = " + serverAddr);
- return dipperDataAsyncTaskService.getAstEPH();
- }
-
-
- @RequestMapping("/getPos")
- public String getPos() {
- return "return serverAddr = " + serverAddr;
- }
-
- }
|