2022-10-20 07:32:32 +00:00
|
|
|
package model
|
|
|
|
|
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
|
|
|
}
|
2022-12-29 06:49:04 +00:00
|
|
|
|
|
|
|
// CheckTokenSupplierUserPayload ...
|
|
|
|
type CheckTokenSupplierUserPayload struct {
|
|
|
|
Token string `json:"token"`
|
|
|
|
Permissions []string `json:"permissions"`
|
|
|
|
}
|