model

package
v0.0.0-...-344b8df Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2019 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 AllInvitationParam

type AllInvitationParam struct {
	Page     int
	Offset   int
	Limit    int
	IsAttend *bool
}

AllInvitationParam model

type Event

type Event struct {
	ID        bson.ObjectId `json:"id" bson:"_id"`
	Code      string        `json:"code" bson:"code"`
	Date      string        `bson:"date" json:"date"`
	CountDown int           `bson:"-" json:"countDown"`
	Ceremony  string        `bson:"ceremony" json:"ceremony"`
	Reception string        `bson:"reception" json:"reception"`
	Address   string        `bson:"address" json:"address"`
}

Event model

func (*Event) MakeObject

func (e *Event) MakeObject() *graphql.Object

type Invitation

type Invitation struct {
	ID        bson.ObjectId `json:"id" bson:"_id"`
	Name      string        `json:"name" bson:"name"`
	WaNumber  string        `json:"waNumber" bson:"wa_number"`
	Message   string        `json:"message" bson:"message"`
	Relation  string        `json:"relation" bson:"relation"`
	IsAttend  bool          `json:"isAttend" bson:"is_attend"`
	CreatedAt time.Time     `json:"created" bson:"created"`
}

Invitation model

func (*Invitation) MakeObject

func (i *Invitation) MakeObject() *graphql.Object

type Role

type Role struct {
	ID       bson.ObjectId `bson:"_id" db:"id" json:"id,omitempty"`
	StringID string        `bson:"string_id" db:"string_id" json:"string_id,omitempty"`
	Name     string        `bson:"name" db:"name" json:"name,omitempty"`
}

type User

type User struct {
	ID       bson.ObjectId `bson:"_id" db:"id" json:"id,omitempty"`
	Name     string        `bson:"name,omitempty" db:"name" json:"name,omitempty"`
	Username string        `bson:"username,omitempty" db:"username" json:"username,omitempty"`
	Password string        `bson:"password,omitempty" db:"password" json:"password,omitempty"`
	Role     *Role         `bson:"role" json:"role,omitempty"`
}

type Visitor

type Visitor struct {
	ID        bson.ObjectId `json:"id" bson:"_id"`
	IPAddress string        `json:"ip_address,omitempty" bson:"ip_address"`
	Query     string        `json:"query,omitempty" bson:"query"`
	Datetime  time.Time     `json:"datetime,omitempty" bson:"datetime"`
}

Visitor model

func (*Visitor) MakeObject

func (v *Visitor) MakeObject() *graphql.Object

Jump to

Keyboard shortcuts

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