natsio/model/supplier_user_response.go

41 lines
1.1 KiB
Go
Raw Normal View History

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"`
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"`
}