authinterfaces

package
v0.0.0-...-9d4902c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 1, 2022 License: MIT Imports: 2 Imported by: 0

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 LoginUser

type LoginUser struct {
	User     string `json:"user"`
	Password string `json:"password"`
	Remember bool   `json:"remember"`
}

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 RequestUpdatePassUser struct {
	ID             string `json:"id"`
	NewPassword    string `json:"newPassword"`
	OldPassword    string `json:"oldPassword"`
	RepeatPassword string `json:"repeatPassword"`
}

type RolUser

type RolUser struct {
	ID        string    `json:"id,omitempty" bson:"_id,omitempty"`
	Name      string    `json:"name" bson:"name"`
	Status    int       `json:"status" bson:"status"`
	Note      string    `json:"note" bson:"note"`
	Date      time.Time `json:"date" bson:"date"`
	IdCompany string    `json:"idCompany"  bson:"idcompany"`
}

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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL