Skip to content

查询产品列表 API

PathMethodCreated At
/api/products/paginatePOST2025-11-29 00:39:11

Request

KeyRuleDescription
pageinteger,min:1,max:100页码必须为正整数
page_sizeinteger,min:5,max:1000每页数量必须为正整数
conditionsarray查询条件不正确

Response

KeyTypeExampleComment
idint1编号
namestring华三路由器名称
categoryIdint67分类ID
categoryPatharray["安全设备"]父分类
brandIdint2品牌ID
brandNamestringH3C品牌名称
codestringsx-JEX-102编号
modelstringM-01型号
typeenumProductType产品类型
authorizationTypeenumProductAuthorizationType授权类型
managerNamestring张三负责人姓名
createdAtstring2024-01-02 03:02:43创建时间

TypeScript Result Example:

TypeScript
interface Result {
  /** 编号 */
  id: number;
  /** 名称 */
  name: string;
  /** 分类ID */
  categoryId: number;
  /** 父分类 */
  categoryPath: any;
  /** 品牌ID */
  brandId: number;
  /** 品牌名称 */
  brandName: string;
  /** 编号 */
  code: string;
  /** 型号 */
  model: string;
  /** 产品类型 */
  type: ResultType;
  /** 授权类型 */
  authorizationType: ResultAuthorizationType;
  /** 负责人姓名 */
  managerName: string;
  /** 创建时间 */
  createdAt: string;
}

enum ResultType {
  /** 过单无服务 */
  COMPLETED_WITHOUT_SERVICE = "COMPLETED_WITHOUT_SERVICE",
  /** 过单有服务 */
  COMPLETED_WITH_SERVICE = "COMPLETED_WITH_SERVICE",
  /** 供货仅签收 */
  DELIVERY_SIGNED_ONLY = "DELIVERY_SIGNED_ONLY",
  /** 集成无初验 */
  INTEGRATION_WITHOUT_ACCEPTANCE = "INTEGRATION_WITHOUT_ACCEPTANCE",
  /** 集成有初验 */
  INTEGRATION_WITH_ACCEPTANCE = "INTEGRATION_WITH_ACCEPTANCE"
}

enum ResultAuthorizationType {
  /** 现场授权 */
  ON_SITE = "ON_SITE",
  /** 非现场授权 */
  OFF_SITE = "OFF_SITE"
}

Enums

ProductType

ConstDescription
COMPLETED_WITHOUT_SERVICE过单无服务
COMPLETED_WITH_SERVICE过单有服务
DELIVERY_SIGNED_ONLY供货仅签收
INTEGRATION_WITHOUT_ACCEPTANCE集成无初验
INTEGRATION_WITH_ACCEPTANCE集成有初验

ProductAuthorizationType

ConstDescription
ON_SITE现场授权
OFF_SITE非现场授权