|
@@ -1,8 +1,10 @@
|
|
|
package com.energy.manage.service.controller.homepage;
|
|
|
|
|
|
import com.energy.manage.common.reponse.ResultResp;
|
|
|
+import com.energy.manage.service.config.annotations.UserLoginToken;
|
|
|
import com.energy.manage.service.controller.base.BaseServiceController;
|
|
|
import com.energy.manage.service.service.homepage.HomePageService;
|
|
|
+import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
@@ -15,6 +17,7 @@ import org.springframework.web.bind.annotation.RestController;
|
|
|
* @date 2024/6/13 13:52
|
|
|
* @desc
|
|
|
*/
|
|
|
+@Api(value = "HomePageController",tags = "首页查询")
|
|
|
@RestController
|
|
|
@RequestMapping("/homePage")
|
|
|
public class HomePageController extends BaseServiceController {
|
|
@@ -23,6 +26,7 @@ public class HomePageController extends BaseServiceController {
|
|
|
private HomePageService homePageService;
|
|
|
|
|
|
@ApiOperation("驾驶舱首页查询")
|
|
|
+ @UserLoginToken
|
|
|
@GetMapping("/queryStatistics")
|
|
|
public ResultResp queryStatistics(@RequestParam("codeNumber") String codeNumber,
|
|
|
@RequestParam("codeType") String codeType){
|
|
@@ -31,6 +35,7 @@ public class HomePageController extends BaseServiceController {
|
|
|
|
|
|
|
|
|
@ApiOperation("驾驶舱首页查询操作记录")
|
|
|
+ @UserLoginToken
|
|
|
@GetMapping("/queryOptionRecords")
|
|
|
public ResultResp queryOptionRecords(@RequestParam("codeNumber") String codeNumber,
|
|
|
@RequestParam("codeType") String codeType){
|