Versions Compared

Key

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

...

Panel
titleAPI Spec cập nhật chức năng

Method

PUT

URL

/system/resource/update

Description

API cập nhật thông tin chức năng

Note

API cũ, sửa lại

1. Headers

STT 

Field

Source Data Type / Length 

Description

Sample Values

1authorizationStringTokenBearer eyJhbGciOiJIUzI1NiJ9.eyJleHAiOjE3NjYzOTgyNDUsInVzZXIiOiJ7XCJpZFwiOjIwMjAsXCJ1c2VybmFtZVwiOlwiMDM3NDc4ODQwNVwiLFwibmFtZVwiOlwiQ2h1IFRo4buLIExpw6puXCIsXCJyb2xlc1wiOltdLFwibWFwQmVhdXR5U2Fsb25cIjp7XCJicG0ucmVib3JuLnZuXCI6Nn0sXCJlbXBsb3llZUlkXCI6NTMxLFwiYnJhbmNoSWRcIjoyM30ifQ.qRoaRDxjqyWS-3Az_ZqLmR0KAcPTM7jXggW1Ja5wpEc

2. RequestBody

STT

Field

Required

Data Type / Length

Description

Note

1

code

trueStringMã chức năng
2

name

trueStringTên chức năng
3

active

trueIntegerTrạng thái (0: inactive, 1: active)
4

uri

trueStringđường dẫn
5

actions

trueStringdanh sách các hành động
6

id

trueIntegerid chức năng
7

changed

trueIntegerđánh dấu xem có bỏ chọn quyền hay thay đổi trạng thái hay không

3. Response / Incoming Data Specification

STT

Field

Data Type / Length

Description

Note

1codeInteger0: thành công, 107: thất bại do trùng thông tin, 108: chức năng đã được cấu hình trong nhóm quyền, còn lại: thất bại
2messageString

3resultObjectObject
4

(result) id

IntegerId chức năng
5

(result) code

StringMã chức năng
6

(result) name

String

Tên chức năng


7

(result) active

Integer

Trạng thái (0: inactive, 1: active)


8

(result) uri

Stringđường dẫn
9

(result) actions

Stringhành động
10

(result) usageRecords

List<Object>danh sách các user/nhóm quyền đang sử dụng chức năng
11

(usageRecords) code

Stringmã chức năng
12

(usageRecords) name

Stringtên chức năng
13

(usageRecords) groupRoleCode

Stringmã nhóm quyền
14

(usageRecords) groupRoleName

Stringtên nhóm quyền
15

(usageRecords) employeeName

Stringtên user
16

(usageRecords) employeeEmail

Stringemail user
Panel
titleAPI Spec cập nhật chức năng

Method

PUT

URL

/system/resource/updateStatus

Description

API cập nhật trạng thái thông tin chức năng

Note

API mới

1. Headers

STT 

Field

Source Data Type / Length 

Description

Sample Values

1authorizationStringTokenBearer eyJhbGciOiJIUzI1NiJ9.eyJleHAiOjE3NjYzOTgyNDUsInVzZXIiOiJ7XCJpZFwiOjIwMjAsXCJ1c2VybmFtZVwiOlwiMDM3NDc4ODQwNVwiLFwibmFtZVwiOlwiQ2h1IFRo4buLIExpw6puXCIsXCJyb2xlc1wiOltdLFwibWFwQmVhdXR5U2Fsb25cIjp7XCJicG0ucmVib3JuLnZuXCI6Nn0sXCJlbXBsb3llZUlkXCI6NTMxLFwiYnJhbmNoSWRcIjoyM30ifQ.qRoaRDxjqyWS-3Az_ZqLmR0KAcPTM7jXggW1Ja5wpEc

2. RequestBody

STT

Field

Required

Data Type / Length

Description

Note

1

id

trueIntegerid chức năng
2

active

trueIntegerTrạng thái (0: inactive, 1: active)

3. Response / Incoming Data Specification

STT

Field

Data Type / Length

Description

Note

1codeInteger0: thành công, 107: thất bại do trùng thông tin, 108: chức năng đã được cấu hình trong nhóm quyền, còn lại: thất bại
2messageString

3resultObjectObject
4

(result) id

IntegerId chức năng
5

(result) code

StringMã chức năng
6

(result) name

String

Tên chức năng


7

(result) active

Integer

Trạng thái (0: inactive, 1: active)


8

(result) uri

Stringđường dẫn
9

(result) actions

Stringhành động
10

(result) usageRecords

List<Object>danh sách các user/nhóm quyền đang sử dụng chức năng
11

(usageRecords) code

Stringmã chức năng
12

(usageRecords) name

Stringtên chức năng
13

(usageRecords) groupRoleCode

Stringmã nhóm quyền
14

(usageRecords) groupRoleName

Stringtên nhóm quyền
15

(usageRecords) employeeName

Stringtên user
16

(usageRecords) employeeEmail

Stringemail user


3.4.1. Màn hình Danh mục chức năng

...