/// <summary> /// Initializes a new instance of the <see cref="FriendController"/> class. /// 设置BaseController的reqeuseCode为Friend /// </summary> public FriendController() { requestCode = RequestCode.Friend; friendDAO = new FriendDAO(); userDAO = new UserDAO(); userDataDAO = new UserDataDAO(); }
/// <summary> /// Initializes a new instance of the <see cref="UserController"/> class. /// 更改RequestCode /// </summary> public UserController() { requestCode = RequestCode.User; userDAO = new UserDAO(); _userDataDAO = new UserDataDAO(); }