2022-10-20 07:32:32 +00:00
|
|
|
package model
|
|
|
|
|
2022-11-01 03:43:20 +00:00
|
|
|
type GetListOwnerRequest struct {
|
|
|
|
Page int `json:"page"`
|
|
|
|
Limit int `json:"limit"`
|
|
|
|
Status string `json:"status"`
|
2022-11-02 07:56:58 +00:00
|
|
|
Type string `json:"type"`
|
2022-11-01 03:43:20 +00:00
|
|
|
SupplierID string `json:"supplierId"`
|
|
|
|
}
|
|
|
|
|
2022-10-28 02:31:39 +00:00
|
|
|
type CreateOwnerRequest struct {
|
2022-10-27 02:09:48 +00:00
|
|
|
Name string `json:"name"`
|
|
|
|
Phone string `json:"phone"`
|
|
|
|
Email string `json:"email"`
|
|
|
|
SupplierID string `json:"supplierId"`
|
|
|
|
RoleID string `json:"roleId"`
|
|
|
|
Password string `json:"password"`
|
|
|
|
}
|
|
|
|
|
2022-10-28 02:31:39 +00:00
|
|
|
type UpdateOwnerRequest struct {
|
2022-10-27 02:09:48 +00:00
|
|
|
ID string `json:"_id"`
|
|
|
|
SupplierID string `json:"supplierId"`
|
|
|
|
Name string `json:"name"`
|
|
|
|
Phone string `json:"phone"`
|
|
|
|
Email string `json:"email"`
|
|
|
|
RoleID string `json:"roleId"`
|
|
|
|
}
|
|
|
|
|
2022-10-28 02:31:39 +00:00
|
|
|
type CreateStaffRequest struct {
|
2022-10-27 02:09:48 +00:00
|
|
|
Name string `json:"name"`
|
|
|
|
Phone string `json:"phone"`
|
|
|
|
Email string `json:"email"`
|
|
|
|
SupplierID string `json:"supplierId"`
|
|
|
|
RoleID string `json:"roleId"`
|
|
|
|
Password string `json:"password"`
|
|
|
|
Warehouses []string `json:"warehouses"`
|
|
|
|
}
|
|
|
|
|
2022-10-28 02:31:39 +00:00
|
|
|
type UpdateStaffRequest struct {
|
|
|
|
ID string `json:"_id"`
|
|
|
|
Name string `json:"name"`
|
|
|
|
Phone string `json:"phone"`
|
|
|
|
Email string `json:"email"`
|
|
|
|
SupplierID string `json:"supplierId"`
|
|
|
|
RoleID string `json:"roleId"`
|
|
|
|
Password string `json:"password"`
|
|
|
|
SupplierUserWarehouseID string `json:"supplierUserWarehouseId"`
|
|
|
|
Warehouses []string `json:"warehouses"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type UpdateStatusRequest struct {
|
|
|
|
ID string `json:"_id"`
|
|
|
|
Status string `json:"status"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type ResetPasswordRequest struct {
|
|
|
|
ID string `json:"_id"`
|
|
|
|
Password string `json:"password"`
|
2022-10-20 07:32:32 +00:00
|
|
|
}
|