all types move to file types
This commit is contained in:
@@ -2,6 +2,7 @@ import axios from "@/config/axios";
|
||||
import type {
|
||||
CreateFoodType,
|
||||
GetCategoriesResponseType,
|
||||
GetFoodsParams,
|
||||
GetFoodsResponseType,
|
||||
} from "../types/Types";
|
||||
|
||||
@@ -10,16 +11,6 @@ export const createFood = async (params: CreateFoodType) => {
|
||||
return data;
|
||||
};
|
||||
|
||||
export type GetFoodsParams = {
|
||||
page?: number;
|
||||
limit?: number;
|
||||
search?: string;
|
||||
orderBy?: string;
|
||||
order?: "asc" | "desc";
|
||||
categoryId?: string;
|
||||
isActive?: boolean;
|
||||
};
|
||||
|
||||
export const getFoods = async (
|
||||
params?: GetFoodsParams
|
||||
): Promise<GetFoodsResponseType> => {
|
||||
|
||||
Reference in New Issue
Block a user