You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: scope_page.go
    path of file: ./repos/Artalk/server/handler/comments_get
    
    the code of the file until where you have to start completion: package comments_get

import (
	"slices"

	"gorm.io/gorm"
)

type PageScopeOpts struct {
	AdminUserIDs []uint
}

type PageScopePayload struct {
	Tags     []PageScopeTag
	SiteName string
	PageKey  string
}

type PageScopeTag string

const (
	AdminOnly PageScopeTag = "admin_only"
)

// Page Scope
func PageScopeQuery(payload PageScopePayload, opts PageScopeOpts) func(*gorm.DB) *gorm.DB {
	return func(d *gorm.DB) *gorm.DB {
		
    
func PageScopeQuery(payload PageScopePayload, opts PageScopeOpts) func(*gorm.DB) *gorm.DB {
	return func(d *gorm.DB) *gorm.DB {
		if payload.SiteName == "" || payload.PageKey == "" {
			return d.Where("1 = 0")
		}

		// Query within site & page
		d.Scopes(
			CommentsWithinSite(payload.SiteName),
			CommentsWithinPage(payload.PageKey))

		// Show admin comments only function
		if slices.Contains(payload.Tags, AdminOnly) {
			d.Scopes(CommentsWithinSomeUsers(opts.AdminUserIDs))
		}

		return d
	}
}