Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Panel
titleAPI 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

1. Headers

STT 

Field

Source Data Type / Length 

Description

Sample Values

1authorizationStringTokenBearer eyJhbGciOiJIUzI1NiJ9.eyJleHAiOjE3NjYzOTgyNDUsInVzZXIiOiJ7XCJpZFwiOjIwMjAsXCJ1c2VybmFtZVwiOlwiMDM3NDc4ODQwNVwiLFwibmFtZVwiOlwiQ2h1IFRo4buLIExpw6puXCIsXCJyb2xlc1wiOltdLFwibWFwQmVhdXR5U2Fsb25cIjp7XCJicG0ucmVib3JuLnZuXCI6Nn0sXCJlbXBsb3llZUlkXCI6NTMxLFwiYnJhbmNoSWRcIjoyM30ifQ.qRoaRDxjqyWS-3Az_ZqLmR0KAcPTM7jXggW1Ja5wpEc

2. Param

STT

Field

Required

Data Type / Length

Description

Note


employeeIdtrueIntegerid nhân viên  

(updateLst)Object[]danh sách cập nhật quyền 


(updateLst) id




(updateLst) employeeId

Integermã nhân viên


(updateLst) resourceId

Integerid quyền


(rupdateLst) actions

Stringtrạng thái quyền : vd : "[\"VIEW\", \"ADD\", \"UPDATE\", \"DELETE\"]"


(createLst)Object[]danh sách thêm  mới quyền 


(createLst) employeeId

Integermã nhân viên


(createLst) resourceId

Integerid quyền


(createLst) actions

Stringtrạ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


codeInteger0: thành công, != 0 thất bại

messageString


resultObjectObject

...