import requireAPI from "@/utils/requireAPI"; // import { Toast } from "antd-mobile"; export const getStreamer = async (userId) => { try { const data = await requireAPI("POST", "/api/streamer/list_ext_by_user_id", { body: { user_id:userId, }, }); if (data.ret === -1) { // Toast.show({ // icon: "fail", // content: data.msg, // position: "top", // }); return; } return { ...data.data, }; } catch (error) { console.error(error); } };