Skip to main content

UserType

Dealing With UserType

In order to deal with the User and the functionality related to User, we use the interface UserType

interface UserType {
id?: number;
name?: string;
phone_number?: string;
email?: string;
date_of_birth?: string;
gender?: GenderType;
insurance_id?: string;
policy_number?: string;
nationality_number?: string;
height?: string;
weight?: string;
blood_type?: BloodType;
smoker?: BoolString;
alcoholic?: BoolString;
marital_status?: MaritalStatus;
created_at?: string;
updated_at?: string;
}

User Functionalities

The following are the functions related to user management:

APIParams
createUseruserData: UserType
updateUseruser: UserType,
user_id: String
getUseruser_id: String (required)
getUserspage: number,
perPage: number
deleteUseruser_id: String