|
//
// writeCommentViewModel.h
// ThePaperBase
//
// Created by scar1900 on 15/8/14.
// Copyright (c) 2015年 scar1900. All rights reserved.
//
#import <Foundation/Foundation.h>
#define userNameRangeHolder @"请输入4-20个字符"
#define passwordRangeHolder @"请输入6-12个数字或字母"
@protocol userSystemViewModel <NSObject>
@optional
/**
* 登陆成功
*/
- (void)customLoginSuccess;
/**
* 确认邀请码成功,需要push到注册页面
*/
- (void)confirmInviteCodeSuccess;
/**
* 注册成功(需要dismiss登陆相关页面)
*/
- (void)registerSuccess;
/**
* 确认验证码成功,需要push到修改密码页面
*/
- (void)confirmVerifyCodeSuccess;
/**
* 修改密码成功(需要pop会登陆页面)
*/
- (void)modifyPasswordSuccess;
@end
@interface userSystemViewModel : NSObject
@property(nonatomic, weak)id<userSystemViewModel> delegate;
@property(nonatomic, strong)NSString *userName;
@property(nonatomic, strong)NSString *password;
@property(nonatomic, strong)NSString *thirdLoginType;
/**
* 获取邀请码
*/
- (void)getInviteCode;
/**
* 确认邮箱手机及邀请码
*/
- (void)confirmMobileAndEmail;
/**
* 常规登陆
*/
- (void)customLogin;
/**
* 微信登陆
*/
- (void)wechatSocietyLogin;
/**
* qq登陆
*/
- (void)QQSocietyLogin;
/**
* 新浪微博登陆
*/
- (void)sinaSocietyLogin;
/**
* 豆瓣登陆
*/
- (void)doubanSocietyLogin;
/**
* 确认注册
*
* @param selectBtn 注册协议按钮(确认是否同意)
*/
- (void)confirmRegister:(UIButton*)selectBtn;
/**
* 忘记密码获取验证码
*/
- (void)getVerifyCode;
/**
* 确认验证码
*/
- (void)confirmVerifyCode;
/**
* 确认修改密码(忘记密码)
*/
- (void)confirmModifyPassword;
@end
|