-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
51 changed files
with
604 additions
and
429 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
56 changes: 56 additions & 0 deletions
56
yue-library-base/src/main/java/ai/yue/library/base/constant/FieldNamingStrategyEnum.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
package ai.yue.library.base.constant; | ||
|
||
import com.alibaba.fastjson.PropertyNamingStrategy; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
|
||
/** | ||
* 字段命名策略 | ||
* | ||
* @author ylyue | ||
* @since 2020年2月20日 | ||
*/ | ||
@Getter | ||
@AllArgsConstructor | ||
public enum FieldNamingStrategyEnum { | ||
|
||
/** | ||
* 驼峰命名法,即:小驼峰命名法 | ||
* <p>CAMEL_CASE策略,Java对象属性:personId,序列化后属性:persionId | ||
*/ | ||
CAMEL_CASE(PropertyNamingStrategy.CamelCase), | ||
|
||
/** | ||
* 小驼峰命名法 | ||
* <p>{@link #CAMEL_CASE} | ||
*/ | ||
LOWER_CAMEL_CASE(PropertyNamingStrategy.CamelCase), | ||
|
||
/** | ||
* 大驼峰命名法 | ||
* <p>{@link #PASCAL_CASE} | ||
*/ | ||
UPPER_CAMEL_CASE(PropertyNamingStrategy.PascalCase), | ||
|
||
/** | ||
* 帕斯卡命名法,即:大驼峰命名法 | ||
* <p>PASCAL_CASE策略,Java对象属性:personId,序列化后属性:PersonId | ||
*/ | ||
PASCAL_CASE(PropertyNamingStrategy.PascalCase), | ||
|
||
/** | ||
* 下划线命名法 | ||
* <p>SNAKE_CASE策略,Java对象属性:personId,序列化后属性:person_id | ||
*/ | ||
SNAKE_CASE(PropertyNamingStrategy.SnakeCase), | ||
|
||
/** | ||
* 中划线命名法 | ||
* <p>KEBAB_CASE策略,Java对象属性:personId,序列化后属性:person-id | ||
*/ | ||
KEBAB_CASE(PropertyNamingStrategy.KebabCase); | ||
|
||
private PropertyNamingStrategy propertyNamingStrategy; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
.../constant/example/data/jdbc/RoleEnum.java → ...i/yue/library/test/constant/RoleEnum.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package ai.yue.library.test.constant.example.data.jdbc; | ||
package ai.yue.library.test.constant; | ||
|
||
/** | ||
* 角色类型 | ||
|
2 changes: 1 addition & 1 deletion
2
.../library/test/constant/test/TestEnum.java → ...i/yue/library/test/constant/TestEnum.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package ai.yue.library.test.constant.test; | ||
package ai.yue.library.test.constant; | ||
|
||
/** | ||
* @author ylyue | ||
|
2 changes: 1 addition & 1 deletion
2
...ant/example/data/jdbc/UserStatusEnum.java → ...library/test/constant/UserStatusEnum.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...base/api/version/ApiVersionConroller.java → ...base/api/version/ApiVersionConroller.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
.../api/version/AuthApiVersionConroller.java → .../api/version/AuthApiVersionConroller.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
.../api/version/OpenApiVersionConroller.java → .../api/version/OpenApiVersionConroller.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...time/format/DateTimeFormatController.java → ...time/format/DateTimeFormatController.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...base/validation/ValidationController.java → ...base/validation/ValidationController.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.