zhangk
2024-06-24 3b181fc943998371a8d77b2efbd84a24d8ea9d5b
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
package cn.gistack.sm.sjztmd.constant;
 
import java.util.Arrays;
import java.util.List;
import java.util.stream.IntStream;
 
public class RainfallConstant {
 
    // 气象未来3天预报服务接口
    public static final String FORECAST_SERVICE_URL =
        "https://sk.hubeishuiyi.cn/sltqxyb/forecast/extraForecast/getSltRainGridForecastData/";
 
    public static final String REQUEST_JSON_BODY = "{\"dayIndex\":\"%s\"}";
 
    public static final String X_TOKEN = "2a1ded7e-85f2-4e42-a97a-5651d745f8e1";
 
    public static final int[] EMPTY_ATT_RES_NUM_ARRAY = IntStream.generate(() -> 0).limit(8).toArray();
 
    public static final List<String> RAIN_FALL_RANGES = Arrays.asList("(250,+)", "(100,250]", "(50,100]", "(25,50]"
            , "(10,25]", "(5,10]", "(0.1,5]", "[0,0.1]");
 
    public static final String CONTAINS_CHINESE = "1" ;
 
    public static final String NOT_CONTAINS_CHINESE = "9" ;
}