Update Struct NotificationSubject (#424)

NotificationSubject: add State

Co-authored-by: 6543 <6543@obermui.de>
Reviewed-on: https://gitea.com/gitea/go-sdk/pulls/424
Reviewed-by: techknowlogick <techknowlogick@gitea.io>
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
This commit is contained in:
6543 2020-09-21 05:00:26 +00:00 committed by Lunny Xiao
parent 302993adb8
commit 779e9330e9

View file

@ -26,7 +26,8 @@ type NotificationSubject struct {
Title string `json:"title"`
URL string `json:"url"`
LatestCommentURL string `json:"latest_comment_url"`
Type string `json:"type" binding:"In(Issue,Pull,Commit)"`
Type string `json:"type"`
State StateType `json:"state"`
}
// NotifyStatus notification status type