server/pkg/loafer/web/annotation/dao.go

22 lines
388 B
Go
Raw Permalink Normal View History

2019-11-18 14:28:56 +00:00
package annotation
import (
"reflect"
"git.loafle.net/loafer/annotation-go"
)
2019-11-19 14:58:46 +00:00
var RepositoryAnnotationType = reflect.TypeOf((*RepositoryAnnotation)(nil))
2019-11-18 14:28:56 +00:00
func init() {
2019-11-19 14:58:46 +00:00
if err := annotation.Register(RepositoryAnnotationType); nil != err {
2019-11-18 14:28:56 +00:00
panic(err)
}
}
2019-11-19 14:58:46 +00:00
type RepositoryAnnotation struct {
annotation.TypeAnnotation `@annotation:"@web:Repository"`
2019-11-18 14:28:56 +00:00
Name string `json:"name"`
}