| | |
| | | // @ts-ignore |
| | | import { request } from '@/utils/request'; |
| | | |
| | | /** 企业批量签约合同 POST /api/user/enterpriseEmployee/batchEnterpriseSignContract */ |
| | | export async function batchEnterpriseSignContract( |
| | | body: API.BatchEnterpriseSignContractCommand, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<API.BatchEnterpriseSignContractCommandResult>( |
| | | '/api/user/enterpriseEmployee/batchEnterpriseSignContract', |
| | | { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json-patch+json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | } |
| | | ); |
| | | } |
| | | |
| | | /** 编辑灵工信息 POST /api/user/enterpriseEmployee/editEnterpriseEmployee */ |
| | | export async function editEnterpriseEmployee( |
| | | body: API.EditEnterpriseEmployeeCommand, |
| | |
| | | body: API.InviteElectronSignCommand, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<string>('/api/user/enterpriseEmployee/inviteElectronSign', { |
| | | return request<number>('/api/user/enterpriseEmployee/inviteElectronSign', { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json-patch+json', |
| | |
| | | ); |
| | | } |
| | | |
| | | /** 发送邀请签约短信 POST /api/user/enterpriseEmployee/sendInviteElectronSignSms */ |
| | | export async function sendInviteElectronSignSms( |
| | | body: API.SendInviteElectronSignSmsCommand, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<number>('/api/user/enterpriseEmployee/sendInviteElectronSignSms', { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json-patch+json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** 灵工解约 POST /api/user/enterpriseEmployee/stopElectronSign */ |
| | | export async function stopElectronSign( |
| | | body: API.StopElectronSignCommand, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<string>('/api/user/enterpriseEmployee/stopElectronSign', { |
| | | return request<number>('/api/user/enterpriseEmployee/stopElectronSign', { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json-patch+json', |