model

package
v0.0.0-...-0504f34 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JwtCustomClais

type JwtCustomClais struct {
	UserId string
	Role   string
	jwt.StandardClaims
}

type Response

type Response struct {
	StatusCode int
	Message    string
	Data       interface{}
}

type Role

type Role int
const (
	MEMBER Role = iota
	ADMIN
)

func (Role) String

func (r Role) String() string

type User

type User struct {
	UserId    string    `db:"user_id"`
	FullName  string    `db:"full_name"`
	Email     string    `db:"email"`
	Password  string    `db:"password"`
	Role      string    `db:"role"`
	CreatedAt time.Time `db:"create_at"`
	UpdatedAt time.Time `db:"update_at"`
	Token     string    `db:"tolken"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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