忘了写到哪了
This commit is contained in:
76
src/api/identity/index.js
Normal file
76
src/api/identity/index.js
Normal file
@ -0,0 +1,76 @@
|
||||
import request from "@/utils/request";
|
||||
|
||||
// 首页每一项
|
||||
export function identity() {
|
||||
return request({
|
||||
url: "/app/getRoleStatus",
|
||||
});
|
||||
}
|
||||
// 当前状态
|
||||
export function settled() {
|
||||
return request({
|
||||
url: "/enterprise/v1/settled",
|
||||
});
|
||||
}
|
||||
// 当前状态切换
|
||||
export function identitySwitch(data) {
|
||||
return request({
|
||||
url: "/enterprise/v1/user/identity/switch",
|
||||
method: "post",
|
||||
data,
|
||||
});
|
||||
}
|
||||
// 申请企业入住
|
||||
export function insertEnterprise(data) {
|
||||
return request({
|
||||
url: "/app/insertEnterprise",
|
||||
method: "post",
|
||||
data,
|
||||
});
|
||||
}
|
||||
// 所属单位
|
||||
export function researchSelect() {
|
||||
return request({
|
||||
url: "/enterprise/v1/manage/research/select",
|
||||
});
|
||||
}
|
||||
// 所属单位>实验室
|
||||
export function laboratorySelect() {
|
||||
return request({
|
||||
url: "/enterprise/v1/manage/research/laboratory",
|
||||
});
|
||||
}
|
||||
// 专家入驻
|
||||
export function expert(data) {
|
||||
return request({
|
||||
url: "/enterprise/v1/settled/expert",
|
||||
method: "post",
|
||||
data,
|
||||
});
|
||||
}
|
||||
// 科研机构入驻
|
||||
export function research(data) {
|
||||
return request({
|
||||
url: "/enterprise/v1/settled/research",
|
||||
method: "post",
|
||||
data,
|
||||
});
|
||||
}
|
||||
|
||||
// 实验室入驻
|
||||
export function laboratory(data) {
|
||||
return request({
|
||||
url: "/enterprise/v1/settled/laboratory",
|
||||
method: "post",
|
||||
data,
|
||||
});
|
||||
}
|
||||
|
||||
// 实验室入驻
|
||||
export function agent(data) {
|
||||
return request({
|
||||
url: "/enterprise/v1/settled/agent",
|
||||
method: "post",
|
||||
data,
|
||||
});
|
||||
}
|
Reference in New Issue
Block a user