Rest API ,统一使用 CommonResult 做了一次替换~

This commit is contained in:
YunaiV
2019-02-26 00:58:58 +08:00
parent 4162eda377
commit 6cbce27412
11 changed files with 63 additions and 22 deletions

View File

@@ -1,6 +1,7 @@
package cn.iocoder.mall.user.service.api;
import cn.iocoder.common.framework.exception.ServiceException;
import cn.iocoder.common.framework.vo.CommonResult;
public interface MobileCodeService {
@@ -9,6 +10,6 @@ public interface MobileCodeService {
*
* @param mobile 手机号
*/
void send(String mobile) throws ServiceException;
CommonResult<Void> send(String mobile) throws ServiceException;
}

View File

@@ -17,6 +17,7 @@ public interface OAuth2Service {
* @param code 验证码
* @return 授权信息
*/
@Deprecated
OAuth2AccessTokenBO getAccessToken(String mobile, String code)
throws ServiceException;
@@ -28,11 +29,10 @@ public interface OAuth2Service {
* @param accessToken 访问令牌
* @return 授权信息
*/
OAuth2AuthenticationBO checkToken(String accessToken)
throws ServiceException;
CommonResult<OAuth2AuthenticationBO> checkToken(String accessToken);
// @see 刷新 token
// TODO @see 刷新 token
// @see 移除 token
// TODO @see 移除 token
}