All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.haoxuer.discover.user.api.apis.UserHandler Maven / Gradle / Ivy

There is a newer version: 3.3.18-20230117
Show newest version
package com.haoxuer.discover.user.api.apis;

import com.haoxuer.discover.rest.base.ResponseObject;
import com.haoxuer.discover.user.api.domain.request.*;
import com.haoxuer.discover.user.api.domain.response.UserResponse;


/**
 * 用户的一些基本接口
 * 

* Created by ada on 2017/6/29. */ public interface UserHandler { /** * 发送注册码 * * @param request * @return */ ResponseObject sendCode(SendCodeRequest request); boolean checkCode(String phone, String code, Integer type, ResponseObject result); ResponseObject checkPhoneCode(CheckPhoneCodeRequest request); /** * 通过手机号验证码登陆 * * @param request * @return */ UserResponse loginByCode(UserLoginCodeRequest request); /** * 绑定手机号 * * @param request * @return */ UserResponse bindByCode(UserLoginCodeRequest request); /** * 通过手机号,密码,验证码进行注册 * * @param request * @return */ UserResponse registerByCode(UserRegisterCodeRequest request); /** * 通过手机号密码登陆 * * @param request * @return */ UserResponse login(UserLoginRequest request); /** * 第三方登陆接口,要是登陆成功直接返回用户信息,要是没用绑定需要调用另外一个接口(跳转到绑定页面,调用发送手机验证码功能,然后调用registerOauth接口) * * @param request */ UserResponse loginOauth(UserLoginOatuthRequest request); /** * 获取用户的openId * @param request * @return */ UserResponse findOpenId(UserLoginOatuthRequest request); /** * 第三方登陆接口,要是沒有信息,直接注册 * * @param request * @return */ UserResponse loginOauthOk(UserLoginOatuthRequest request); /** * 第三方绑定功能 * * @param request * @return */ UserResponse registerOauth(UserRegisterOatuthRequest request); /** * 第三方绑定 * * @param request * @return */ UserResponse bindOauth(UserBindOauthRequest request); /** * 绑定用户手机号 * * @param request * @return */ UserResponse bindPhone(UserBindPhoneRequest request); /** * 用户重置密码 * * @param request * @return */ UserResponse resetPassword(UserResetPasswordRequest request); /** * 用户更换手机号码 * * @param request * @return */ ResponseObject changePhone(UserChangePhoneRequest request); /** * 修改用户密码 * * @param request * @return */ ResponseObject changePassword(UserChangePasswordRequest request); /** * 修改用户密码 * * @param request * @return */ UserResponse update(UserUpdateRequest request); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy