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

22 lines
353 B
Go
Raw Normal View History

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