// 主页接口 import request from "@/request"; // 获取币种 export const _getCoins = () => { return request({ url: "/api/item!list.action", method: "GET", // isLoading: true }) }; // 获取行情 export const _getHomeList = (symbol) => { return request({ url: "/api/hobi!getRealtime.action", method: "GET", params: { symbol } // isLoading: true }) }; // 汇率 export const _getExchangeRate = (symbol) => { return request({ url: "/api/exchangerateuserconfig!get.action", method: "GET", params: { symbol } // isLoading: true }) }; // 查询是否加入自选 export const _checkIsInCollect = symbol => { return request({ url: '/api/itemUserOptional!getItemOptionalStatus.action', method:'GET', params: { symbol } }) } // 自选 export const _collect = (symbol) => { return request({ url: '/api/itemUserOptional!add.action', method: 'GET', loading: true, params: { symbol } }) } // 删除自选 export const _deleteCollect = symbol => { return request({ url: '/api/itemUserOptional!delete.action', method: 'GET', loading: true, params: { symbol } }) } // 我的自选 export const _myCoins = () => { return request({ url: '/api/itemUserOptional!list.action', method: 'GET' }) }