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
package cc.mrbird.febs.unisoftiot.enums;
 
import lombok.Getter;
 
@Getter
public enum ProductRequestUrlEnum {
 
 
    PRODUCT_LIST(HttpMethod.POST,"/product/list");
 
    // 请求方法,如POST、GET等
    private HttpMethod requestMethod;
 
    // 请求的URL路径
    private String requestUrl;
 
    /**
     * 构造函数,初始化设备请求的URL和方法
     *
     * @param requestMethod HTTP请求方法,例如POST
     * @param requestUrl HTTP请求的URL路径
     */
    ProductRequestUrlEnum(HttpMethod requestMethod, String requestUrl) {
        this.requestMethod = requestMethod;
        this.requestUrl = requestUrl;
    }
}