Compare commits

..

No commits in common. "009ef6eb796dde540031b451ddbddf272b12587a" and "4179845f8c0f7f39b00cd11755b79dd4b021b60f" have entirely different histories.

3 changed files with 0 additions and 100 deletions

View File

@ -1,7 +1,6 @@
import { LuMapPin } from "react-icons/lu";
import { HiOutlineMail } from "react-icons/hi";
import { FiPhone } from "react-icons/fi";
import bgimg from "../public/img/bg.png";
export const menuItems = [
{ id: 1, name: "صفحه اصلی", href: "/" },
@ -12,12 +11,6 @@ export const menuItems = [
{ id: 6, name: "ورود به پنل کاربری", href: "/Login" },
];
export const sliderItems = [
{ id: 1, img: bgimg },
{ id: 2, img: bgimg },
{ id: 3, img: bgimg },
];
export const boxItems = [
{
id: 1,

View File

@ -1,59 +0,0 @@
import axios from "axios";
import { CookieValueTypes } from "cookies-next";
axios.defaults.baseURL = "https://sootzaniapi.shetabdahi.ir/";
// Post Complaints
export async function postComplaintSubmit( {token , Data} : {
token: CookieValueTypes;
Data: { Title: string; Text: string ; CategoryId:string ; Medias?: any ; 'Captcha.Key': string ; 'Captcha.Value':string ; relevantDevice : number , relevantPerson:string};
}) {
const data = await axios.post(
`api/Citizen`,
Data,
{
headers: {
Authorization: `Bearer ${token}`,
"Content-Type": "multipart/form-data"
},
}
);
return data.data;
}
// Post 1 Complaints
export async function postComplaintTracking({token , Data} : {
token: CookieValueTypes;
Data: { trackingNumber: string; password :string;}
}) {
const data = await axios.post(
`api/Citizen/Get`,
Data,
{
headers: {
Authorization: `Bearer ${token}`,
},
}
);
return data.data;
}
// Post Complaints Details "citizen / Oprate"
export async function postComplaintsDetails( {token , Data} : {
token: CookieValueTypes;
Data: { TrackingNumber: string; Text: string ; Medias?: any ; Operation: number ; Password:string};
}) {
const data = await axios.post(
`api/Citizen`,
Data,
{
headers: {
Authorization: `Bearer ${token}`,
"Content-Type": "multipart/form-data"
},
}
);
return data.data;
}

View File

@ -1,34 +0,0 @@
import axios from "axios";
import { CookieValueTypes } from "cookies-next";
axios.defaults.baseURL = "https://sootzaniapi.shetabdahi.ir/";
// Get Category
export async function getCategory({token}:{token: CookieValueTypes}) {
const data = await axios.get(
"api/Common/Categories",
{
headers: {
Authorization: `Bearer ${token}`
},
}
);
return data.data;
}
// Get Captcha
export async function getCaptcha({token}:{token: CookieValueTypes}) {
const data = await axios.get(
"api/Common/Captcha",
{
headers: {
Authorization: `Bearer ${token}`
},
}
);
console.log(data)
return data;
}