import { ERROR_UNDEFINED_GET_STOCK , ERROR_UNDEFINED_GET_STOCKS , ERROR_UNDEFINED_SEARCH_STOCK } from "@utils/constant" ; import Stock from "types/utils/stock" ; import StockApi from "types/stocks/index" ; /**
 * 基础股票代码接口
 */ const Base = { param code async getStock ( code ) { throw new Error ( ERROR_UNDEFINED_GET_STOCK ) ; } , param codes async getStocks ( codes ) { throw new Error ( ERROR_UNDEFINED_GET_STOCKS ) ; } , param key async searchStocks ( key ) { throw new Error ( ERROR_UNDEFINED_SEARCH_STOCK ) ; } } ; export default Base ;