import { post } from '@/utils/request.js'

/**
 * 临时工首次登记
 * @param {{
 *   realName: string,
 *   idCardNo: string,
 *   bankAccount: string,
 *   bankName: string,
 *   bankBranch?: string,
 *   agreedLaborContract: boolean,
 *   agreedPrivacyPolicy: boolean
 * }} data
 */
export function registerWorker(data) {
	return post('/worker/register', data)
}
