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