import { requestClient } from '#/api/request';

export interface PageMeta {
  id: string;
  application_id?: string;
  name: string;
  code: string;
  category: string;
  description: string;
  status: string;
  version: number;
  page_config: Record<string, any>;
  sort: number;
  sys_create_datetime: string;
  sys_update_datetime: string;
}

export async function getPageByCodeApi(code: string) {
  return requestClient.get<PageMeta>(`/api/online_dev/page/code/${code}`);
}
