Skip to content

Commit

Permalink
📝 Package comment
Browse files Browse the repository at this point in the history
  • Loading branch information
88250 committed Sep 28, 2017
1 parent a0a65b8 commit 1281702
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions controller/console/articlectl.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.

// Package console defines console controllers.
package console

import (
Expand Down
1 change: 1 addition & 0 deletions controller/initctl.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.

// Package controller is the "controller" layer.
package controller

import (
Expand Down
2 changes: 1 addition & 1 deletion model/article.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.

// Package model defines entity structures and ORM.
// Package model is the "model" layer which defines entity structures with ORM.
package model

// Article statuses.
Expand Down
1 change: 1 addition & 0 deletions model/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ type User struct {
Role int `json:"role"`
AvatarURL string `gorm:"size:255" json:"avatarURL"`
B3Key string `gorm:"size:32" json:"b3Key"`
Locale string `gorm:"size:32 json:"locale"`

BlogID uint `json:"blogID"`
}
1 change: 1 addition & 0 deletions service/articlesrv.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.

// Package service is the "business logic" layer, encapsulates transaction.
package service

import (
Expand Down
1 change: 1 addition & 0 deletions service/initsrv_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ func TestInitPlatform(t *testing.T) {
Email: testPlatformAdminEmail,
Password: "saadmin",
B3Key: "b3key",
Locale: "zh_CN",
}

Init.InitPlatform(platformAdmin)
Expand Down
1 change: 1 addition & 0 deletions util/confs.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.

// Package util defines variety of utilities.
package util

import (
Expand Down

0 comments on commit 1281702

Please sign in to comment.