Skip to content

Commit

Permalink
v5.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
839128 committed Oct 16, 2019
1 parent 9c77533 commit e56add5
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@

import io.swagger.annotations.ApiOperation;
import org.aoju.bus.base.consts.ErrorCode;
import org.aoju.bus.base.entity.Message;
import org.aoju.bus.base.service.BaseService;
import org.aoju.bus.core.utils.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
Expand Down Expand Up @@ -55,7 +53,7 @@ public class BaseController<Service extends BaseService<T>, T> extends Controlle
@ApiOperation(value = "通用:添加数据", httpMethod = "POST")
@ResponseBody
public Object add(T entity) {
return write(ErrorCode.EM_SUCCESS,service.insertSelective(entity));
return write(ErrorCode.EM_SUCCESS, service.insertSelective(entity));
}

/**
Expand All @@ -82,7 +80,7 @@ public Object remove(T entity) {
@ApiOperation(value = "通用:主键更新", httpMethod = "POST")
@ResponseBody
public Object update(T entity) {
return write(ErrorCode.EM_SUCCESS,service.updateSelectiveById(entity));
return write(ErrorCode.EM_SUCCESS, service.updateSelectiveById(entity));
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ static ByteString checkLowercase(ByteString name) throws IOException {
return name;
}

static final class Reader {
static final class Reader {

private final List<Header> headerList = new ArrayList<>();
private final BufferSource source;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@
package org.aoju.bus.limiter.metadata;

import org.aoju.bus.core.utils.CollUtils;
import org.aoju.bus.limiter.Injector;
import org.aoju.bus.limiter.Handler;
import org.aoju.bus.limiter.Resolver;
import org.aoju.bus.limiter.Injector;
import org.aoju.bus.limiter.Limiter;
import org.aoju.bus.limiter.Resolver;
import org.aoju.bus.limiter.annotation.LimiterParameter;
import org.aoju.bus.limiter.resource.LimitedResource;
import org.springframework.beans.factory.BeanFactory;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@
*/
package org.aoju.bus.limiter.metadata;

import org.aoju.bus.limiter.Injector;
import org.aoju.bus.limiter.Handler;
import org.aoju.bus.limiter.Resolver;
import org.aoju.bus.limiter.Injector;
import org.aoju.bus.limiter.Limiter;
import org.aoju.bus.limiter.Resolver;
import org.aoju.bus.limiter.resource.LimitedResource;

import java.lang.reflect.Method;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@
*/
package org.aoju.bus.limiter.resource;

import org.aoju.bus.limiter.resource.LimitedResource;

import java.lang.reflect.Method;
import java.util.Collection;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@
*/
package org.aoju.bus.limiter.support.lock;

import org.aoju.bus.limiter.support.rate.AbstractParser;
import org.aoju.bus.limiter.annotation.Lock;
import org.aoju.bus.limiter.resource.LimitedResource;
import org.aoju.bus.limiter.support.rate.AbstractParser;
import org.springframework.core.annotation.AnnotationAttributes;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@
*/
package org.aoju.bus.limiter.support.peak;

import org.aoju.bus.limiter.support.rate.AbstractParser;
import org.aoju.bus.limiter.annotation.Peak;
import org.aoju.bus.limiter.resource.LimitedResource;
import org.aoju.bus.limiter.support.rate.AbstractParser;
import org.springframework.core.annotation.AnnotationAttributes;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ private static String md5(String str) {
* 是否支持第三方登录
*
* @param context context
* @param source source
* @param source source
* @return true or false
* @since 1.6.2
*/
Expand All @@ -296,7 +296,7 @@ public static boolean isSupportedAuth(Context context, Complex source) {
* 检查配置合法性。针对部分平台, 对redirect uri有特定要求。一般来说redirect uri都是http://,而对于facebook平台, redirect uri 必须是https的链接
*
* @param context context
* @param source source
* @param source source
* @since 1.6.2
*/
public static void checkcontext(Context context, Complex source) {
Expand All @@ -319,7 +319,7 @@ public static void checkcontext(Context context, Complex source) {
* <p>
* {@code v1.10.0}版本中改为传入{@code source}和{@code callback},对于不同平台使用不同参数接受code的情况统一做处理
*
* @param complex 当前授权平台
* @param complex 当前授权平台
* @param callback 从第三方授权回调回来时传入的参数集合
* @since 1.8.0
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
* @since JDK 1.8+
*/
public class QqProvider extends DefaultProvider {

public QqProvider(Context context) {
super(context, Registry.QQ);
}
Expand Down

0 comments on commit e56add5

Please sign in to comment.