import {getAssetsUrl} from 'utils/utils';
export interface Feature {
  title: string;
  type?: 'tip';
  desc: string;
}

export interface Notice {
  detailUrl: string;
  version: string;
  list: Feature[];
}

export async function getContentByVersion(version: string): Promise<Notice> {
  return await fetch(getAssetsUrl(`announcement/easyvadmin/v${version}.json`)).then((res) => res.json());
}
