# express **Repository Path**: spinggxdz/express ## Basic Information - **Project Name**: express - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2018-12-30 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README **NOTE** 校园网用户可以测试 目前实现了如下系统用例 - 新建快递 参数:提供 揽收快递员id,收、发人地址 - 包裹揽收 参数:提供节点名称 - 包裹运输 参数:提供要运输的包裹id,节点名称 - 运输到站 参数:提供到站包裹id - 快件历史查找 参数:提供待查快递id # Api 请求示例 **NOTE** 1. 以下所有请求域名均为`http://10.108.71.36:8080/`,故只给出路径参数 2. 所有请求都需设HTTP头部`Content-Type=appliaction/json` 3. 路径中用`{}`包围的要用相应id替换 ## 新建快件 - 路径:/es - 方法:POST - Body示例: { "accepter": "1", //快递员id "sender": { "address": "A" //发件方地址 }, "reveiver": { "address": "X" //收件方地址 } } ## 包裹揽收 - 路径:/pkgCollect - 方法:PUT - 查询字符串:nodeName=A ## 包裹运输 - 路径:/pkgTrans/{pkgId} //提供包裹Id - 方法:PUT - 查询字符串:nodeName=A - Body示例: { "userInfo": { "uid": 1 //快递员id } } ## 包裹到站 - 路径:/pkgArrive/{pkgId} //提供包裹Id - 方法:PUT ## 快件历史查找 - 路径:/history/{esId} //提供快件Id - 方法:GET - 响应体:某快件的所有历史(以包裹形式返回)