ms-auth/internal/users/delivery.go
Vyacheslav1557 93eaf89d78 refactor:
2024-10-09 22:07:38 +05:00

15 lines
554 B
Go

package users
import (
"context"
userv1 "git.sch9.ru/new_gate/ms-auth/pkg/go/gen/proto/user/v1"
"google.golang.org/protobuf/types/known/emptypb"
)
type UserHandlers interface {
CreateUser(ctx context.Context, req *userv1.CreateUserRequest) (*userv1.CreateUserResponse, error)
ReadUser(ctx context.Context, req *userv1.ReadUserRequest) (*userv1.ReadUserResponse, error)
UpdateUser(ctx context.Context, req *userv1.UpdateUserRequest) (*emptypb.Empty, error)
DeleteUser(ctx context.Context, req *userv1.DeleteUserRequest) (*emptypb.Empty, error)
}