2022-10-20 07:32:32 +00:00
|
|
|
package model
|
|
|
|
|
2022-11-02 09:49:12 +00:00
|
|
|
// LoginUserResponse ...
|
|
|
|
type LoginUserResponse struct {
|
|
|
|
ID string `json:"_id"`
|
|
|
|
RequireToChangePassword bool `json:"requireToChangePassword"`
|
|
|
|
SupplierID string `json:"supplierId"`
|
2022-11-03 07:14:25 +00:00
|
|
|
Name string `json:"name"`
|
2022-11-02 09:49:12 +00:00
|
|
|
}
|
|
|
|
|
2022-11-03 03:46:56 +00:00
|
|
|
type GetListUserResponse struct {
|
2022-11-01 03:43:20 +00:00
|
|
|
SupplierUsers []SupplierUserBrief `json:"supplierUsers"`
|
|
|
|
Total int64 `json:"total"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type SupplierUserBrief struct {
|
2022-11-01 04:40:37 +00:00
|
|
|
ID string `json:"_id"`
|
|
|
|
Role RoleShort `json:"role"`
|
|
|
|
SupplierID string `json:"supplierId"`
|
|
|
|
Name string `json:"name"`
|
|
|
|
Phone string `json:"phone"`
|
|
|
|
Email string `json:"email"`
|
|
|
|
Status string `json:"status"`
|
|
|
|
Avatar interface{} `json:"avatar"`
|
|
|
|
Type string `json:"type"`
|
2022-11-04 08:20:31 +00:00
|
|
|
Warehouses []string `json:"warehouses"`
|
2022-11-01 04:40:37 +00:00
|
|
|
CreatedAt string `json:"createdAt"`
|
|
|
|
UpdatedAt string `json:"updatedAt"`
|
2022-11-01 03:43:20 +00:00
|
|
|
}
|
|
|
|
|
2022-10-28 02:31:39 +00:00
|
|
|
type CreateOwnerResponse struct {
|
2022-10-27 02:09:48 +00:00
|
|
|
ID string `json:"_id"`
|
|
|
|
}
|
|
|
|
|
2022-10-28 02:31:39 +00:00
|
|
|
type CreateStaffResponse struct {
|
2022-10-20 07:32:32 +00:00
|
|
|
ID string `json:"_id"`
|
|
|
|
}
|
2022-10-28 02:31:39 +00:00
|
|
|
|
|
|
|
type ResetPasswordResponse struct {
|
|
|
|
Password string `json:"password"`
|
|
|
|
}
|
2022-12-29 06:49:04 +00:00
|
|
|
|
|
|
|
// ResponseCheckTokenSupplierUser ...
|
|
|
|
type ResponseCheckTokenSupplierUser struct {
|
|
|
|
IsValid bool `json:"isValid"`
|
|
|
|
Reason string `json:"reason"`
|
|
|
|
User ResponseSupplierUserInfo `json:"supplier"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type ResponseSupplierUserInfo struct {
|
|
|
|
ID string `json:"_id"`
|
|
|
|
Name string `json:"name"`
|
|
|
|
SupplierID string `json:"supplierId"`
|
|
|
|
}
|