complated

This commit is contained in:
Samandar Turgunboyev
2026-02-17 10:46:57 +05:00
parent 754f11804a
commit d747c72c8d
71 changed files with 917 additions and 397 deletions

View File

@@ -3,12 +3,12 @@ import { API_URLS } from '@/api/URLs';
import { ProductBody, ProductResponse } from '@/screens/home/lib/types';
import { AxiosResponse } from 'axios';
import {
ExployeesResponse,
MyAdsData,
MyAdsDataRes,
MyBonusesData,
NotificationListRes,
UserInfoResponseData,
ExployeesResponse,
MyAdsData,
MyAdsDataRes,
MyBonusesData,
NotificationListRes,
UserInfoResponseData,
} from './type';
export const user_api = {
@@ -36,8 +36,8 @@ export const user_api = {
person_type: 'employee' | 'legal_entity' | 'ytt' | 'band';
phone: string;
activate_types: number[];
age: number;
gender: 'male' | 'female';
age: number | null;
gender: 'male' | 'female' | null;
}) {
const res = await httpClient.patch(API_URLS.User_Update, body);
return res;
@@ -136,4 +136,9 @@ export const user_api = {
const res = await httpClient.post(API_URLS.Notification_Ready(id));
return res;
},
async mark_all_as_read() {
const res = await httpClient.post(API_URLS.Notification_Mark_All_Read);
return res;
},
};