package model import ( "time" "go.mongodb.org/mongo-driver/bson/primitive" ) type UserPost struct { //人员职位 Id primitive.ObjectID `bson:"_id,omitempty" json:"_id"` //职位ID Name string `bson:"name,omitempty" json:"name,omitempty"` //职位名称唯一、不能重复 TreeLevel int32 `bson:"treeLevel,omitempty" json:"treeLevel,omitempty"` //职位等级 Parent primitive.ObjectID `bson:"parent,omitempty" json:"parent"` //父级职 } //联系我们 type ContentInfo struct { Id primitive.ObjectID `bson:"_id,omitempty" json:"_id"` Phone string `bson:"phone,omitempty" json:"phone"` Company string `bson:"company,omitempty" json:"company"` POST string `bson:"post,omitempty" json:"post"` City string `bson:"city,omitempty" json:"city"` Name string `bson:"name,omitempty" json:"name"` CreateTime time.Time `bson:"createTime,omitempty" json:"createTime"` }