23 lines
733 B
Java
23 lines
733 B
Java
package com.ruoyi.cai.remote;
|
|
|
|
|
|
import com.dtflys.forest.annotation.BaseRequest;
|
|
import com.dtflys.forest.annotation.Get;
|
|
import com.dtflys.forest.annotation.Var;
|
|
import com.ruoyi.cai.remote.y4x.Y4xResponse;
|
|
import com.ruoyi.yunxin.interceptor.GlodonTokenInterceptor;
|
|
|
|
/**
|
|
* {"code":200,"dwz":"http:\/\/9a.y4x.cn\/6dKxHQX7"}
|
|
* http://ys.y4x.cn/api/url.php?type=10021&pattern=2&token=9d42f94ebb346cd6fcd6fb5b9cddcd16&url=https://www.abc.com
|
|
*/
|
|
@BaseRequest
|
|
public interface Y4xClient {
|
|
|
|
@Get(url = "http://ys.y4x.cn/api/url.php?type={type}&pattern=2&token={token}&url={url}")
|
|
Y4xResponse getUrl(@Var("type") String type,
|
|
@Var("token") String token,
|
|
@Var("url") String url);
|
|
|
|
}
|