schemas

package
v0.0.0-...-608fa39 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Jobs

type Jobs struct {
	ID          primitive.ObjectID `bson:"_id,omitempty"`
	Title       string             `bson:"title"`
	Description string             `bson:"description"`
	Role        string             `bson:"role"`
	Company     string             `bson:"company"`
	Location    string             `bson:"location"`
	Remote      bool               `bson:"remote"`
	Experience  string             `bson:"experience"`
	Salary      string             `bson:"salary"`
	Link        string             `bson:"link"`
	Approved    bool               `bson:"approved"`
}

type JobsResponse

type JobsResponse struct {
	ID         primitive.ObjectID `json:"id,omitempty" bson:"_id,omitempty"`
	CreatedAt  time.Time          `json:"createdAt" bson:"createdAt"`
	UpdatedAt  time.Time          `json:"updatedAt" bson:"updatedAt"`
	DeletedAt  time.Time          `json:"deletedAt,omitempty" bson:"deletedAt,omitempty"`
	Title      string             `json:"title" bson:"title"`
	Descricao  string             `json:"description" bson:"description"`
	Role       string             `json:"role" bson:"role"`
	Company    string             `json:"company" bson:"company"`
	Location   string             `json:"location" bson:"location"`
	Remote     bool               `json:"remote" bson:"remote"`
	Experience string             `json:"experience" bson:"experience"`
	Salary     string             `json:"salary" bson:"salary"`
	Link       string             `json:"link" bson:"link"`
	Approved   bool               `json:"approved" bson:"approved"`
}

type JwtClaims

type JwtClaims struct {
	UserName string `json:"username"`
	Role     string `json:"role"`
	jwt.StandardClaims
}

type TokenResponse

type TokenResponse struct {
	Name string `bson:"username"`
	Role string `bson:"role"`
}

type User

type User struct {
	ID       primitive.ObjectID `bson:"_id,omitempty"`
	Name     string             `bson:"username"`
	Password string             `bson:"password"`
	Role     string             `bson:"role"`
}

type UserResponse

type UserResponse struct {
	ID    primitive.ObjectID `json:"id,omitempty" bson:"_id,omitempty"`
	Name  string             `json:"name" bson:"name"`
	Role  string             `json:"role" bson:"role"`
	Token string             `json:"token" bson:"token"`
}

Jump to

Keyboard shortcuts

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