1. PCB Order Management APIs
PCB
  • pcb模版
    • PCB模版创建
      POST
    • PCB模版更新
      PUT
    • PCB删除模版(中and英一起删)
      DELETE
    • 根据id获取中文模版信息
      GET
    • 获得所有中文模版信息
      GET
  • 模版规则
    • 生成规则 (会生成中and英)
      POST
    • 查询所有规则(中文版)
      POST
    • 根据组合删除(会删除中and英)
      DELETE
    • 根据id查找规则
      POST
    • 查询所有规则(英文版)
      POST
  • PCB模版_国际化
    • 录入/修改中英文模版
      POST
    • 根据id获取中英文模版信息
      GET
    • 根据id获取英文模版信息
      GET
    • 获取所有的中英文模版信息
      GET
    • 获取所有的英文模版信息
      GET
  • 价格
    • 存储价格规则(中文)
      POST
    • 存储价格规则(英文)
      POST
    • 计算价格(中文)
      POST
    • 计算价格(英文)
      POST
    • 根据模版的ID获取所有的规则(中文)
      GET
    • 根据模版的ID获取所有的规则(英文)
      GET
    • 根据模版ID和规则ID获取价格规则(中文)
      GET
    • 根据模版ID和规则ID获取价格规则(英文)
      GET
    • 根据模版ID和规则条件获取价格规则(中文)
      POST
    • 根据模版OD和规则条件获取价格规则(英文)
      POST
    • 根据模版ID和模版规则ID删除规则
      DELETE
  • Authentication & User management APIs
    • 用户注册(版本1.0)
    • 用户登录(版本1.0)
    • 用户登出(版本1.0)
    • 带token获取个人信息(版本1.0)
    • 刷新token
    • 请求修改密码(预留邮件接口)
    • 修改密码
  • PCB Order Management APIs
    • 创建PCB订单
      POST
    • 分页查询(可选填status来过滤)
      GET
    • 查询订单信息(根据order_ID)
      GET
    • 更新订单信息(draft only,根据order_id)
      PUT
    • 根据id删除(软删除)
      DELETE
    • 查询详细订单信息(json文件)
      GET
    • 提交订单进行审核
      POST
    • 取消订单
      POST
  • File Upload APIs → Database index + Server Storcage
    • 上传gerber文件
    • 获取所有的上传的gerber文件(根据order_id)
    • 删除gerber文件(根据文件id)
    • 下载gerber文件(根据id,只能管理员工程师下载)
  • 用户配置文件管理(user profile)
    • 获取用户资料
    • 更新用户资料
  • 访客订单管理 API
    • 创建访客订单
    • 通过令牌获取访客订单
    • 将访客订单转移给注册用户
  • 订单状态管理
    • 更新订单状态
    • 获取订单状态历史
    • 添加状态历史记录
  • 订单分配与管理
    • 分配订单给工程师
  • 数据模型
    • Admin
    • OrderInfo
    • User
  1. PCB Order Management APIs

更新订单信息(draft only,根据order_id)

开发中
PUT
/api/orders/1

请求参数

Header 参数

Body 参数application/json

示例
{
  "basic_info": {
    "board_type": "FR4",
    "board_width": 200,
    "board_height": 90,
    "board_quantity": 10,
    "custom_quantity": null,
    "board_layers": 2,
    "product_type": "industrial",
    "confirm_file": "two_times",
    "panel_designs": 1,
    "shipping_method": "single"
  },
  "pcb_process": {
    "panel_count": 2,
    "delivery_method": "express",
    "final_thickness": 1.6,
    "glass_transition_temp": "TG150",
    "copper_outer": "1oz",
    "inner_copper": "1oz",
    "stackup_order": "standard",
    "impedance_required": "no",
    "solder_mask_color": "green",
    "silkscreen_color": "white",
    "via_covering": "none",
    "pad_surface_finish": "HASL",
    "min_via_diameter": "0.2",
    "circuit_test_type": "AOI"
  },
  "personalized_services": {
    "min_hole_diameter": 0.2,
    "gold_finger_bevel": "no",
    "circuit_test": "AOI_only",
    "electrical_test_coverage": "sample",
    "compensation_service": "none",
    "four_wire_test": "none",
    "qc_handling": "refund",
    "edge_plating": "no",
    "countersink_hole": "no",
    "backdrill": "no",
    "blind_slot": "no",
    "via_plating_method": "conductive_paste",
    "half_hole_castellations": "none",
    "routing_tolerance": 0.2,
    "press_fit_holes": "no",
    "silkscreen_process": "digital",
    "hd_silkscreen": "no",
    "appearance_grade": "standard",
    "packaging_label": "branded",
    "edge_grinding": "no",
    "shipping_reports": ["COC"],
    "production_barcode": "bw",
    "board_marking": "none",
    "order_remarks": "update"
  },
  "invoice_payment": {
    "invoice_type": "增值税普通发票",
    "order_confirmation": "required",
    "receipt_type": "电子发票",
    "shipping_address": "上海市张江高科800号",
    "contact_info": "张三 13888888888",
    "express_option": "顺丰"
  }
}

请求示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request PUT '/api/orders/1' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxIiwiZW1haWwiOiJ0ZXN0dXNlckBleGFtcGxlLmNvbSIsInJvbGUiOiJjbGllbnQiLCJpYXQiOjE3NTIzNjY5NTUsImV4cCI6MTc1Mjk3MTc1NX0.SRYIUe0uUgfAdLu8VR9amwoEUTv1A3uIkiaqWrxnyjo' \
--header 'Content-Type: application/json' \
--data '{
  "basic_info": {
    "board_type": "FR4",
    "board_width": 200,
    "board_height": 90,
    "board_quantity": 10,
    "custom_quantity": null,
    "board_layers": 2,
    "product_type": "industrial",
    "confirm_file": "two_times",
    "panel_designs": 1,
    "shipping_method": "single"
  },
  "pcb_process": {
    "panel_count": 2,
    "delivery_method": "express",
    "final_thickness": 1.6,
    "glass_transition_temp": "TG150",
    "copper_outer": "1oz",
    "inner_copper": "1oz",
    "stackup_order": "standard",
    "impedance_required": "no",
    "solder_mask_color": "green",
    "silkscreen_color": "white",
    "via_covering": "none",
    "pad_surface_finish": "HASL",
    "min_via_diameter": "0.2",
    "circuit_test_type": "AOI"
  },
  "personalized_services": {
    "min_hole_diameter": 0.2,
    "gold_finger_bevel": "no",
    "circuit_test": "AOI_only",
    "electrical_test_coverage": "sample",
    "compensation_service": "none",
    "four_wire_test": "none",
    "qc_handling": "refund",
    "edge_plating": "no",
    "countersink_hole": "no",
    "backdrill": "no",
    "blind_slot": "no",
    "via_plating_method": "conductive_paste",
    "half_hole_castellations": "none",
    "routing_tolerance": 0.2,
    "press_fit_holes": "no",
    "silkscreen_process": "digital",
    "hd_silkscreen": "no",
    "appearance_grade": "standard",
    "packaging_label": "branded",
    "edge_grinding": "no",
    "shipping_reports": ["COC"],
    "production_barcode": "bw",
    "board_marking": "none",
    "order_remarks": "update"
  },
  "invoice_payment": {
    "invoice_type": "增值税普通发票",
    "order_confirmation": "required",
    "receipt_type": "电子发票",
    "shipping_address": "上海市张江高科800号",
    "contact_info": "张三 13888888888",
    "express_option": "顺丰"
  }
}'

返回响应

🟢200成功
application/json
Bodyapplication/json

示例
{
    "code": 0,
    "message": "string",
    "data": {
        "id": 0,
        "userId": 0,
        "jsonPath": "string",
        "pcbParams": "string",
        "gerberPath": null,
        "price": null,
        "currency": null,
        "status": "string",
        "remark": null,
        "country": null,
        "createdAt": "string",
        "updatedAt": "string",
        "deleted": true
    }
}
修改于 2025-07-14 00:39:31
上一页
查询订单信息(根据order_ID)
下一页
根据id删除(软删除)
Built with