async getPermissionGroupList (page, size) {
    const result = await db('permission_groups').select('*').paginate({
      perPage: size,
      currentPage: page
    })

    if (!result.data) {
      return {
        total: 0,
        data: []
      }
    }

    let total = await db('permission_groups').count()
    total = total[0]['count(*)']

    return {
      total,
      data: result.data
    }
  }
Get groups info by id

@returns {Array} groups info