This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
#pragma once
#include"UserDAO.h"
class UserDAO;
//业务层
class UserService
{
private:
std::unique_ptr<UserDAO> userDAO_;
public:
UserService(std::unique_ptr<UserDAO> _userDAO); //构造函数
// UserService(const UserDAO& _userDAO); //构造函数
~UserService(); //析构函数
int HandleSignUp(const std::string& name,const std::string& email,const std::string& passwd); //处理注册业务,返回userId(0表失败)
int HandleLogIn(const std::string& email,const std::string& passwd); //处理登录业务,返回userId(0表失败)
};