1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
| package com.ruoyi.utils.forest;
|
| import com.dtflys.forest.annotation.BaseRequest;
| import com.dtflys.forest.annotation.Body;
| import com.dtflys.forest.annotation.Post;
| import com.dtflys.forest.annotation.Var;
| import com.ruoyi.rongcloud.domain.TokenParam;
|
| @BaseRequest(
| baseURL = "{rongyunApiUrl}",
| sslProtocol = "TLS"
| )
| public interface RongCloudClient {
|
| @Post(url = "/user/getToken.json", headers = {
| "App-Key:{AppKey}",
| "Nonce:{Nonce}",
| "Timestamp:{Timestamp}",
| "Signature:{Signature}",
| })
| public String getToken(@Var("rongyunApiUrl") String rongyunApiUrl,@Var("AppKey") String AppKey, @Var("Nonce") String Nonce, @Var("Timestamp") String Timestamp, @Var("Signature") String Signature, @Body TokenParam param);
|
| }
|
|