杨磊
2024-04-19 302af44359c17900d09f05caa16f24dd7fce2355
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
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
import req from '@/utils/request/req1.js'
import req1 from '@/utils/request/req1.js'
import qs from 'querystring'
// 注册登录
export const getaddLogin = (Obj) => {
    return req1({
        url: '/account/register',
        method: 'post',
        data: Obj
    })
}
 
// 验证码   /account/verifyCode
export const getverifyCode = (req) => {
    console.log(req, qs.encode(req), 'rrr');
    return req1({
        url: "/account/verifyCode",
        method: "post",
        data: req,
        headers: {
            'Content-Type': 'multipart/form-data'
        }
    })
}
 
// login 登录
export const getLogin = (req) => {
    console.log(req, qs.encode(req), 'rrr');
    return req1({
        url: "/account/verification",
        method: "post",
        data: req,
    })
}
// 获取用户信息
export const getUserInfo = () => {
    return req1({
        url: "/account/getUserInfo",
        method: "post",
    })
}
 
// 重置密码
export const getRestPassword = (Obj) => {
    return req1({
        url: '/account/resetPassword',
        method: 'post',
        data: Obj
    })
}
 
// 退出登录
export const getlogout = () => {
    return req1({
        url: "/account/logout",
        method: "post",
    })
}
 
// 修改密码
export const getchangePassword = (obj) => {
    return req1({
        url: "/account/changePassword",
        method: "post",
        data: obj
    })
}
 
// 
// 人物相关接口的数据输出
export const getdataOutput = () => {
    return req1({
        url: "/person/dataOutput",
        method: "post",
    })
}
 
// 人物相关的 热门搜索
export const getHotSearch = () => {
    return req1({
        url: '/person/hotSearch',
        method: 'post'
    })
}
// 人物相关的 来源
export const getSource = (id) => {
    return req1({
        url: '/person/source',
        method: 'post',
        data: id
    })
}
// 人物相关的 个人时空地图 
export const getSpaceTime = (id) => {
    return req1({
        url: '/person/spaceTime',
        method: 'post',
        data: id
    })
}
 
// 医学人物知识库的相关图表
export const getImages = (id) => {
    return req1({
        url: '/person/images',
        method: 'post',
        data: id
    })
}
// 医学人物知识库 著述
export const getWritings = (id) => {
    return req1({
        url: '/person/writings',
        method: 'post',
        data: id
    })
}
// 医学人物知识库 人物详情
export const getPersonInfo = (Obj) => {
    return req1({
        url: '/person/getPersonInfo',
        method: 'post',
        data: Obj
    })
}
// 医学人物知识库 基础检索  
export const getFuzzySearch = (Obj) => {
    console.log(Obj, 'sss');
    return req1({
        url: '/person/fuzzySearch?keyword=' + Obj,
        method: 'post',
        // data:Obj
    })
}
 
// 医学人物知识库 高级检索  
export const getAdvanceSearch = (Obj) => {
    return req1({
        url: '/person/advanceSearch',
        method: 'post',
        data: Obj
    })
}
 
// 中国地域地谱检索人物
export const getRetrieval = (dynastyNumber, name) => {
    return req1({
        url: '/person/retrieval',
        method: 'post',
        data: {
            dynasty: dynastyNumber,
            keyword: name
        }
    })
}
// 医学人物知识库
 
// 检索页
// 基础、高级检索 ------------------------------
export const getPList = (person) => {
    return req1({
        url: '/person/list',
        method: 'post',
        data: person
    })
}
// 检索数据到出
export const getPDownload = () => {
    return req1({
        url: '/person/download',
        method: 'post'
    })
}
// -------------------------P
 
 
 
 
// 医事制度
// 数据统计
export const getDataStatistics = () => {
    return req1({
        url: '/medical/dataStatistics',
        method: 'post'
    })
}
// 查询
export const getMedicalList = (data) => {
    return req1({
        url: '/medical/list',
        method: 'post',
        data: data
    })
}
// 详情
export const getMedicalDetails = (Obj) => {
    return req1({
        url: '/medical/details',
        method: 'post',
        data: Obj
    })
}
// 取值:RDF、NT、XML、JSON
export const getMedicalDataOutput = (Obj) => {
    return req1({
        url: '/medical/dataOutput',
        method: 'post',
        data: Obj
    })
}
 
// -----------
 
// 中国医学人物知识库
// 数据统计
export const getPDataStatistics = () => {
    return req1({
        url: '/person/dataStatistics',
        method: 'post'
    })
}
// ----------------