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

com.dahuatech.icc.cirs.constant.CirsConstant Maven / Gradle / Ivy

package com.dahuatech.icc.cirs.constant;

import com.dahuatech.hutool.core.util.StrUtil;
import com.dahuatech.icc.oauth.profile.IccProfile;

/**
 * program:java-sdk
 *
 * @Author: 355079
 * @Date:2022-09-05 10:29
 * @Description: 信息发布子系统
 */
public class CirsConstant {
    /** 模块名称 */
    public static final String SYSTEM_NAME = "evo-cirs";

    /** 新增分组 */
    public static final String Insert_GROUP="/evo-apigw/evo-cirs/group/insertGroup";
    /** 修改分组 */
    public static final String UPDATE_GROUP="/evo-apigw/evo-cirs/group/updateGroup";
    /** 根据ID查询分组信息 */
    public static final String GROUP_ID="/evo-apigw/evo-cirs/group";
    /** 查询分组列表 */
    public static final String GET_GROUP_LIST="/evo-apigw/evo-cirs/group/getlist";

    /** 分辨率管理 */
    /** 新增分辨率 */
    public static final String ADD_SCREEN_RESOLUTION="/evo-apigw/evo-cirs/screenResolution/add";
    /**更新分辨率  */
    public static final String UPDATE_SCREEN_RESOLUTION="/evo-apigw/evo-cirs/screenResolution";
    /**删除分辨率  */
    public static final String DELETE_SCREEN_RESOLUTION="/evo-apigw/evo-cirs/screenResolution/delete";
    /**根据ID查询分辨率信息  */
    public static final String SCREEN_RESOLUTION_BY_ID="/evo-apigw/evo-cirs/screenResolution";
    /**查询分辨率列表  */
    public static final String GET_PAGE_LIST="/evo-apigw/evo-cirs/screenResolution/getPageList";

    /**素材管理 */
    /**素材上传 */
    public static final String MATERIAL_UPLOAD="/evo-apigw/evo-cirs/material/upload";
    /**素材分片合并 */
    public static final String MATERIAL_MERGE="/evo-apigw/evo-cirs/material/merge";
    /**素材分片上传 */
    public static final String MATERIAL_PART="/evo-apigw/evo-cirs/material/part";
    /**删除素材 */
    public static final String MATERIAL_DELETE="/evo-apigw/evo-cirs/material/delete";
    /**根据ID查询素材信息 */
    public static final String MATERIAL_BY_ID="/evo-apigw/evo-cirs/material";
    /**查询素材列表 */
    public static final String MATERIAL_LIST="/evo-apigw/evo-cirs/material/list";

    /**信息查询 */
    /**查询普通计划列表 */
    public static final String QUERY_PAGE_PALY_PLAN_LIST="/evo-apigw/evo-cirs/playPlan/queryPagePlayPlanList";
    /**查询插播计划列表 */
    public static final String QUERY_PAGE_PLAY_INFO_LIST="/evo-apigw/evo-cirs/playPlan/queryPagePlayInfoList";
    /**查询组织列表 */
    public static final String GET_DEPARTMENT_LIST="/evo-apigw/evo-cirs/base/department/getDepartmentList";

    /**设备管理 */
    /**删除设备 */
    public static final String DELETE_DEVICE="/evo-apigw/evo-cirs/deviceManagement/deleteDevice";
    /**修改设备 */
    public static final String UPDATE_DEVICE="/evo-apigw/evo-cirs/deviceManagement/updateDevice";
    /**查询设备列表 */
    public static final String PAGE_DEVICES="/evo-apigw/evo-cirs/deviceManagement/pageDevices";
    /**根据deviceCode查询设备信息 */
    public static final String DEVICE_CODE="/evo-apigw/evo-cirs/deviceManagement/deviceInfo";
    /**下发操作设备指令 */
    public static final String OPERATE_DEVICE="/evo-apigw/evo-cirs/deviceManagement/operateDevice";
    /**下发批量操作设备指令 */
    public static final String DEVICE_BATCH_OPERATE="/evo-apigw/evo-cirs/deviceManagement/deviceBatchOperate";
    /**终端配置 */
    public static final String CONFIG_DEVICE="/evo-apigw/evo-cirs/deviceManagement/configDevice";

    /**节目管理  */
    /**删除节目 */
    public static final String BATCH_DELETE="/evo-apigw/evo-cirs/program/batchDelete";
    /**获取节目详情 */
    public static final String GET_PROGRAM="/evo-apigw/evo-cirs/program/getProgram";
    /**查询节目列表 */
    public static final String GET_PAGE_PROGRAM="/evo-apigw/evo-cirs/program/getpagePrograms";

    /** 非必填 */
    public static String version = "1.0.0/";

    private static boolean initVersionFromBrm = Boolean.FALSE;

    public static String url(String url) {
        // 加载远程版本信息
        initVersion();
        return String.format(IccProfile.URL_SCHEME + url, version);
    }

    public static String url(String url, Object rest) {
        // 加载远程版本信息
        initVersion();
        return StrUtil.format(String.format(IccProfile.URL_SCHEME + url, version), rest);
    }

    private static void initVersion() {
        if (!initVersionFromBrm && IccProfile.systemVersionMap.containsKey(SYSTEM_NAME)) {
            version = IccProfile.systemVersionMap.get(SYSTEM_NAME);
            initVersionFromBrm = true;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy