Update permission #4

Merged
trunglt251292 merged 8 commits from update-permission into master 2022-07-01 02:26:53 +00:00
1 changed files with 0 additions and 45 deletions
Showing only changes of commit 33b40fe8da - Show all commits

View File

@ -3,8 +3,6 @@ package authentication
import (
"github.com/Selly-Modules/natsio"
"go.mongodb.org/mongo-driver/bson"
"go.mongodb.org/mongo-driver/bson/primitive"
"time"
)
// CommonQuery ...
@ -140,46 +138,3 @@ type Response struct {
Data []byte `json:"data,omitempty"`
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"`
}