Skip to content

Commit

Permalink
fix: 修复 ResultTemplate#setCode 属性为 private 错误 close 3
Browse files Browse the repository at this point in the history
  • Loading branch information
fengwenyi committed Jan 15, 2024
1 parent 290d2ff commit 5f74fea
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2019-2022 Erwin Feng
Copyright (c) 2019-2024 Erwin Feng

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
6 changes: 6 additions & 0 deletions LOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# 版本更新日志

## v2.7.5

:bug: Bug Fixes

- 修复 ResultTemplate#setCode 属性为 private 错误 ([#3](https://github.com/fengwenyi/api-result/issues/3))


## v2.7.4

Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>com.fengwenyi</groupId>
<artifactId>api-result</artifactId>
<version>2.7.4</version>
<version>2.7.5-SNAPSHOT</version>
<packaging>jar</packaging>
<name>api-result</name>
<description>一套RESTful风格API接口响应参数规范化的解决方案</description>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/fengwenyi/api/result/ResultTemplate.java
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ public String getCode() {
* @param code 响应码
* @return {@link ResultTemplate}
*/
private ResultTemplate<T> setCode(String code) {
public ResultTemplate<T> setCode(String code) {
this.code = code;
return this;
}
Expand Down

0 comments on commit 5f74fea

Please sign in to comment.