import { axios, caseTaggingList } from "@/request";

export interface CaseTagging {
  hotIconId: number;
  hotIconUrl: string;
  getMethod: string;
  getUser: string;
  tagId: number;
  tagImgUrl: string;
  leaveBehind: string;
  tagDescribe: string;
  tagTitle: string;
}

export const getCaseTaggings = async (caseId: number) =>
  (await axios.get(caseTaggingList, { params: { caseId } }))
    .data as CaseTagging[];
