| | |
| | | // @ts-ignore |
| | | import { request } from '@/utils/request'; |
| | | |
| | | /** 删除企业地址 DELETE /api/user/enterprise/deleteEnterpriseAddress */ |
| | | export async function deleteEnterpriseAddress( |
| | | body: API.DeleteEnterpriseAddressCommand, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<number>('/api/user/enterprise/deleteEnterpriseAddress', { |
| | | method: 'DELETE', |
| | | headers: { |
| | | 'Content-Type': 'application/json-patch+json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** 查询企业详情 GET /api/user/enterprise/getEnterprise */ |
| | | export async function getEnterprise( |
| | | // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) |
| | |
| | | }); |
| | | } |
| | | |
| | | /** 查询企业地址详情 GET /api/user/enterprise/getEnterpriseAddress */ |
| | | export async function getEnterpriseAddress( |
| | | // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) |
| | | params: API.APIgetEnterpriseAddressParams, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<API.GetEnterpriseAddressQueryResult>('/api/user/enterprise/getEnterpriseAddress', { |
| | | method: 'GET', |
| | | params: { |
| | | ...params, |
| | | }, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** 查询企业地址分页列表 POST /api/user/enterprise/getEnterpriseAddresses */ |
| | | export async function getEnterpriseAddresses( |
| | | body: API.GetEnterpriseAddressesQuery, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<API.GetEnterpriseAddressesQueryResult>( |
| | | '/api/user/enterprise/getEnterpriseAddresses', |
| | | { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json-patch+json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | } |
| | | ); |
| | | } |
| | | |
| | | /** 查询企业电子签配置 GET /api/user/enterprise/getEnterpriseElectronSignSetting */ |
| | | export async function getEnterpriseElectronSignSetting( |
| | | // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) |
| | |
| | | ); |
| | | } |
| | | |
| | | /** 查询企业保险配置 GET /api/user/enterprise/getEnterpriseInsuranceSetting */ |
| | | export async function getEnterpriseInsuranceSetting( |
| | | // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) |
| | | params: API.APIgetEnterpriseInsuranceSettingParams, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<API.GetEnterpriseInsuranceSettingQueryResult>( |
| | | '/api/user/enterprise/getEnterpriseInsuranceSetting', |
| | | { |
| | | method: 'GET', |
| | | params: { |
| | | ...params, |
| | | }, |
| | | ...(options || {}), |
| | | } |
| | | ); |
| | | } |
| | | |
| | | /** 查询企业信息分页列表数据 POST /api/user/enterprise/getEnterprises */ |
| | | export async function getEnterprises(body: API.GetEnterprisesQuery, options?: API.RequestConfig) { |
| | | return request<API.PagedListQueryResultGetEnterprisesQueryResultItem>( |
| | |
| | | }); |
| | | } |
| | | |
| | | /** 保存企业地址 POST /api/user/enterprise/saveEnterpriseAddress */ |
| | | export async function saveEnterpriseAddress( |
| | | body: API.SaveEnterpriseAddressCommand, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<string>('/api/user/enterprise/saveEnterpriseAddress', { |
| | | method: 'POST', |
| | | headers: { |
| | | 'Content-Type': 'application/json-patch+json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** 保存企业费用 POST /api/user/enterprise/saveEnterpriseCost */ |
| | | export async function saveEnterpriseCost( |
| | | body: API.SaveEnterpriseCostCommand, |
| | |
| | | }); |
| | | } |
| | | |
| | | /** 设置企业保险配置 PUT /api/user/enterprise/setEnterpriseInsuranceSetting */ |
| | | export async function setEnterpriseInsuranceSetting( |
| | | body: API.SetEnterpriseInsuranceSettingCommand, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<string>('/api/user/enterprise/setEnterpriseInsuranceSetting', { |
| | | method: 'PUT', |
| | | headers: { |
| | | 'Content-Type': 'application/json-patch+json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** 设置企业登录用户信息 PUT /api/user/enterprise/setEnterpriseLoginInfo */ |
| | | export async function setEnterpriseLoginInfo( |
| | | body: API.SetEnterpriseLoginInfoCommand, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | return request<string>('/api/user/enterprise/setEnterpriseLoginInfo', { |
| | | method: 'PUT', |
| | | headers: { |
| | | 'Content-Type': 'application/json-patch+json', |
| | | }, |
| | | data: body, |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** 设置企业短信配置 PUT /api/user/enterprise/setEnterpriseSmsSetting */ |
| | | export async function setEnterpriseSmsSetting( |
| | | body: API.SetEnterpriseSmsSettingCommand, |