前端第一版
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
import { moduleRequest } from "@/api/request";
|
||||
|
||||
const http = moduleRequest("/open/onboarding/");
|
||||
|
||||
export const onboardingPublicApi = {
|
||||
detail(token: string) {
|
||||
return http.post("detail", { token });
|
||||
},
|
||||
|
||||
saveEmployeeInfo(params: Record<string, unknown>) {
|
||||
return http.post("save-employee-info", params);
|
||||
},
|
||||
|
||||
saveDynamicValues(params: {
|
||||
token: string;
|
||||
values: Array<{
|
||||
fieldId: number;
|
||||
fieldValue: string;
|
||||
}>;
|
||||
}) {
|
||||
return http.post("save-dynamic-values", params);
|
||||
},
|
||||
|
||||
confirmContract(params: {
|
||||
token: string;
|
||||
taskContractId: number;
|
||||
}) {
|
||||
return http.post("confirm-contract", params);
|
||||
},
|
||||
|
||||
submit(token: string) {
|
||||
return http.post("submit", { token });
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user