model

package
v0.0.0-...-3f885a5 Latest Latest
Warning

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

Go to latest
Published: May 9, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type Article

type Article struct {
	ID          bson.ObjectId `json:"id" bson:"_id"`
	CreatedAt   time.Time     `json:"createdAt"`
	UpdatedAt   time.Time     `json:"updatedAt"`
	Name        string        `json:"name"`
	Description string        `json:"description"`
	BrowseCount uint          `json:"browseCount"`
	Status      uint          `json:"status"`
	Content     string        `json:"content"`
	Tags        []string      `json:"tags"`
	Author      Author        `json:"author"`
}

type Author

type Author struct {
	UserName string        `json:"username"`
	ID       bson.ObjectId `json:"id" bson:"_id"`
}

type BingImage

type BingImage struct {
	Date  string `json:"date"`
	Value string `json:"value"`
}

type Image

type Image struct {
	ID   bson.ObjectId `json:"id" bson:"_id"`
	Path string        `json:"path"`
	Date time.Time     `json:"date"`
}

type SaveImage

type SaveImage struct {
	Path string    `json:"path"`
	Date time.Time `json:"date"`
}

type User

type User struct {
	ID        bson.ObjectId `json:"id" bson:"_id"`
	CreatedAt time.Time     `json:"createdAt"`
	UpdatedAt time.Time     `json:"updatedAt"`
	Name      string        `json:"name"`
	Email     string        `json:"email"`
	Signature string        `json:"signature"`
	Avatar    string        `json:"avatar"`
	UserName  string        `json:"username"`
	PassWord  string        `json:"password"`
}

Jump to

Keyboard shortcuts

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