server/pkg/modules/user/user-service.go
2019-11-12 00:00:04 +09:00

27 lines
506 B
Go

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