models

package
v0.0.0-...-ff919dc Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Quote

type Quote struct {
	Id      primitive.ObjectID `bson:"_id" json:"id,omitempty"`
	Act     string             `json:"act,omitempty" validate:"required_with=Scene"`
	Created time.Time          `bson:"created_date" json:"created_date,omitempty"`
	Quote   string             `json:"quote,omitempty" validate:"required"`
	Scene   string             `json:"scene,omitempty" validate:"required_with=Act"`
	Tags    []string           `json:"tags,omitempty" validate:"required"`
	Work    string             `json:"work,omitempty" validate:"required"`
}

Quote struct describes a quote object

type User

type User struct {
	Password string `json:"password" xml:"password" form:"password"`
	Username string `json:"username" xml:"username" form:"username"`
}

User struct describes a User object

Jump to

Keyboard shortcuts

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