face

package
v0.0.0-...-3393559 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2018 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(w http.ResponseWriter, r *http.Request)

func Delete

func Delete(w http.ResponseWriter, r *http.Request)

func List

func List(w http.ResponseWriter, r *http.Request)

func Retrieve

func Retrieve(w http.ResponseWriter, r *http.Request)

func Update

func Update(w http.ResponseWriter, r *http.Request)

Types

type Face

type Face struct {
	Id      string `json:"id"`
	OwnerId int    `json:"-"`
	Url     string `json:"url"`
	Name    string `json:"name"`
}

func (*Face) BeforeInsert

func (i *Face) BeforeInsert(db orm.DB) error

BeforeInsert hook executed before database insert operation.

func (*Face) BeforeUpdate

func (i *Face) BeforeUpdate(db orm.DB) error

BeforeUpdate hook executed before database update operation.

func (*Face) Validate

func (i *Face) Validate() error

Validate validates User struct and returns validation errors.

Jump to

Keyboard shortcuts

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