Lịch sử in tem
Mô tả
Các API hỗ trợ:
- GET /printHistories: Danh sách (printed/failed)
API
GET /api/printHistories
Lịch sử in tem (chỉ status printed 0 và failed 2):
Tham số query:
| Tên trường | Kiểu dữ liệu | Mô tả | Bắt buộc |
|---|---|---|---|
rfid | string | RFID | Không |
product_name | string | Tên hàng hóa | Không |
created_from | string | yyyy-MM-dd'T'HH:mm:ss | Không |
created_to | string | yyyy-MM-dd'T'HH:mm:ss | Không |
page | integer | Trang | Không |
size | integer | Số bản ghi trên trang | Không |
sort | string | Tên trường sắp xếp | Không |
order | string | asc / desc | Không |
GET /api/printHistories?page=1&size=20
Response Body
{
"code": 200,
"message": "Success",
"result": [
{
"id": "…",
"rfid": "E280…",
"product_name": "Áo",
"status": 2,
"error_code": "PAPER_OUT",
"printer_name": "ZT421"
}
],
"page": 1,
"page_size": 20,
"total": 1
}