You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
673 B
38 lines
673 B
|
|
import Serve from '@/api/serve/index'
|
|
|
|
class Home {
|
|
// 获取大部分数据
|
|
static indexList(data,config){
|
|
return Serve.get('/indexList',data,config)
|
|
}
|
|
// 获取自选数据
|
|
static getCollect(){
|
|
return Serve.get('/getCollect')
|
|
}
|
|
|
|
/**
|
|
* 添加自选
|
|
* @param {object} data
|
|
* @param {string} data.pair_id
|
|
* @param {string} data.pair_name
|
|
*/
|
|
static option(data){
|
|
return Serve.post('/option',data)
|
|
}
|
|
|
|
/*
|
|
* 获取未读消息
|
|
*/
|
|
static chat(){
|
|
return Serve.get('/user/chat')
|
|
}
|
|
/*
|
|
* 已读消息
|
|
*/
|
|
static chatRead(){
|
|
return Serve.get('/user/chatRead')
|
|
}
|
|
}
|
|
|
|
export default Home;
|