增加资产,授权凭证,指令分页查询的错误判断
This commit is contained in:
@ -44,7 +44,10 @@ func AssetPagingEndpoint(c echo.Context) error {
|
|||||||
userGroupId := c.QueryParam("userGroupId")
|
userGroupId := c.QueryParam("userGroupId")
|
||||||
|
|
||||||
account, _ := GetCurrentAccount(c)
|
account, _ := GetCurrentAccount(c)
|
||||||
items, total, _ := model.FindPageAsset(pageIndex, pageSize, name, protocol, tags, account, owner, sharer, userGroupId)
|
items, total, err := model.FindPageAsset(pageIndex, pageSize, name, protocol, tags, account, owner, sharer, userGroupId)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
return Success(c, H{
|
return Success(c, H{
|
||||||
"total": total,
|
"total": total,
|
||||||
|
@ -34,7 +34,10 @@ func CommandPagingEndpoint(c echo.Context) error {
|
|||||||
content := c.QueryParam("content")
|
content := c.QueryParam("content")
|
||||||
account, _ := GetCurrentAccount(c)
|
account, _ := GetCurrentAccount(c)
|
||||||
|
|
||||||
items, total, _ := model.FindPageCommand(pageIndex, pageSize, name, content, account)
|
items, total, err := model.FindPageCommand(pageIndex, pageSize, name, content, account)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
return Success(c, H{
|
return Success(c, H{
|
||||||
"total": total,
|
"total": total,
|
||||||
|
@ -63,7 +63,10 @@ func CredentialPagingEndpoint(c echo.Context) error {
|
|||||||
name := c.QueryParam("name")
|
name := c.QueryParam("name")
|
||||||
|
|
||||||
account, _ := GetCurrentAccount(c)
|
account, _ := GetCurrentAccount(c)
|
||||||
items, total, _ := model.FindPageCredential(pageIndex, pageSize, name, account)
|
items, total, err := model.FindPageCredential(pageIndex, pageSize, name, account)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
return Success(c, H{
|
return Success(c, H{
|
||||||
"total": total,
|
"total": total,
|
||||||
|
Reference in New Issue
Block a user