dominio

package
v0.0.0-...-edb78a7 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2015 License: GPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterDomains

func RegisterDomains(register registerType)

Types

type Curso

type Curso struct {
	Id    null.Int    `db:"id" json:"id"`
	Nome  null.String `db:"nome" json:"nome"`
	Nivel null.Int    `db:"nivel_id" json:"nivel_id"`
}

type Disciplina

type Disciplina struct {
	Id   int64  `json:"id"`
	Nome string `json:"nome"`
}

type Token

type Token struct {
	Token string `json:"token"`
}

func (*Token) GetUsuario

func (t *Token) GetUsuario() *Usuario

type Turma

type Turma struct {
	Id      int64       `db:"id" json:"id"`
	Nome    null.String `db:"nome" json:"nome"`
	CursoId null.Int    `db:"curso_id" json:"-"`
	Curso   *Curso      `db:"-" json:"curso"`
}

type Usuario

type Usuario struct {
	Id         int64    `db:"id" json:"id"`
	Login      string   `db:"login" json:"login"`
	Nome       string   `db:"nome" json:"nome"`
	Senha      string   `db:"senha" json:"-"`
	Permissoes []string `db:"-" json:"permissoes"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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