<commit_before>## 资费套餐查询


### 接口描述

- 查询资费套餐

### 请求URL

- ` http://server:port/v1/api/product/query `
      
### 请求方式

- POST 

示例：

    GET /v1/api/product/query?sign=1BB40565D6C88276085719A5964BE3E0&product_id=1 HTTP/1.1
<<<<<<< HEAD

=======
>>>>>>> cbb6fa4a9acbf3a9394078088fde0988012dbda9

### 参数

| 参数名 | 必选 | 类型 | 说明 |
|---|:---|:---:|---:|
| product_id | 否 | string |资费ID |

### 返回结果

**返回示例：**

<<<<<<< HEAD

    {
      "code": 0,
      "msg": "success",
      "products": [
         {
           "id": 1,
           "product_name": "测试2M包月20元",
           "product_policy": 0,
           "product_status": 0,
           "bind_mac": 0,
           "bind_vlan": 0,
           "concur_number": 0,
           "fee_months": 0,
           "fee_times": 0,
           "fee_flows": 0,
           "fee_price": 2000,
           "input_max_limit": 1048576,
           "output_max_limit": 2097152,
           "create_time": "2016-02-20 17:59:09",
           "update_time": "2016-02-20 17:59:09"
         }
      ],
      "nonce": "1456369956",
      "sign": "AD1E70D8CEB98D4F6DDE193E7860F587"
=======
    {
        "code": 0,
        "msg": "success",
        "products": [
           {
             "id": 1,
             "product_name": "测试2M包月20元",
             "product_policy": 0,
             "product_status": 0,
             "bind_mac": 0,
             "bind_vlan": 0,
             "concur_number": 0,
             "fee_months": 0,
             "fee_times": 0,
             "fee_flows": 0,
             "fee_price": 2000,
             "input_max_limit": 1048576,
             "output_max_limit": 2097152,
             "create_time": "2016-02-20 17:59:09",
             "update_time": "2016-02-20 17:59:09"
           }
        ],
        "nonce": "1456369956",
        "sign": "AD1E70D8CEB98D4F6DDE193E7860F587"
>>>>>>> cbb6fa4a9acbf3a9394078088fde0988012dbda9
    }

**返回结果描述：**

- code：返回结果码， 0 成功， 1 失败
- msg：返回消息
- products：产品套餐列表，如果参数product_id不为空，则返回指定套餐，若套餐不存在，返回空。
- nonce：随机时间戳
- sign：消息签名<commit_msg>commit toughradius gitbook 2016-03-03 09:05:41<commit_after>## 资费套餐查询


### 接口描述

- 查询资费套餐

### 请求URL

- ` http://server:port/v1/api/product/query `
      
### 请求方式

- POST 

示例：

    GET /v1/api/product/query?sign=1BB40565D6C88276085719A5964BE3E0&product_id=1 HTTP/1.1


### 参数

| 参数名 | 必选 | 类型 | 说明 |
|---|:---|:---:|---:|
| product_id | 否 | string |资费ID |

### 返回结果

**返回示例：**



    {
      "code": 0,
      "msg": "success",
      "products": [
         {
           "id": 1,
           "product_name": "测试2M包月20元",
           "product_policy": 0,
           "product_status": 0,
           "bind_mac": 0,
           "bind_vlan": 0,
           "concur_number": 0,
           "fee_months": 0,
           "fee_times": 0,
           "fee_flows": 0,
           "fee_price": 2000,
           "input_max_limit": 1048576,
           "output_max_limit": 2097152,
           "create_time": "2016-02-20 17:59:09",
           "update_time": "2016-02-20 17:59:09"
         }
      ],
      "nonce": "1456369956",
      "sign": "AD1E70D8CEB98D4F6DDE193E7860F587"
    }

**返回结果描述：**

- code：返回结果码， 0 成功， 1 失败
- msg：返回消息
- products：产品套餐列表，如果参数product_id不为空，则返回指定套餐，若套餐不存在，返回空。
- nonce：随机时间戳
- sign：消息签名
{'fraction_non_alphanumeric': 0.17487531172069826, 'fraction_numerical': 0.11876558603491272, 'mean_word_length': 1.8423383525243577, 'pattern_counts': {'":': 60, '<': 17, '<?xml version=': 0, '>': 17, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4114560', 'n_tokens_mistral': 1659, 'n_tokens_neox': 1503, 'n_words': 196}