Skip to main content

Người dùng

Mô tả

Các API hỗ trợ:

API


GET /api/users

Lấy danh sách người dùng, hỗ trợ các tham số filter sau:

Tên trườngKiểu dữ liệuMô tả
user_namestringTên người dùng
statusstringTrạng thái
full_namestringHọ và tên người dùng
created_fromstringTừ ngày
created_tostringĐến ngày
warehouse_idstringMã kho
sortintegerTên trường sắp xếp
orderintegerThứ tự sắp xếp
pageintegerTrang
sizeintegerSố 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
}