Documentation
¶
Index ¶
Constants ¶
View Source
const (
CollectionName = "log"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IMongoMapper ¶
type Log ¶
type Log struct { ID primitive.ObjectID `bson:"_id,omitempty" json:"id"` UserId string `bson:"user_id" json:"user_id"` Grade int64 `bson:"grade" json:"grade"` Ocr []string `bson:"ocr" json:"ocr"` Response string `bson:"response" json:"response"` Status int `bson:"status" json:"status"` CreateTime time.Time `bson:"create_time,omitempty" json:"createTime"` }
type MongoMapper ¶
type MongoMapper struct {
// contains filtered or unexported fields
}
func NewMongoMapper ¶
func NewMongoMapper(config *config.Config) *MongoMapper
Click to show internal directories.
Click to hide internal directories.