|
@@ -0,0 +1,24 @@
|
|
|
+import {get,post} from '@/api/index'
|
|
|
+
|
|
|
+export default{
|
|
|
+ // 获取图表详情
|
|
|
+ getChartDetail:params=>{
|
|
|
+ return get('/mychart/detail',params)
|
|
|
+ },
|
|
|
+ // 收藏图表
|
|
|
+ chartCollect:params=>{
|
|
|
+ return post('/mychart/collect',params)
|
|
|
+ },
|
|
|
+ // 取消收藏图表
|
|
|
+ chartCollectCancel:params=>{
|
|
|
+ return post('/mychart/collectCancel',params)
|
|
|
+ },
|
|
|
+ // 获取首页进入图表上一张下一张信息
|
|
|
+ commonChartLocate:()=>{
|
|
|
+ return get('/chart/locate',{})
|
|
|
+ },
|
|
|
+ // 获取收藏进入图表上一张下一张信息
|
|
|
+ myChartLocate:()=>{
|
|
|
+ return get('/mychart/locate',{})
|
|
|
+ }
|
|
|
+}
|