db

package
v1.4.34 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2023 License: GPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth

type Auth struct {
	Type  string `bson:"type" json:"type"`
	Value string `bson:"value" json:"value"`
	AppId string `bson:"appId,omitempty" json:"appId,omitempty"`
}

type Url

type Url struct {
	ID       primitive.ObjectID `bson:"_id,omitempty" json:"id,omitempty"`
	Url      string             `bson:"url,omitempty"`
	UpdateAt time.Time          `bson:"updateAt,omitempty" json:"updateAt,omitempty"`
	CreateAt time.Time          `bson:"createAt,omitempty" json:"createAt,omitempty"`
}

type User

type User struct {
	ID       primitive.ObjectID `bson:"_id,omitempty" json:"id,omitempty"`
	UpdateAt time.Time          `bson:"updateAt,omitempty" json:"updateAt,omitempty"`
	CreateAt time.Time          `bson:"createAt,omitempty" json:"createAt,omitempty"`
	Password string             `bson:"password,omitempty" json:"password,omitempty"`
	Auth     []*Auth            `bson:"auth,omitempty" json:"auth,omitempty"`
}

Jump to

Keyboard shortcuts

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