Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

支持在被 @AutoOperate 注解的方法上添加操作配置 #223

Closed
Createsequence opened this issue Feb 28, 2024 · 0 comments
Closed
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@Createsequence
Copy link
Collaborator

Createsequence commented Feb 28, 2024

希望 @AutoOperate 能够像操作者接口那样,支持直接从被注解的方法或者参数上解析操作配置。

比如:

@Assemble(key = "id", container = "foo")
@AutoOperate(resolveOperationsFromCurrentElement = true) // 从 listByIds 方法上解析操作配置
public List<Foo> listByIds(Collection<Integer> ids);

public void preocessFoo(
  @Assemble(key = "id", container = "foo")
  @AutoOperate(resolveOperationsFromCurrentElement = true) // 从 targets 方法参数上解析操作配置
  Collection<Foo> targets
);

在上述两个操作中,装配操作将遵循 @AutoOperate 所在类/参数上的 @Assemble 注解,而不是 Foo 类本身。

@Createsequence Createsequence added the enhancement New feature or request label Feb 28, 2024
@Createsequence Createsequence self-assigned this Feb 28, 2024
@Createsequence Createsequence added this to the release 2.7.0 milestone Feb 28, 2024
Createsequence added a commit that referenced this issue Feb 28, 2024
Createsequence added a commit that referenced this issue Feb 28, 2024
@Createsequence Createsequence changed the title @AutoOperate 支持引入操作配置 支持在被 @AutoOperate 注解的方法上添加操作配置 Apr 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant