getProductPage (product/index.ts)

ruoyi-office-vben · apps/web-antd/src/api/crm/product/index.ts · typescript · MIT
crm

API client for product CRUD operations and listing in a CRM system.

// Source: https://github.com/yuqing2026/ruoyi-office-vben | License: MIT | Copyright 2024-present, Vben
// Provided via justclaw.it.com; keep this notice with the code.
import type { PageParam, PageResult } from '@vben/request';

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

export namespace CrmProductApi {
  /** 产品信息 */
  export interface Product {
    id: number;
    name: string;
    no: string;
    unit: number;
    price: number;
    status: number;
    categoryId: number;
    categoryName?: string;
    description: string;
    ownerUserId: number;
  }
}

/** 查询产品列表 */
export function getProductPage(params: PageParam) {
  return requestClient.get<PageResult<CrmProductApi.Product>>(
    '/crm/product/page',
    { params },
  );
}

/** 获得产品精简列表 */
export function getProductSimpleList

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key