ms-auth/internal/users/delivery.go

20 lines
919 B
Go
Raw Normal View History

2024-10-09 17:07:38 +00:00
package users
import (
"context"
2024-12-30 15:04:26 +00:00
userv1 "git.sch9.ru/new_gate/ms-auth/proto/user/v1"
2024-10-09 17:07:38 +00:00
"google.golang.org/protobuf/types/known/emptypb"
)
type UserHandlers interface {
CreateUser(ctx context.Context, req *userv1.CreateUserRequest) (*userv1.CreateUserResponse, error)
2024-12-30 15:04:26 +00:00
GetUser(ctx context.Context, req *userv1.GetUserRequest) (*userv1.GetUserResponse, error)
2024-10-09 17:07:38 +00:00
UpdateUser(ctx context.Context, req *userv1.UpdateUserRequest) (*emptypb.Empty, error)
DeleteUser(ctx context.Context, req *userv1.DeleteUserRequest) (*emptypb.Empty, error)
2024-12-30 15:04:26 +00:00
Login(ctx context.Context, req *userv1.LoginRequest) (*emptypb.Empty, error)
Verify(ctx context.Context, req *emptypb.Empty) (*emptypb.Empty, error)
Refresh(ctx context.Context, req *emptypb.Empty) (*emptypb.Empty, error)
Logout(ctx context.Context, req *emptypb.Empty) (*emptypb.Empty, error)
CompleteLogout(ctx context.Context, req *emptypb.Empty) (*emptypb.Empty, error)
2024-10-09 17:07:38 +00:00
}