Fix commentline typos in src/pkg/repository/model/model.go

Signed-off-by: elihe <elihe@tencent.com>
This commit is contained in:
elihe 2021-07-02 10:03:43 +08:00
parent bb57264f11
commit 426f7bc7bc

View File

@ -30,7 +30,7 @@ func init() {
)
}
// RepoRecord holds the record of an repository in DB, all the infors are from the registry notification event.
// RepoRecord holds the record of an repository in DB, all the infos are from the registry notification event.
type RepoRecord struct {
RepositoryID int64 `orm:"pk;auto;column(repository_id)" json:"repository_id"`
Name string `orm:"column(name)" json:"name"`
@ -57,7 +57,7 @@ func (r *RepoRecord) FilterByBlobDigest(ctx context.Context, qs orm.QuerySeter,
return qs.FilterRaw("repository_id", fmt.Sprintf("in (%s)", sql))
}
// TableName is required by by beego orm to map RepoRecord to table repository
// TableName is required by beego orm to map RepoRecord to table repository
func (r *RepoRecord) TableName() string {
return "repository"
}