package com.ruoyi.utils.forest;
|
|
import com.dtflys.forest.annotation.*;
|
import org.springframework.beans.factory.annotation.Value;
|
import org.springframework.stereotype.Component;
|
import org.springframework.stereotype.Service;
|
|
@Service
|
public interface UavClient {
|
|
///
|
|
@Get("${url}")
|
String GET(@Var("url") String url, @Header("x-auth-token") String token, @JSONBody String body);
|
|
@Post("${url}")
|
String POST(@Var("url") String url, @Header("x-auth-token") String token, @JSONBody String body);
|
|
@Delete("${url}")
|
String DELETE(@Var("url") String url, @Header("x-auth-token") String token, @JSONBody String body);
|
|
|
|
}
|