添加count
This commit is contained in:
@@ -221,7 +221,7 @@ func (c *ApiController) AddPrinter(dataMap map[string]interface{}) (data, errCod
|
||||
type QueryPrintList struct {
|
||||
}
|
||||
|
||||
func (c *ApiController) QueryPrintList(dataMap map[string]interface{}) (data []*model.Printer, errCode string, err error) {
|
||||
func (c *ApiController) QueryPrintList(dataMap map[string]interface{}) (data map[string]interface{}, errCode string, err error) {
|
||||
var (
|
||||
printNo string
|
||||
printKey string
|
||||
@@ -261,7 +261,11 @@ func (c *ApiController) QueryPrintList(dataMap map[string]interface{}) (data []*
|
||||
} else {
|
||||
size = s
|
||||
}
|
||||
data, err = cms.QueryPrintList(printNo, printKey, status, isOnline, page, size)
|
||||
list, count, err := cms.QueryPrintList(printNo, printKey, status, isOnline, page, size)
|
||||
data = map[string]interface{}{
|
||||
"printList": list,
|
||||
"count": count,
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user