models

package
v0.0.0-...-2b331e9 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2021 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Admin

type Admin struct {
	ID       primitive.ObjectID `json:"id" bson:"_id"`
	Username string             `json:"username"`
	Password string             `json:"password"`
}

type Article

type Article struct {
	ID      primitive.ObjectID `json:"id" bson:"_id, omitempty"`
	Title   string             `json:"title"`
	Content string             `json:"content"`
}

type Message

type Message struct {
	Msg  string      `json:"msg"`
	Data interface{} `json:"data"`
}

type MessageNoData

type MessageNoData struct {
	Msg string `json:"msg"`
}

Jump to

Keyboard shortcuts

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