export interface CommonReqResponseData<T> {
  data: T;
  logMsg: any;
  msg: 'string';
  state: number;
  timestamp: number;
}

export interface AnalysisKeywordReq {
  productName: string;
  locationName: string;
}

export interface FormDataInfo {
  locationName: string;
  productName: string;
  description: string;
  competitorWebsite: string;
}

export interface KeywordInfo {
  keywords: string[];
  keywordEn: string;
  competition: number;
  monthlySearchesBO: {
    month: number;
    year: number;
    search_volume: number;
  };
}

export interface RelatedInfoBOItem {
  searchVolume: string;
  competition: number;
  keyword: string;
}

export interface TrafficBOItem {
  x_axis: number;
  paid: number;
  organic: number;
}

interface RecommendationBOItem {
  searchVolume: number;
  keywords: string;
  price: number;
}

interface RankBOItem {
  searchVolume: number;
  cpc: number;
  monthly: number;
  keyword: string;
  quarterly: number;
  dp: number;
  yearly: number;
}

export interface CompetitorBOSItem {
  website: string;
  trafficBOList: TrafficBOItem[];
  recommendationBOList: RecommendationBOItem[];
  rankBOList: RankBOItem[];
}

export interface TrafficBO {
  x_axis: number[];
  paids: number[];
  organic: number[];
}

export interface GenerateRecord {
  phone: string;
  companyName: string;
  verifyCode: string;
}
