improvement: device 更名为 env
This commit is contained in:
@@ -2,7 +2,7 @@ package net.geedge.api.controller;
|
||||
|
||||
import cn.hutool.core.codec.Base32Codec;
|
||||
import jakarta.servlet.http.HttpServletResponse;
|
||||
import net.geedge.api.entity.DeviceApiYml;
|
||||
import net.geedge.api.entity.EnvApiYml;
|
||||
import net.geedge.api.util.AdbUtil;
|
||||
import net.geedge.common.*;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
@@ -15,14 +15,14 @@ import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
@RestController
|
||||
@RequestMapping("/api/v1/device")
|
||||
@RequestMapping("/api/v1/env")
|
||||
public class APIController {
|
||||
|
||||
private final AdbUtil adbUtil;
|
||||
|
||||
@Autowired
|
||||
public APIController(DeviceApiYml deviceApiYml) {
|
||||
this.adbUtil = AdbUtil.getInstance(deviceApiYml.getAdb());
|
||||
public APIController(EnvApiYml envApiYml) {
|
||||
this.adbUtil = AdbUtil.getInstance(envApiYml.getAdb());
|
||||
}
|
||||
|
||||
@GetMapping("/status")
|
||||
|
||||
Reference in New Issue
Block a user