All Downloads are FREE. Search and download functionalities are using the official Maven repository.

templates.common.Constants.ftl Maven / Gradle / Ivy

There is a newer version: 2.0.4
Show newest version
package ${packageName}.common.constants;

/**
 * @author Co.
 * @name Constants
 * @date 2023/2/14 15:14
 */
public class Constants {

    /**
     * 默认分页
     */
    public static final int DEFAULT_PAGE = 1;

    /**
     * 默认分页
     */
    public static final int DEFAULT_LIMIT = 20;

    /**
     * fegin的header
     */
    public static final String FROM = "from";
    public static final String FROM_IN = "Y";

    /**
     * 登录token前缀
     */
    public static final String BEARER = "Bearer ";

    /**
     * 下载文件地址
     */
<#if isSpringCloud == 1>
     public static final String FILE_DOWNLOAD_URL = "/party/oss/download";
     public static final String PLAY_VIDEO_URL = "/party/oss/play/video";
<#else >
    public static final String FILE_DOWNLOAD_URL = "/api/party/oss/download";
    public static final String PLAY_VIDEO_URL = "/api/party/oss/play/video";


    /***
     * 腾讯地图关键字搜索
     */
    public static final String TENCENT_SUGGESTION_URL = "https://apis.map.qq.com/ws/place/v1/suggestion/?key=%s&keyword=%s&sig=%s";

    /***
     * 腾讯地图地址解析(地址转坐标)
     */
    public static final String TENCENT_GEOCODER_ADDRESS_URL = "https://apis.map.qq.com/ws/geocoder/v1/?key=%s&address=%s&sig=%s";

    /***
     * 腾讯地图地址解析(地址转坐标)
     */
    public static final String TENCENT_GEOCODER_LOCATION_URL = "https://apis.map.qq.com/ws/geocoder/v1/?key=%s&location=%s&sig=%s";

    /***
     * 腾讯地图IP定位
     */
    public static final String TENCENT_LOCATION_IP_URL = "https://apis.map.qq.com/ws/location/v1/ip/?key=%s&sig=%s";

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy