开发了权限分配功能:实现了一个可以在后台勾选页面的功能,通过给角色勾选菜单,就能直接控制不同身份的人登录后能看到哪些页面。 开发了实名认证功能:实现了企业可以提交营业执照认证,个人可以提交身份证件和技能认证的功能,管理员在后台可以进行审核。 开发了任务大厅功能:实现了企业可以发布需要做的任务,个人用户能在任务大厅里看到这些任务,并且可以点击申请接单,大家都能看到任务是“进行中”还是“已完成”状态。 开发了专家库与邀约功能:实现了企业可以去专家库里搜索合适的人才,并且可以直接给他们发送工作邀约。 开发了平台数据大屏展示功能:实现了在首页和各自的工作台页面,展示任务数量、收益金额等核心数据的概览面板。
41 lines
1.3 KiB
TypeScript
41 lines
1.3 KiB
TypeScript
import api from './index';
|
|
|
|
// OPC认证接口
|
|
/**
|
|
* @author xujl
|
|
* Api说明: getCertifications 接口
|
|
*/
|
|
export const getCertifications = (params?: any) => api.get('/certifications/', { params });
|
|
/**
|
|
* @author xujl
|
|
* Api说明: getCertificationDetail 接口
|
|
*/
|
|
export const getCertificationDetail = (id: string) => api.get(`/certifications/${id}/`);
|
|
/**
|
|
* @author xujl
|
|
* Api说明: submitCertification 接口
|
|
*/
|
|
export const submitCertification = (data: { real_name: string; id_card?: string; skills?: string[]; experience?: string; resume_url?: string; attachments?: any[] }) => api.post('/certifications/', data);
|
|
/**
|
|
* @author xujl
|
|
* Api说明: updateCertification 接口
|
|
*/
|
|
export const updateCertification = (id: string, data: any) => api.put(`/certifications/${id}/`, data);
|
|
/**
|
|
* @author xujl
|
|
* Api说明: deleteCertification 接口
|
|
*/
|
|
export const deleteCertification = (id: string) => api.delete(`/certifications/${id}/`);
|
|
|
|
// 管理员审核操作
|
|
/**
|
|
* @author xujl
|
|
* Api说明: approveCertification 接口
|
|
*/
|
|
export const approveCertification = (id: string) => api.post(`/certifications/${id}/approve/`);
|
|
/**
|
|
* @author xujl
|
|
* Api说明: rejectCertification 接口
|
|
*/
|
|
export const rejectCertification = (id: string, reject_reason: string) => api.post(`/certifications/${id}/reject/`, { reject_reason });
|