Versions Compared

Key

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

...

Panel
titleAPI Spec get danh sách tài liệu

Method

Get

URL

/application/attachment/list

Description

API lấy danh sách tài liệu có phân trang, tab tất cả tài liệu

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

1limittrueInteger

2pagetrueInteger

3attachmentTypeIdfalseIntegerid loại tài liệu
4createdByfalseIntegerid người tạo
5startTimefalseStringthời gian tạo (từ ngày)
6endTimefalseStringthời gian tạo (đến ngày)
7tenderPackageIdfalseIntegerid gói thầu
8caseIdfalseIntegerid dự án
9workflowIdfalseIntegerid quy trình
10nodeIdfalseIntegerid bước trong quy trình
11departmentIdfalseIntegerid phòng ban
12name falseStringtên tài liệu

3. Response / Incoming Data Specification

STT

Field

Data Type / Length

Description

Note

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

3resultObjectObject
4

(result) loadMoreAble

Boolean

5

(result) page

Integer

6

(result) preLoadAble

Integer

Trạng thái (0: Hủy, 1: Đang thực hiện, 2: Hoàn thành)


7

(result) total

Integer

ID của hồ sơ


8

(result) items

List<Object>        
9

(items) id

IntegerId tài liệu
10

(items) name

StringTên tài  liệu
11

(items) folder

Stringthư mục
12

(items) createdBy

StringNgười tạo
13

(items) updatedTime

Timestampcập nhật lần cuối
14

(items) version

Stringversion tài liệu
15

(items) extension

Stringloại file
16

(items) fileUrl

Stringurl tải file
17

(items) sizefileSize

Integerdung lượng file
Panel
titleAPI Spec xem thông tin chi tiết 1 tài liệu

Method

Get

URL

/application/attachment/detail

Description

API lấy thông tin chi tiết của 1 tài liệu

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

1idtrueIntegerid tài liệu

3. Response / Incoming Data Specification

STT

Field

Data Type / Length

Description

Note

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

3resultObjectObject
4

(result) id

IntegerId tài liệu

(result) code

Stringmã tài  liệu
5

(result) name

StringTên tài  liệu
6

(result) version

Stringversion tài liệu
7

(result) typeattachmentTypeName

Stringloại tài liệu
8

(result)  documentNumber

Stringsố hiệu văn bản
9

(result) workflowName

Stringtên quy trình
10

(result) workflowCaseName

Stringbước quy trình
11

(result) sizefileSize

Integerdung lượng file
12

(result) extension

Stringloại file
13(result) createdByStringtên người tạo
14(result) createdTimeTimestampthời gian tạo
15(result) approvedByStringtên người phê duyệt
16(result) approvedTimeTimestampthời gian phê duyệt cuối
17(result) updatedTimeTimestampthời gian cập nhật gần nhất
18(result) tenderPackageNameStringtên gói thầu
19(result) projectNameStringtên dự án
20(result) departmentNameStringđơn vị quản lý
21(result) retentionExpiresTimeTimestamp thời gian lưu trữ tính từ phiên bản phê duyệt cuối
22(result) intermediateCleanupTimeTimestampthời gian lưu trữ phiên bản trung gian
23

(result) status

Integertrạng thái: 0: mặc định, 1: chờ phê duyệt, 2: phê duyệt

...