server/pkg/modules/user/user-service.go

27 lines
506 B
Go
Raw Normal View History

2019-11-11 15:00:04 +00:00
package user
import (
"log"
"reflect"
cda "git.loafle.net/commons/di-go/annotation"
cdr "git.loafle.net/commons/di-go/registry"
// For annotation
_ "git.loafle.net/totopia/server/pkg/loafer/web/annotation"
)
var UserServiceType = reflect.TypeOf((*UserService)(nil))
func init() {
cdr.RegisterType(UserServiceType)
}
type UserService struct {
cda.TypeAnnotation `annotation:"@web:Service(\"name\": \"/userService\")"`
}
func (us *UserService) FindAll() {
log.Printf("UserService FindAll")
}