1
This commit is contained in:
parent
7dd2331f6c
commit
43aa47bceb
@ -99,7 +99,6 @@ func (this *dbPool) SelectOne(
|
|||||||
func (this *dbPool) OrmSelectOne(
|
func (this *dbPool) OrmSelectOne(
|
||||||
dataSource string,
|
dataSource string,
|
||||||
tblName string,
|
tblName string,
|
||||||
fields []string,
|
|
||||||
whereKv [][]string,
|
whereKv [][]string,
|
||||||
cb QueryOneCb) {
|
cb QueryOneCb) {
|
||||||
params := []string{}
|
params := []string{}
|
||||||
@ -342,6 +341,7 @@ func (this *dbPool) internalQueryOne(dataSource string, sql string, params []str
|
|||||||
values = dataSet.GetValues()
|
values = dataSet.GetValues()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
GetSysLog().Info("xxxxxxxxxxxxxxxxxxx")
|
||||||
if this.style == GO_STYLE_DB {
|
if this.style == GO_STYLE_DB {
|
||||||
cb(err, values)
|
cb(err, values)
|
||||||
} else {
|
} else {
|
||||||
|
8
types.go
8
types.go
@ -30,10 +30,10 @@ type Pagination struct {
|
|||||||
|
|
||||||
type HandlerFunc func(*Context)
|
type HandlerFunc func(*Context)
|
||||||
|
|
||||||
type QueryResultCb func (error, *DataSet);
|
type QueryResultCb func (error, *DataSet)
|
||||||
type QueryOneCb func (error, *[]*string);
|
type QueryOneCb func (error, *[]*string)
|
||||||
type PageQueryCb func (error, *Pagination);
|
type PageQueryCb func (error, *Pagination)
|
||||||
type ExecResultCb func (error, int64, int64);
|
type ExecResultCb func (error, int64, int64)
|
||||||
|
|
||||||
type middleware struct {
|
type middleware struct {
|
||||||
middlewareType int32
|
middlewareType int32
|
||||||
|
Loading…
x
Reference in New Issue
Block a user