dataformat

package module
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2021 License: Apache-2.0 Imports: 3 Imported by: 12

README

kemper.com.br.module.dataformat

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Languages

type Languages struct {
	Id   string `json:"id" bson:"_id"`
	Name string `json:"name" bson:"name"`
}
type Menu struct {
	Id          string `json:"id" bson:"_id"`
	IdSecondary string `json:"secondaryId" bson:"secondaryId"`
	Text        string `json:"text" bson:"text"`
	Admin       int    `json:"admin" bson:"admin"`
	Icon        string `json:"icon,omitempty" bson:"icon"`
	Url         string `json:"url,omitempty" bson:"url"`
	ItemOrder   int    `json:"itemOrder" bson:"itemOrder"`
	TypeContent int    `json:"typeContent,omitempty" bson:"typeContent"`
	Classroom   int    `json:"classroom,omitempty" bson:"classroom"`
	Menu        []Menu `json:"menu,omitempty" bson:"menu"`
}
func (e *Menu) GetIdAndSecondaryIdAsBSonQuery() (query bson.M)

type User

type User struct {
	Id       string `json:"id" bson:"_id"`
	Admin    int    `json:"admin"  bson:"admin"`
	Name     string `json:"name"  bson:"name"`
	NickName string `json:"nickname"  bson:"nickname"`
	Mail     string `json:"email" bson:"email"`
	Password string `json:"-" bson:"password"`
}

func (*User) GetIdAndMailAsBSonQuery

func (e *User) GetIdAndMailAsBSonQuery() (query bson.M)

func (*User) GetMailAsBSonQuery

func (e *User) GetMailAsBSonQuery() (query bson.M)

Jump to

Keyboard shortcuts

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