标签:
@protocol ZSYCustomerLogicProtocol <ZSYViewModelBaseProtocol> /** * 用户注册 * * @param mobile 手机号 * @param password 登录密码 * @param code 验证码 */ - (ZSYRequest *)registAPIWithMobile:(NSString *)mobile Password:(NSString *)password Code:(NSString *)code; /** * 用户登录 * * @param mobile 手机号 * @param password 登录密码 */ - (ZSYRequest *)loginAPIWithMobile:(NSString *)mobile Password:(NSString *)password; /** * 查询手机号(登录名)是否已注册 * * @param mobile 手机号 * @param block 回传查询到的用户对象 */ - (ZSYRequest *)isRegistAPI:(NSString *)mobile; /** * 验证登录名 * * @param mobile 手机号 */ - (ZSYRequest *)checkMobileAPI:(NSString *)mobile; /** * 保存客户端生成的手势密码到服务器 * * @param mobile 手机号 * @param pwd 手势密码 */ - (ZSYRequest *)saveGesturePasswordAPIWithMobile:(NSString *)mobile Password:(NSString *)pwd; /** * 修改手势密码 * * @param mobile 手机号 * @param oldPwd 原手势密码 * @param newPwd 新手势密码 */ - (ZSYRequest *)updateGesturePasswordAPIWithMobile:(NSString *)mobile OldPwd:(NSString *)oldPwd NewPwd:(NSString *)newPwd; //登录 - (YTKChainRequest *)loginCustomerLogicWithMobile:(NSString *)mobile Password:(NSString *)password ForgetGesturePasswordBlock:(void (^)(void))forgetGestureBlock CreateGesturePasswordBlock:(void (^)(void))createGestureBlock; //注册界面的业务逻辑 【注册新账号】 - (YTKChainRequest *)registCustomerLogicWithMobile:(NSString *)mobile Password:(NSString *)password Code:(NSString *)code GesturePasswordBlock:(void (^)(void))gesturePwdBlock; //登录界面的业务逻辑【找回手势密码 or 登录密码】 - (YTKChainRequest *)findGestureOrLoginPasswordLogicWith:(NSString *)mobile Password:(NSString *)password Code:(NSString *)code GesturePasswordBlock:(void (^)(void))gesturePwdBlock; //注册界面的业务逻辑 【找回密码】 - (YTKChainRequest *)findLoginPasswordLogicWithMobile:(NSString *)mobile; @end
注意:
Objection真是个好东西,类似Java里面的Spring Ioc。
标签:
原文地址:http://www.cnblogs.com/xiongzenghui/p/4625702.html