ms-auth/internal/users/delivery.go

15 lines
554 B
Go
Raw Permalink Normal View History

2024-10-09 17:07:38 +00:00
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)
}