Appearance
查询产品列表 API
| Path | Method | Created At |
|---|---|---|
| /api/products/paginate | POST | 2025-11-29 00:39:11 |
Request
| Key | Rule | Description |
|---|---|---|
| page | integer,min:1,max:100 | 页码必须为正整数 |
| page_size | integer,min:5,max:1000 | 每页数量必须为正整数 |
| conditions | array | 查询条件不正确 |
Response
| Key | Type | Example | Comment |
|---|---|---|---|
| id | int | 1 | 编号 |
| name | string | 华三路由器 | 名称 |
| categoryId | int | 67 | 分类ID |
| categoryPath | array | ["安全设备"] | 父分类 |
| brandId | int | 2 | 品牌ID |
| brandName | string | H3C | 品牌名称 |
| code | string | sx-JEX-102 | 编号 |
| model | string | M-01 | 型号 |
| type | enum | ProductType | 产品类型 |
| authorizationType | enum | ProductAuthorizationType | 授权类型 |
| managerName | string | 张三 | 负责人姓名 |
| createdAt | string | 2024-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
| Const | Description |
|---|---|
| COMPLETED_WITHOUT_SERVICE | 过单无服务 |
| COMPLETED_WITH_SERVICE | 过单有服务 |
| DELIVERY_SIGNED_ONLY | 供货仅签收 |
| INTEGRATION_WITHOUT_ACCEPTANCE | 集成无初验 |
| INTEGRATION_WITH_ACCEPTANCE | 集成有初验 |
ProductAuthorizationType
| Const | Description |
|---|---|
| ON_SITE | 现场授权 |
| OFF_SITE | 非现场授权 |