KKSU
2024-11-15 2147ca2f66dd5ff83db5080988f4832bd10ac213
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
package cc.mrbird.febs.unisoftiot.config;
 
import lombok.Data;
 
/**
 * 类说明:统一软账号配置类
 * 字段说明:
 *  - appId: 应用ID,用于标识一个应用
 *  - appSecret: 应用密钥,用于验证应用的身份
 *  - requestHandler: 处理HTTP请求的处理器,用于封装HTTP请求的处理逻辑
 */
@Data
public class UniSoftAccount {
 
    private String appId;
 
    private String appSecret;
 
    // 处理HTTP请求的处理器
    public RequestHandler requestHandler;
 
    /**
     * 构造方法说明:初始化UniSoftAccount实例
     * 参数说明:
     *  - appId: 应用ID,用于标识一个应用
     *  - appSecret: 应用密钥,用于验证应用的身份
     *  - requestHandler: 处理HTTP请求的处理器,用于封装HTTP请求的处理逻辑
     */
    public UniSoftAccount(String appId, String appSecret){
        this.appId = appId;
        this.appSecret = appSecret;
        this.requestHandler = new RequestHandler(appId, appSecret);
    }
}