[Update] v2

This commit is contained in:
trunglt251292 2022-06-30 13:56:47 +07:00
parent e4a02107f3
commit 33b40fe8da
1 changed files with 0 additions and 45 deletions

View File

@ -3,8 +3,6 @@ package authentication
import ( import (
"github.com/Selly-Modules/natsio" "github.com/Selly-Modules/natsio"
"go.mongodb.org/mongo-driver/bson" "go.mongodb.org/mongo-driver/bson"
"go.mongodb.org/mongo-driver/bson/primitive"
"time"
) )
// CommonQuery ... // CommonQuery ...
@ -140,46 +138,3 @@ type Response struct {
Data []byte `json:"data,omitempty"` Data []byte `json:"data,omitempty"`
Message string `json:"message"` Message string `json:"message"`
} }
// StaffInfo ...
type StaffInfo struct {
ID primitive.ObjectID `json:"_id"`
Name string `json:"name"`
SearchString string `json:"searchString"`
Email string `json:"email"`
Phone string `json:"phone"`
Active bool `json:"active"`
Role primitive.ObjectID `json:"role,omitempty"`
Avatar *FilePhoto `json:"avatar,omitempty"`
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
IsRoot bool `json:"isRoot"`
Permissions []string `json:"permissions"`
Source []string `json:"source"`
NotAllowedLoginAdmin bool `json:"notAllowedLoginAdmin"`
}
// ListStaffInfo ...
type ListStaffInfo struct {
Staffs []StaffInfo `json:"staff"`
}
// FilePhoto ...
type FilePhoto struct {
ID primitive.ObjectID `json:"_id"`
Name string `json:"name,omitempty"`
Dimensions *FileDimensions `json:"dimensions"`
}
// FileSize ...
type FileSize struct {
Width int `json:"width"`
Height int `json:"height"`
URL string `json:"url"`
}
// FileDimensions ...
type FileDimensions struct {
Small *FileSize `json:"sm"`
Medium *FileSize `json:"md"`
}