server/pkg/loafer/web/annotation/dao.go
2019-11-18 23:28:56 +09:00

22 lines
353 B
Go

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"`
}