natsio/model/supplier_user_request.go

78 lines
2.2 KiB
Go
Raw Normal View History

2022-10-20 07:32:32 +00:00
package model
2022-11-02 09:49:12 +00:00
type LoginUserRequest struct {
Email string `json:"email"`
Password string `json:"password"`
DeviceID string `json:"deviceId"`
AppVersion string `json:"appVersion"`
UserAgent string `json:"userAgent"`
Model string `json:"model"`
Manufacturer string `json:"manufacturer"`
IP string `json:"ip"`
Language string `json:"language"`
FCMToken string `json:"FCMToken"`
AuthToken string `json:"authToken"`
OsName string `json:"osName"`
OsVersion string `json:"osVersion"`
IsMobile bool `json:"isMobile"`
}
2022-11-03 03:46:56 +00:00
type GetListUserRequest struct {
2022-11-01 03:43:20 +00:00
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-11-04 10:28:33 +00:00
type DetailUserRequest struct {
ID string `json:"_id"`
}
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"`
}
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"`
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 {
2022-11-03 03:46:56 +00:00
ID string `json:"_id"`
2022-10-20 07:32:32 +00:00
}