-
Notifications
You must be signed in to change notification settings - Fork 19
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
11 changed files
with
179 additions
and
20 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
# 提交 | ||
|
||
git pull | ||
git add . | ||
git commit -m "[Feature] add for new" | ||
git push | ||
|
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
44 changes: 44 additions & 0 deletions
44
idoc-api/src/main/java/com/github/houbb/idoc/api/model/common/DocOption.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,44 @@ | ||
/* | ||
* Copyright (c) 2019. houbinbin Inc. | ||
* idoc All rights reserved. | ||
*/ | ||
|
||
package com.github.houbb.idoc.api.model.common; | ||
|
||
import java.io.Serializable; | ||
|
||
/** | ||
* 文档选项 | ||
* @author binbin.hou | ||
* @since 0.1.0 | ||
*/ | ||
public class DocOption implements Serializable { | ||
|
||
private static final long serialVersionUID = -8306773716221565448L; | ||
|
||
/** | ||
* key | ||
*/ | ||
private String key; | ||
|
||
/** | ||
* value | ||
*/ | ||
private String value; | ||
|
||
public String getKey() { | ||
return key; | ||
} | ||
|
||
public void setKey(String key) { | ||
this.key = key; | ||
} | ||
|
||
public String getValue() { | ||
return value; | ||
} | ||
|
||
public void setValue(String value) { | ||
this.value = value; | ||
} | ||
} |
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
48 changes: 48 additions & 0 deletions
48
idoc-core/src/main/java/com/github/houbb/idoc/core/util/JavaTypeAliasUtil.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,48 @@ | ||
/* | ||
* Copyright (c) 2019. houbinbin Inc. | ||
* idoc All rights reserved. | ||
*/ | ||
|
||
package com.github.houbb.idoc.core.util; | ||
|
||
import java.util.Collections; | ||
import java.util.HashMap; | ||
import java.util.Map; | ||
|
||
/** | ||
* java 类型别名工具类 | ||
* @author binbin.hou | ||
* @since 0.1.0 | ||
*/ | ||
public final class JavaTypeAliasUtil { | ||
|
||
private static final Map<String, String> TYPE_ALIAS_MAP = new HashMap<>(); | ||
|
||
static { | ||
TYPE_ALIAS_MAP.put("java.lang.String", "字符串"); | ||
TYPE_ALIAS_MAP.put("java.lang.Boolean", "布尔值"); | ||
TYPE_ALIAS_MAP.put("java.lang.Byte", "字节"); | ||
TYPE_ALIAS_MAP.put("java.lang.Character", "字符"); | ||
TYPE_ALIAS_MAP.put("java.lang.Double", "浮点型"); | ||
TYPE_ALIAS_MAP.put("java.lang.Float", "浮点型"); | ||
TYPE_ALIAS_MAP.put("java.lang.Integer", "整型"); | ||
TYPE_ALIAS_MAP.put("java.lang.Long", "长整型"); | ||
TYPE_ALIAS_MAP.put("java.lang.Short", "短整型"); | ||
TYPE_ALIAS_MAP.put("java.lang.BigDecimal", "数字"); | ||
TYPE_ALIAS_MAP.put("java.lang.BigInteger", "数字"); | ||
TYPE_ALIAS_MAP.put("java.lang.LocalDate", "日期"); | ||
TYPE_ALIAS_MAP.put("java.lang.LocalDateTime", "日期时间"); | ||
TYPE_ALIAS_MAP.put("java.lang.LocalTime", "时间"); | ||
TYPE_ALIAS_MAP.put("java.lang.Date", "日期"); | ||
TYPE_ALIAS_MAP.put("java.lang.Currency", "货币"); | ||
} | ||
|
||
/** | ||
* 获取名称别名 | ||
* @return map 信息 | ||
*/ | ||
public static Map<String, String> getTypeAliasMap() { | ||
return Collections.unmodifiableMap(TYPE_ALIAS_MAP); | ||
} | ||
|
||
} |
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