We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4379548 commit d1b95e7Copy full SHA for d1b95e7
1 file changed
README.md
@@ -41,17 +41,15 @@ implementation 'io.github.azirzsk:function-call-processor:1.0.0'
41
42
```java
43
public class Calculator {
44
- @Function(name = "add",
45
- description = "将两个数字相加")
46
- public int add(@Property(description = "第一个数字") int a,
47
- @Property(description = "第二个数字") int b) {
+ @Function(desc = "将两个数字相加")
+ public int add(@Property(desc = "第一个数字") int a,
+ @Property(desc = "第二个数字") int b) {
48
return a + b;
49
}
50
51
- @Function(name = "multiply",
52
- description = "将两个数字相乘")
53
- public int multiply(@Property(description = "第一个数字") int x,
54
- @Property(description = "第二个数字") int y) {
+ @Function(desc = "将两个数字相乘")
+ public int multiply(@Property(desc = "第一个数字") int x,
+ @Property(desc = "第二个数字") int y) {
55
return x * y;
56
57
0 commit comments