mediahub-fe/service/survey/survey.ts

20 lines
518 B
TypeScript

import {
httpGetInterceptor,
httpPostInterceptor,
} from "../http-config/http-interceptor-service";
export async function createSurveyData(data: any) {
const pathUrl = "users/satisfaction-survey";
return httpPostInterceptor(pathUrl, data);
}
export async function getSurveyData() {
const url = `users/satisfaction-survey/pagination`;
return httpGetInterceptor(url);
}
export async function getSurveyById(id: any) {
const url = `users/satisfaction-survey?id=${id}`;
return httpGetInterceptor(url);
}