userModel

package
v0.0.0-...-b33b079 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2023 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Overview

Code generated by goctl. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type User

type User struct {
	ID          primitive.ObjectID `bson:"_id,omitempty" json:"id,omitempty"`
	Name        string             `bson:"name,omitempty"`
	Email       string             `bson:"email,omitempty"`
	PassWord    string             `bson:"passWord,omitempty"`
	Sex         *int32             `bson:"sex,omitempty"`
	FullName    string             `bson:"fullName,omitempty"`
	IdCard      string             `bson:"idCard,omitempty"`
	Memory      *int64             `bson:"memory,omitempty"`
	Flow        *int64             `bson:"flow,omitempty"`
	Money       *int64             `bson:"money,omitempty"`
	Description string             `bson:"description,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 UserModel

type UserModel interface {
	GetConn() *monc.Model
	// contains filtered or unexported methods
}

UserModel is an interface to be customized, add more methods here, and implement the added methods in customUserModel.

func NewUserModel

func NewUserModel(url, db, collection string, c cache.CacheConf) UserModel

NewUserModel returns a model for the mongo.

Jump to

Keyboard shortcuts

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