You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
54 lines
1.4 KiB
54 lines
1.4 KiB
import request from '@/utils/request'
|
|
|
|
// USER_CODE_BEGIN -- enterprise_information
|
|
/**
|
|
* 获取企业信息列表
|
|
* @param params
|
|
* @returns
|
|
*/
|
|
export function getEnterpriseInformationList(params: Record<string, any>) {
|
|
return request.get(`zhjw/enterprise_information`, {params})
|
|
}
|
|
|
|
/**
|
|
* 获取企业信息详情
|
|
* @param id 企业信息id
|
|
* @returns
|
|
*/
|
|
export function getEnterpriseInformationInfo(id: number) {
|
|
return request.get(`zhjw/enterprise_information/${id}`);
|
|
}
|
|
|
|
/**
|
|
* 添加企业信息
|
|
* @param params
|
|
* @returns
|
|
*/
|
|
export function addEnterpriseInformation(params: Record<string, any>) {
|
|
return request.post('zhjw/enterprise_information', params, { showErrorMessage: true, showSuccessMessage: true })
|
|
}
|
|
|
|
/**
|
|
* 编辑企业信息
|
|
* @param id
|
|
* @param params
|
|
* @returns
|
|
*/
|
|
export function editEnterpriseInformation(params: Record<string, any>) {
|
|
return request.put(`zhjw/enterprise_information/${params.id}`, params, { showErrorMessage: true, showSuccessMessage: true })
|
|
}
|
|
|
|
/**
|
|
* 删除企业信息
|
|
* @param id
|
|
* @returns
|
|
*/
|
|
export function deleteEnterpriseInformation(id: number) {
|
|
return request.delete(`zhjw/enterprise_information/${id}`, { showErrorMessage: true, showSuccessMessage: true })
|
|
}
|
|
|
|
export function getWithCampusesList(params: Record<string,any>){
|
|
return request.get('zhjw/campuses_all', {params})
|
|
}
|
|
|
|
// USER_CODE_END -- enterprise_information
|
|
|