### 新增部门
此接口用于新增WMS中的部门
此接口需要认证,详情请查看《认证方式》。  

---

### 基本信息
方法:POST  
URL: http://localhost:8033/open/AddWmsDepartment

---

### 请求

__请求参数__

| 参数名 | 类型 | 必填 | 说明 |
| :-- | :-- | :-- | :-- |
| profile | String | 是 | 厂区|
| code | string | 是 | 部门编码 |
| name | string | 是 | 部门名称 |
| status | int | 是 | 状态 1:启用 0:不启用 |
| parentCode | string | 否 | 上级部门 |


__请求示例:__  
```
{
  "data":{
     "profile": "测试",
     "code": "dep1",
     "name":"部门1",
     "status": 0,
     "parentCode":"",
  }
}
````

---  

### 响应  
__响应字段__
| 字段 | 类型 | 说明 |
| :-- | :-- | :-- |
| clock | string | 当前服务器时钟。 |
| status | string | 状态,ok:成功,error:错误,exception:异常 |
| data | object | 成功后返回具体内容 |

__data:__
| 字段 | 类型 | 说明 |
| :-- | :-- | :-- |

```
{
  "clock": "2023-06-25 20:00:00.000",
  "status": "ok",
  "data": {
		"key": "c1f3202cc1ac4a9baa0ea48813e44635",
		"departmentname": "部门1",
		"departmentmark": "部门1",
		"canceled": null,
		"departmentcode": "dep1",
		"id": "dep1",
		"supdepid": "",
		"subcompanyid1": null,
		"status": 1,
		"created": "2023-12-06 15:15:56.911",
		"updated": "2023-12-06 15:15:56.911",
		"flag": 1
	}
}

```