func (opt *MarkNotificationOptions) QueryEncode() string {
	query := make(url.Values)
	if !opt.LastReadAt.IsZero() {
		query.Add("last_read_at", opt.LastReadAt.Format(time.RFC3339))
	}
	for _, s := range opt.Status {
		query.Add("status-types", string(s))
	}
	if len(opt.ToStatus) != 0 {
		query.Add("to-status", string(opt.ToStatus))
	}
	return query.Encode()
}
QueryEncode encode options to url query
package gitea
import (
	"fmt"
	"net/url"
	"time"
	"github.com/hashicorp/go-version"
)
var (
	version1_12_3, _ = version.NewVersion("1.12.3")
)
type NotificationThread struct {
	ID         int64                `json:"id"`
	Repository *Repository          `json:"repository"`
	Subject    *NotificationSubject `json:"subject"`
	Unread     bool                 `json:"unread"`
	Pinned     bool                 `json:"pinned"`
	UpdatedAt  time.Time            `json:"updated_at"`
	URL        string               `json:"url"`
}
type NotificationSubject struct {
	Title            string             `json:"title"`
	URL              string             `json:"url"`
	LatestCommentURL string             `json:"latest_comment_url"`
	Type             NotifySubjectType  `json:"type"`
	State            NotifySubjectState `json:"state"`
}
type NotifyStatus string
const (
	NotifyStatusUnread NotifyStatus = "unread"
	NotifyStatusRead NotifyStatus = "read"
	NotifyStatusPinned NotifyStatus = "pinned"
)
type NotifySubjectType string
const (
	NotifySubjectIssue NotifySubjectType = "Issue"
	NotifySubjectPull NotifySubjectType = "Pull"
	NotifySubjectCommit NotifySubjectType = "Commit"
	NotifySubjectRepository NotifySubjectType = "Repository"
)
type NotifySubjectState string
const (
	NotifySubjectOpen NotifySubjectState = "open"
	NotifySubjectClosed NotifySubjectState = "closed"
	NotifySubjectMerged NotifySubjectState = "merged"
)
type ListNotificationOptions struct {
	ListOptions
	Since        time.Time
	Before       time.Time
	Status       []NotifyStatus
	SubjectTypes []NotifySubjectType
}
type MarkNotificationOptions struct {
	LastReadAt time.Time
	Status     []NotifyStatus
	ToStatus   NotifyStatus
}
func (opt *ListNotificationOptions) QueryEncode() string {
	query := opt.getURLQuery()
	if !opt.Since.IsZero() {
		query.Add("since", opt.Since.Format(time.RFC3339))
	}
	if !opt.Before.IsZero() {
		query.Add("before", opt.Before.Format(time.RFC3339))
	}
	for _, s := range opt.Status {
		query.Add("status-types", string(s))
	}
	for _, s := range opt.SubjectTypes {
		query.Add("subject-type", string(s))
	}
	return query.Encode()
}
func (opt ListNotificationOptions) Validate(c *Client) error {
	if len(opt.Status) != 0 {
		return c.checkServerVersionGreaterThanOrEqual(version1_12_3)
	}
	return nil
}