29 lines
783 B
C++
29 lines
783 B
C++
#pragma once
|
|
|
|
#include <memory>
|
|
#include "lib/api/services/AuthService.server.pb.h"
|
|
#include "lib/api/services/AdminService.pb.h"
|
|
#include "lib/utils/bts_no_copy.h"
|
|
|
|
namespace bts
|
|
{
|
|
namespace user
|
|
{
|
|
class AuthServiceServer : public api::user::AuthServiceBase
|
|
{
|
|
public:
|
|
BTS_NO_COPY(AuthServiceServer);
|
|
AuthServiceServer (bts::api::ServiceContext& context);
|
|
~AuthServiceServer();
|
|
void get_users(const api::user::GetUsersRequest& ,
|
|
const std::function<void(const api::user::GetUsersResponse&)>& ) override;
|
|
void authenticate_login(const api::user::AuthenticateLoginRequest& ,
|
|
const std::function<void(const api::user::AuthenticateLoginResponse&)>& ) override;
|
|
|
|
private:
|
|
struct PImpl;
|
|
std::unique_ptr<PImpl> me;
|
|
};
|
|
}
|
|
}
|