export interface JobGroupVO extends BaseEntity {
  id: number | string;
  appname: string;
  title: string;
  addressType: number;
  addressList: string;
  updateTime: string;
  // 扩展字段
  registryList: string[];
  onlineRegistryList: string[];
  offlineRegistryList: string[];
}

export interface JobGroupForm {
  id: number | string | undefined;
  appname: string;
  title: string;
  addressType: number;
  addressList: string;
}

export interface JobGroupQuery extends PageQuery {
  appname: string;
  title: string;
  addressType: number | string;
}

// 地址类型枚举
export enum AddressType {
  AUTO = 0,    // 自动注册
  MANUAL = 1   // 手动录入
}

// 执行器注册信息
export interface ExecutorRegistry {
  registryGroup: string;
  registryKey: string;
  registryValue: string;
  updateTime: string;
}

// 执行器状态
export interface ExecutorStatus {
  address: string;
  status: 'online' | 'offline';
  lastHeartbeat: string;
}
