package com.vincent.rsf.openApi.tv;
|
|
import lombok.Data;
|
import org.springframework.boot.context.properties.ConfigurationProperties;
|
import org.springframework.stereotype.Component;
|
|
/**
|
* 定时拉取 RCS 站点任务号/异常并写入电视机 Redis(与 zy-monitor-admin 键一致)
|
*/
|
@Data
|
@Component
|
@ConfigurationProperties(prefix = "tv-monitor.rcs-station-poll")
|
public class TvRcsStationPollProperties {
|
|
/** 关闭时不注册定时任务 */
|
private boolean enabled = false;
|
|
/** Spring cron,默认每 5 秒 */
|
private String cron = "0/5 * * * * ?";
|
|
/** GET 全路径,如 http://10.10.10.200:8088/station/getTaskNo?stationId=1007 */
|
private String taskNoPollUrl = "";
|
|
/** 写入 Redis Hash 的 field,与 RCS 回调 staNo 一致 */
|
private String taskNoStationId = "1007";
|
|
/** GET 全路径,如 http://10.10.10.200:8088/station/getError?stationId=1010 */
|
private String errorPollUrl = "";
|
|
/** 解析异常列表时默认站点号(写入 [staNo] 前缀) */
|
private String errorStationId = "1010";
|
}
|