natsio/model/supplier_user_request.go

77 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-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
}