This commit is contained in:
777
2025-05-08 18:56:37 +08:00
parent 715f6b5693
commit c5fe9e1837
7 changed files with 167 additions and 3 deletions

View File

@@ -0,0 +1,22 @@
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);
}