From d8e11a8eaa0a8712024426348d4f7b430cea9e3a Mon Sep 17 00:00:00 2001
From: Bwko <bouwko@gmail.com>
Date: Thu, 24 Nov 2016 21:54:00 +0100
Subject: [PATCH] Lint models/admin.go

---
 models/admin.go | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/models/admin.go b/models/admin.go
index 14a0e8d00..058e9be8a 100644
--- a/models/admin.go
+++ b/models/admin.go
@@ -18,9 +18,11 @@ import (
 	"code.gitea.io/gitea/modules/setting"
 )
 
+//NoticeType describes the notice type
 type NoticeType int
 
 const (
+	//NoticeRepository type
 	NoticeRepository NoticeType = iota + 1
 )
 
@@ -33,10 +35,12 @@ type Notice struct {
 	CreatedUnix int64
 }
 
+// BeforeInsert is invoked from XORM before inserting an object of this type.
 func (n *Notice) BeforeInsert() {
 	n.CreatedUnix = time.Now().Unix()
 }
 
+// AfterSet is invoked from XORM after setting the value of a field of this object.
 func (n *Notice) AfterSet(colName string, _ xorm.Cell) {
 	switch colName {
 	case "created_unix":