Documentation ¶
Overview ¶
Code generated by goctl. DO NOT EDIT.
Index ¶
Constants ¶
View Source
const IdentifyCollectionName = "identify"
Variables ¶
View Source
var ( ErrNotFound = mon.ErrNotFound ErrInvalidObjectId = errors.New("invalid objectId") )
Functions ¶
This section is empty.
Types ¶
type Identify ¶
type Identify struct { ID primitive.ObjectID `bson:"_id,omitempty" json:"id,omitempty"` Mid int64 `bson:"mid,omitempty" json:"mid,omitempty"` Username string `bson:"username,omitempty" json:"username,omitempty"` Email string `bson:"email,omitempty" json:"email,omitempty"` Phone string `bson:"phone,omitempty" json:"phone,omitempty"` Password string `bson:"password,omitempty" json:"password,omitempty"` Salt string `bson:"salt,omitempty" json:"salt,omitempty"` UpdateAt time.Time `bson:"updateAt,omitempty" json:"updateAt,omitempty"` CreateAt time.Time `bson:"createAt,omitempty" json:"createAt,omitempty"` }
type IdentifyModel ¶
type IdentifyModel interface { FindOneByUsername(ctx context.Context, usename string) (*Identify, error) // contains filtered or unexported methods }
IdentifyModel is an interface to be customized, add more methods here, and implement the added methods in customIdentifyModel.
func NewIdentifyModel ¶
func NewIdentifyModel(url, db string, c cache.CacheConf) IdentifyModel
NewIdentifyModel returns a model for the mongo.
Click to show internal directories.
Click to hide internal directories.