jhzh
2025-04-27 c6c703c80be3ee1f1f2d28f820c4d3b730e17040
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
import Serve from '@/api/serve'
 
class Market {
 
    /**
     * 轮播图列表
     * @param {Object} data 
     * @param {int} type  请求类型 1是pc(默认) 2是app
     * @param {int} position  位置 1(币币首页) 2(预留扩展)
    */
    static cryptocurrenciesWithdrawal(type, position) {
 
        return Serve.post(`/market/banner/${type}/${position}`);
 
    }
    // export const _getKline = (symbol, line) => {
    //   // 1min, 5min, 15min, 30min, 60min, 4hour, 1day, 1mon, 1week, 1分钟,5分钟,1天,1月
    //   return request({
    //     url: "api/hobi!getKline.action",
    //     method: "GET",
    //     params: {
    //       symbol,
    //       line,
    //     },
    //   });
    // };
    /**
     * 用户收藏交易对信息 需要先登录
     */
    static _getKline(params) {
    
        return Serve.get(`/api/app/contract/getKline`,params);
    
    }
    /**
     * 用户收藏交易对信息 需要先登录
     */
    static userFavList() {
 
        return Serve.get(`/coin/market/collection/list`);
 
    }
 
 
    static blogCategoryList() {
        return Serve.get(`/blogCategory/list`);
    }
 
    static blogDetailList(categoryId, params) {
        return Serve.get(`/blog/list/${categoryId}`, params );
    }
 
    static blogDetailContent(id) {
        return Serve.get(`/blog/detail/${id}`);
    }
 
    // 初始化查询市场行情
    static getMarketList() {
        return Serve.get(`/exchange/getMarketList`);
    }
 
    // 初始化买卖盘数据
    static getBooks(data) {
        return Serve.get(`/exchange/getMarketInfo`,data);
    }
 
    // 获取币种信息
    static getCoinInfo(data){
        return Serve.get(`/exchange/getCoinInfo`,data)
    }
 
}
 
export default Market;