Skip to content

Commit

Permalink
!107 修改部分方法访问可见范围
Browse files Browse the repository at this point in the history
Merge pull request !107 from dialYun/N/A
  • Loading branch information
entropy-cloud authored and gitee-org committed Jan 12, 2025
2 parents b854ee9 + 385a68d commit a5ba7a6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions nop-biz/src/main/java/io/nop/biz/crud/CrudBizModel.java
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,10 @@ public IDaoProvider daoProvider() {
return daoProvider;
}

public IBizObjectManager bizObjectManager() {
return bizObjectManager;
}

@Inject
public void setDaoProvider(IDaoProvider daoProvider) {
this.daoProvider = daoProvider;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ public void initRpcContext(IGraphQLExecutionContext context, GraphQLOperationTyp
field.setFieldDefinition(action);
}

private GraphQLFieldSelection initForReturnType(IGraphQLExecutionContext context,
public GraphQLFieldSelection initForReturnType(IGraphQLExecutionContext context,
GraphQLOperationType operationType, String operationName, Object request,
GraphQLType returnType, FieldSelectionBean selectionBean) {
GraphQLDocument doc = new GraphQLDocument();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ private CompletionStage<Void> _invokeOperations(DataFetchingEnvironment baseEnv,
return FutureHelper.waitAll(promises);
}

private Object fetchSelections(Object source, GraphQLSelectionSet selectionSet, DataFetchingEnvironment env) {
protected Object fetchSelections(Object source, GraphQLSelectionSet selectionSet, DataFetchingEnvironment env) {
Map<String, Object> ret = new LinkedHashMap<>();

List<CompletionStage<?>> promises = _fetchSelections(null, ret, source, selectionSet, env);
Expand Down Expand Up @@ -399,7 +399,7 @@ Object hookFetch(IDataFetcher fetcher, DataFetchingEnvironment env) {
// return env;
// }

private Object fetchNext(Object value, DataFetchingEnvironment env) {
protected Object fetchNext(Object value, DataFetchingEnvironment env) {
if (isEmpty(value))
return value;

Expand All @@ -423,7 +423,7 @@ private boolean isEmpty(Object value) {
return false;
}

private Object fetchList(Collection<?> c, GraphQLSelectionSet selectionSet, DataFetchingEnvironment env) {
protected Object fetchList(Collection<?> c, GraphQLSelectionSet selectionSet, DataFetchingEnvironment env) {
List<Object> list = new ArrayList<>(c.size());
List<CompletionStage<?>> promises = null;

Expand Down

0 comments on commit a5ba7a6

Please sign in to comment.