feat: Update project structure and configuration files
This commit is contained in:
25
backend/app/grpc/users/provider.gen.go
Executable file
25
backend/app/grpc/users/provider.gen.go
Executable file
@@ -0,0 +1,25 @@
|
||||
package users
|
||||
|
||||
import (
|
||||
userv1 "quyun/pkg/proto/user/v1"
|
||||
"quyun/providers/grpc"
|
||||
|
||||
"go.ipao.vip/atom"
|
||||
"go.ipao.vip/atom/container"
|
||||
"go.ipao.vip/atom/contracts"
|
||||
"go.ipao.vip/atom/opt"
|
||||
)
|
||||
|
||||
func Provide(opts ...opt.Option) error {
|
||||
if err := container.Container.Provide(func(
|
||||
__grpc *grpc.Grpc,
|
||||
) (contracts.Initial, error) {
|
||||
obj := &Users{}
|
||||
userv1.RegisterUserServiceServer(__grpc.Server, obj)
|
||||
|
||||
return obj, nil
|
||||
}, atom.GroupInitial); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
}
|
||||
Reference in New Issue
Block a user