增加mongodb驱动,简单版本
This commit is contained in:
parent
a32c3a1589
commit
30edb4d9fa
@ -86,8 +86,12 @@ func (that *mongoDb) Get(table string, where Map) Map {
|
||||
that.LastErr = err
|
||||
return nil
|
||||
}
|
||||
if len(results) > 0 {
|
||||
|
||||
return results[0]
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (that mongoDb) Select(table string, where Map, page, pageRow int64) []Map {
|
||||
page = (page - 1) * pageRow
|
||||
|
Loading…
Reference in New Issue
Block a user