Rest API ,统一使用 CommonResult 做了一次替换~
This commit is contained in:
@@ -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;
|
||||
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user