import { http } from "@/utils/http"; type Result = { code: string; data: any; }; // 礼物分类列表 export const queryClassifyList = params => { return http.request( "get", "/adminapi/GiftLabel/label_lists", { params } ); }; // 礼物分类新增 export const addClassifyData = data => { return http.request("post", "/adminapi/GiftLabel/add_label", { data }); } // 礼物分类新增 export const editClassifyData = data => { return http.request("post", "/adminapi/GiftLabel/edit_label", { data }); } // 删除礼物分类 export const removeClassifyData = data => { return http.request("post", "/adminapi/GiftLabel/del_label", { data }); }; // 礼物列表 export const queryGiftList = params => { return http.request( "get", "/adminapi/Gift/gift_lists", { params } ); }; // 礼物新增 export const addGiftData = data => { return http.request("post", "/adminapi/Gift/add_gift", { data }); } // 礼物新增 export const editGiftData = data => { return http.request("post", "/adminapi/Gift/edit_gift", { data }); } // 删除礼物 export const removeGiftData = data => { return http.request("post", "/adminapi/Gift/del_gift", { data }); }; // 礼物详情 export const getGiftInfo = params => { return http.request( "get", "/adminapi/Gift/gift_info", { params } ); }; // export const getGiftTypeOrLabel = params => { return http.request( "get", "/adminapi/Gift/gift_type_lists", { params } ); };