API DOC for sub account (職安平台創建子帳號)
===

## **API**
- [post] 'sub-account/create'
- [post] 'sub-account/update/{id}'
- [post] 'sub-account/delete/{id}'
- [get]  'sub-accounts/show/all'

## Create (上傳)
### Body 
```
{
    "account": "account-here",
    "password": "password-here",
    "employee_id": 3,
    "permissions": [4, 6],              // nullable
}
```

## Read All (顯示所有子帳號)
### Response
```
[
    {
        "id": 1,
        "represent": "Grez Andy",
        "account": "andy01",
        "permissions": [
            {
                id: 1,
                name: "machines_w"
                name_zh: "編輯機械設備自動檢查"
            },
            {
                id: 2,
                name: "machines_r"
                name_zh: "閱讀機械設備自動檢查"
            },
        ]
    },
    {
        "id": 2,
        "represent": "Ferac Xero",
        "account": "zzxd_df",
        "permissions": [
            {
                id: 1,
                name: "machines_w"
                name_zh: "編輯機械設備自動檢查"
            },
            {
                id: 2,
                name: "machines_r"
                name_zh: "閱讀機械設備自動檢查"
            },
        ]
    },
]
```

## Update
### Body
```
{
    "password": "new-password-here",        // optional
    "permissions": [4, 6],                  // optional
}
```
- If the permission array is [1, 2, 3, 4], which means that [5, 6, ..., 10] permissions will be removed. 

## Delete
