server/pkg/loafer/web/annotation/dao.go
2019-11-19 23:58:46 +09:00

22 lines
388 B
Go

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