...
3.3 API Spec: <gắn link tài liệu mô tả API vào đây>
API
...
đổi mật nhẩu nhân viên
Method | POST | URL | authenticator/user-management/change_pass |
|---|
Description | API đổi mật khẩu user |
|---|
Note |
|
|---|
| 1 | authorization | <token> | Token của người dùng đăng nhập | Bearer eyJhbGciOiJIUzI1NiJ9.eyJleHAiOjE3NjY0NTU3ODksInVzZXIiOiJ7XCJpZFwiOjIwMjAsXCJ1c2VybmFtZVwiOlwiMDM3NDc4ODQwNVwiLFwibmFtZVwiOlwiQ2h1IFRo4buLIExpw6puXCIsXCJyb2xlc1wiOltdLFwibWFwQmVhdXR5U2Fsb25cIjp7XCJicG0ucmVib3JuLnZuXCI6Nn0sXCJlbXBsb3llZUlkXCI6NTMxLFwiYnJhbmNoSWRcIjoyM30ifQ.wrvIFd-Q2kHgkTmPf6ryMY6aDIgXpNsWmSvvifQWc5k |
2. Request
| 2 | id | false | String | trạng thái làm việc |
|
|
| 3 | newPassword | false | Integer | trạng thái tài khoản |
|
|
3. Response / Incoming Data Specification
| 1 | code | Integer | 0: thành công, != 0 thất bại |
|
|
| 2 | msg_code | String |
|
|
|
| 3 | detail | Object[] | Object |
| tra ve khi validate lỗi |
| 4 | (detail) field | message | string |
| changePass.user.newPassword |
| 5 | (result) msg | message | string |
| Độ dài từ 8 đến 20 ký tự |
| Panel |
|---|
| title | API lưu nhóm quyền và quyền chi tiết của 1 nhân viên |
|---|
|
Method | Get | URL | system/employee/permisstion/get?id=... |
|---|
Description | API lấy thông tin danh sách nhóm quyền và quyền chi tiết của 1 nhân viên |
|---|
Note | API mới |
|---|
STT | Field | Source Data Type / Length | Description | Sample Values |
|---|
| 1 | authorization | String | Token | Bearer eyJhbGciOiJIUzI1NiJ9.eyJleHAiOjE3NjYzOTgyNDUsInVzZXIiOiJ7XCJpZFwiOjIwMjAsXCJ1c2VybmFtZVwiOlwiMDM3NDc4ODQwNVwiLFwibmFtZVwiOlwiQ2h1IFRo4buLIExpw6puXCIsXCJyb2xlc1wiOltdLFwibWFwQmVhdXR5U2Fsb25cIjp7XCJicG0ucmVib3JuLnZuXCI6Nn0sXCJlbXBsb3llZUlkXCI6NTMxLFwiYnJhbmNoSWRcIjoyM30ifQ.qRoaRDxjqyWS-3Az_ZqLmR0KAcPTM7jXggW1Ja5wpEc |
2. ParamSTT | Field | Required | Data Type / Length | Description | Note |
|---|
| 1 | id | true | Integer | id nhân viên |
|
3. Response / Incoming Data Specification| STT | Field | Data Type / Length | Description | Note |
|---|
| code | Integer | 0: thành công, != 0 thất bại |
|
| message | String |
|
|
| result | Object | Object |
|
| (result.lstEmployeeResource) | Object[] | danh sách quyền người dùng tích chọn riêng |
|
| (result.lstEmployeeResource) id | Integer | Id nhân viên |
|
| (result.lstEmployeeResource) employeeId | Integer | mã nhân viên |
|
| (result.lstEmployeeResource) resourceId | Integer | id quyền |
|
| (result.lstEmployeeResource) actions | String | trạng thái quyền : vd : "[\"VIEW\", \"ADD\", \"UPDATE\", \"DELETE\"]" |
|
|
|
|
|
|
| (result.lstGroupRole) | Object[] | danh sách nhóm quyền đã gắn với nhân viên |
|
| (result.lstGroupRole) id | Integer | Id nhân viên |
|
| (result.lstGroupRole) employeeId | Integer | mã nhân viên |
|
| (result.lstGroupRole) resourceId | Integer | id quyền |
|
| (result.lstGroupRole) code | String | mã nhóm quyền |
|
| (result.lstGroupRole) name | String | tên nhóm quyền |
|
| (result.lstGroupRole) status | String | trạng thái |
|
| (result.lstGroupRole.lstResources) id | String | trạng thái làm việc |
|
| (result.lstGroupRole.lstResources) code | String | mã quyền |
|
| (result.lstGroupRole.lstResources) name | String | tên quyền |
|
| (result.lstGroupRole.lstResources) actions | String | trạng thái quyền : vd : "[\"VIEW\", \"ADD\", \"UPDATE\", \"DELETE\"]" |
|
|
|
|
|
|
|
|
|
|
|
|
| Panel |
|---|
| title | API lưu nhóm quyền và quyền chi tiết của 1 nhân viên |
|---|
|
Method | Get | URL | system/employee/permisstion/update |
|---|
Description | API lưu nhóm quyền và quyền chi tiết của 1 nhân viên |
|---|
Note | API mới |
|---|
STT | Field | Source Data Type / Length | Description | Sample Values |
|---|
| 1 | authorization | String | Token | Bearer eyJhbGciOiJIUzI1NiJ9.eyJleHAiOjE3NjYzOTgyNDUsInVzZXIiOiJ7XCJpZFwiOjIwMjAsXCJ1c2VybmFtZVwiOlwiMDM3NDc4ODQwNVwiLFwibmFtZVwiOlwiQ2h1IFRo4buLIExpw6puXCIsXCJyb2xlc1wiOltdLFwibWFwQmVhdXR5U2Fsb25cIjp7XCJicG0ucmVib3JuLnZuXCI6Nn0sXCJlbXBsb3llZUlkXCI6NTMxLFwiYnJhbmNoSWRcIjoyM30ifQ.qRoaRDxjqyWS-3Az_ZqLmR0KAcPTM7jXggW1Ja5wpEc |
2. ParamSTT | Field | Required | Data Type / Length | Description | Note |
|---|
| employeeId | true | Integer | id nhân viên |
|
| (updateLst) | Object[] |
|
|
|
| (updateLst) id |
|
|
|
|
| (updateLst) employeeId | Integer | mã nhân viên |
|
|
| (updateLst) resourceId | Integer | id quyền |
|
|
| (rupdateLst) actions | String | trạng thái quyền : vd : "[\"VIEW\", \"ADD\", \"UPDATE\", \"DELETE\"]" |
|
|
| (createLst) | Object[] |
|
|
|
| (createLst) employeeId | Integer | mã nhân viên |
|
|
| (createLst) resourceId | Integer | id quyền |
|
|
| (createLst) actions | String | trạng thái quyền : vd : "[\"VIEW\", \"ADD\", \"UPDATE\", \"DELETE\"]" |
|
|
| (deleteLst) | Integer[] | xóa danh sách quyền của user |
|
|
| (groupRolesUpdateLst) | Object[] | thông tin nhóm quyền update |
|
|
| (groupRolesUpdateLst) id | Integer |
|
|
|
| (groupRolesUpdateLst) employeeId | Integer |
|
|
|
| (groupRolesUpdateLst) groupRoleId | Integer |
|
|
|
| (groupRolesCreateLst) | Object[] | thông tin nhóm quyền create |
|
|
| (groupRolesCreateLst) id | Integer |
|
|
|
| (groupRolesCreateLst) employeeId | Integer |
|
|
|
| (groupRolesCreateLst) groupRoleId | Integer |
|
|
|
| (groupRolesDeleteLst) | Integer[] | xóa nhóm quyền ( danh sách nhóm quyền id) |
|
|
3. Response / Incoming Data Specification| STT | Field | Data Type / Length | Description | Note |
|---|
| code | Integer | 0: thành công, != 0 thất bại |
|
| message | String |
|
|
| result | Object | Object |
|
|
3.4 Mô tả các trường dữ liệu trên màn hình:
...