Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClaimSession ¶
type ClaimSession struct {
Company
User
PrivilegeRolUser
}
type Company ¶
type Company struct {
ID string `json:"id,omitempty" bson:"_id,omitempty"`
NameLong string `json:"nameLong" bson:"namelong"`
NameShort string `json:"nameShort" bson:"nameshort"`
Address string `json:"address" bson:"address"`
Slogan string `json:"slogan" bson:"slogan"`
Phone string `json:"phone" bson:"phone"`
Status int `json:"status" bson:"status"`
Image string `json:"image" bson:"image"`
Rnc string `json:"rnc" bson:"rnc"`
Other string `json:"other" bson:"other"`
DateAdd time.Time `json:"dateAdd" bson:"dateadd"`
}
type IUserLogin ¶
type IUserLogin struct {
IdUser string `json:"idUser"`
}
type PrivilegeRolUser ¶
type PrivilegeRolUser struct {
ID string `json:"id,omitempty" bson:"_id,omitempty"`
IdRol string `json:"idRol" bson:"idrol"`
IdCompany string `json:"idCompany" bson:"idcompany"`
WebAccess bool `json:"webAccess" bson:"webaccess"`
Config int `json:"config" bson:"config"`
TypeUser int `json:"typeUser" bson:"typeUser"`
}
type RequestUpdatePassUser ¶
type SessionUser ¶
type SessionUser struct {
ID string `json:"id,omitempty" bson:"_id,omitempty"`
IdUser string `json:"idUser" bson:"iduser"`
IdCompany string `json:"idCompany" bson:"idcompany"`
Token string `json:"token" bson:"token"`
Active bool `json:"active" bson:"active"`
Remember bool `json:"remember" bson:"remember"`
TokenExpire time.Time `json:"tokenExpire" bson:"tokenExpire"`
DateAdd time.Time `json:"dateAdd" bson:"dateadd"`
DateLogout time.Time `json:"dateLogout" bson:"datelogout"`
}
type Token ¶
type Token struct {
IdSession string
jwt.StandardClaims
}
type User ¶
type User struct {
ID string `json:"id,omitempty" bson:"_id,omitempty"`
NickName string `json:"nickName" bson:"nickname"`
Name string `json:"name" bson:"name"`
LastName string `json:"lastName" bson:"lastName"`
Contact string `json:"contact" bson:"contact"`
City string `json:"city" bson:"city"`
Gender string `json:"gender" bson:"gender"`
Email string `json:"email" bson:"email"`
IdRol string `json:"idRol" bson:"idrol"`
IdCompany string `json:"idCompany" bson:"idcompany"`
Status int `json:"status" bson:"status"`
Image string `json:"image" bson:"image"`
Note string `json:"note" bson:"note"`
ForcePass bool `json:"forcePass" bson:"forcepass"`
Public int `json:"public" bson:"public"`
Password string `json:"password" bson:"password"`
LastLogin time.Time `json:"lastLogin" bson:"lastlogin"`
DateAdd time.Time `json:"dateAdd" bson:"dateadd"`
}
Click to show internal directories.
Click to hide internal directories.