import apiClient from "@/lib/axiosClient";
import { API_ENDPOINTS } from "@/lib/apiEndpoints";

export interface MoreProduct {
  id: number;
  name: string;
  redirect_url: string;
  storage_type: number;
  icon: string;
  status: number;
  created_at: string;
  updated_at: string;
}

export interface MoreProductsResponse {
  status: number;
  message: string;
  result: MoreProduct[];
}

export const moreProductsService = {
  getProducts: (): Promise<MoreProductsResponse> =>
    apiClient.post(API_ENDPOINTS.GET_MORE_PRODUCTS).then((r) => r.data),
};
