Người dùng
Mô tả
Các API hỗ trợ:
- GET /users: Lấy danh sách người dùng.
API
GET /api/users
Lấy danh sách người dùng, hỗ trợ các tham số filter sau:
| Tên trường | Kiểu dữ liệu | Mô tả |
|---|---|---|
| user_name | string | Tên người dùng |
| status | string | Trạng thái |
| full_name | string | Họ và tên người dùng |
| created_from | string | Từ ngày |
| created_to | string | Đến ngày |
| warehouse_id | string | Mã kho |
| sort | integer | Tên trường sắp xếp |
| order | integer | Thứ tự sắp xếp |
| page | integer | Trang |
| size | integer | Số bản ghi trên trang |
Trạng thái bao gồm: active | inactive
GET /api/users?page=1&size=10&sort=user_name&order=asc&user_name=cuong&created_from=2023-01-01T10%3A00%3A00Z&created_to=2025-01-01T10%3A00%3A00Z&full_name=Cuong&status=active&warehouse_id=
Response Body
{
"code": 200,
"message": "Success",
"result": [
{
"user_name": "m032_cuong@gmail.com",
"full_name": "Cuong Vo",
"email": null,
"email_confirmed": 0,
"phone": null,
"phone_confirmed": 0,
"status": "active",
"type": "pda",
"first_login": 1,
"created_at": "2024-01-09T10:17:33.000Z",
"updated_at": "2024-01-15T08:00:10.000Z",
"created_by": "admin",
"updated_by": "admin",
"inventory_position_ids": null
}
],
"page": 1,
"page_size": 10,
"total": 1
}