models

package
v0.0.0-...-cd8b1d2 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

@generated

@generated

@generated

@generated

@generated

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Claims

type Claims struct {
	ID          int64        `json:"id"`
	Username    string       `json:"username"`
	CompanyID   int64        `json:"companyId"`
	Permissions []Permission `json:"permissions"`
	jwt.StandardClaims
}

Claims ...

type Company

type Company struct {
	ID        int64
	Name      string
	Status    string
	CreatedBy string
	UpdatedBy string
}

Company ...

type ContextKey

type ContextKey string

ContextKey ...

type Permission

type Permission struct {
	ID          int64
	Name        string
	Description string
	Status      string
	CreatedBy   string
	UpdatedBy   string
}

Permission ...

type Role

type Role struct {
	ID        int64
	Name      string
	CompanyID int64
	Status    string
	CreatedBy string
	UpdatedBy string
}

Role ...

type RolePermission

type RolePermission struct {
	ID           int64
	RoleID       int64
	PermissionID int64
	CreatedBy    string
	UpdatedBy    string
}

RolePermission ...

type User

type User struct {
	ID            int64
	Username      string
	Password      string
	Name          string
	DateOfBirth   mysql.NullTime
	Reference     string
	AvatarUrl     string
	LicenseNumber string
	PhoneNumber   string
	Extension     string
	TelProvider   string
	TelApi        string
	SupervisorID  int64
	RoleID        int64
	CompanyID     int64
	Status        string
	CreatedBy     string
	UpdatedBy     string
}

User ...

Jump to

Keyboard shortcuts

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