10.10综合交易所原始源码-管理后台
1
admin
2026-01-27 779dcd060d1f4e15f65fc43022ac9f7b009fc9ef
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
import { post, get, upload } from '@/utils/request'
import { getToken } from '@/utils/auth'
import config from '@/config/config'
 
// -------- 笔记相关 --------
 
// 查询用户文集分类服务接口
export const ServeGetArticleList = data => {
  return get('/api/v1/note/article/list', data)
}
 
// 编辑笔记服务接口
export const ServeEditArticle = data => {
  return post('/api/v1/note/article/editor', data)
}
 
// 删除笔记服务接口
export const ServeDeleteArticle = data => {
  return post('/api/v1/note/article/delete', data)
}
 
// 永久删除笔记回收站的笔记
export const ServeForeverDeleteArticle = data => {
  return post('/api/v1/note/article/forever/delete', data)
}
 
// 恢复笔记服务接口
export const ServeRecoverArticle = data => {
  return post('/api/v1/note/article/recover', data)
}
 
// 设置标记星号笔记服务接口
export const ServeSetAsteriskArticle = data => {
  return post('/api/v1/note/article/asterisk', data)
}
 
// 查询用户文集分类服务接口
export const ServeGetArticleDetail = data => {
  return get('/api/v1/note/article/detail', data)
}
 
// 移动笔记服务接口
export const ServeMoveArticle = data => {
  return post('/api/v1/note/article/move', data)
}
 
// 笔记图片上传服务接口
export const ServeUploadArticleImg = data => {
  return upload('/api/v1/note/article/upload/image', data)
}
 
// 更新笔记标签服务接口
export const ServeUpdateArticleTag = data => {
  return post('/api/v1/note/article/tag', data)
}
 
// -------- 笔记分类相关 --------
 
// 查询用户文集分类服务接口
export const ServeGetArticleClass = data => {
  return get('/api/v1/note/class/list', data)
}
 
// 添加或编辑文集分类服务接口
export const ServeEditArticleClass = data => {
  return post('/api/v1/note/class/editor', data)
}
 
// 删除笔记分类服务接口
export const ServeDeleteArticleClass = data => {
  return post('/api/v1/note/class/delete', data)
}
 
// 笔记分类排序服务接口
export const ServeArticleClassSort = data => {
  return post('/api/v1/note/class/sort', data)
}
 
// 合并笔记分类服务接口
export const ServeMergeArticleClass = data => {
  return post('/api/v1/note/article/merge', data)
}
 
// -------- 笔记标签相关 --------
 
// 获取笔记表标签服务接口
export const ServeGetArticleTag = data => {
  return get('/api/v1/note/tag/list', data)
}
 
// 添加或编辑笔记标签服务接口
export const ServeEditArticleTag = data => {
  return post('/api/v1/note/tag/editor', data)
}
 
// 删除笔记标签服务接口
export const ServeDeleteArticleTag = data => {
  return post('/api/v1/note/tag/delete', data)
}
 
// -------- 笔记附件相关 --------
 
// 笔记附件上传服务接口
export const ServeUploadArticleAnnex = data => {
  return upload('/api/v1/note/annex/upload', data)
}
 
// 移除笔记附件服务接口
export const ServeDeleteArticleAnnex = data => {
  return post('/api/v1/note/annex/delete', data)
}
 
// 永久删除笔记附件回收站文件
export const ServeForeverDeleteAnnex = data => {
  return post('/api/v1/note/annex/forever/delete', data)
}
 
// 恢复笔记附件服务接口
export const ServeRecoverArticleAnnex = data => {
  return post('/api/v1/note/annex/recover', data)
}
 
// 笔记附件回收站列表服务接口
export const ServeGetRecoverAnnexList = () => {
  return get('/api/v1/note/annex/recover/list')
}
 
// 下载笔记附件服务接口
export const ServeDownloadAnnex = annex_id => {
  let api = config.BASE_API_URL
  try {
    let link = document.createElement('a')
    link.target = "_blank"
    link.href = `${api}/api/v1/note/annex/download?annex_id=${annex_id}&token=${getToken()}`
    link.click()
  } catch (e) {
    console.error(e)
  }
}