Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
logwire-bo-sdk
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
薛涛 Toby Xue
logwire-bo-sdk
Commits
dddab7c3
Commit
dddab7c3
authored
Dec 28, 2020
by
姜逸青 Jameson Jiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#1971 注释补全
parent
4aa6b652
Changes
18
Show whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
120 additions
and
11 deletions
+120
-11
Array.java
src/main/java/logwire/core/bo/annotation/Array.java
+13
-0
AuxField.java
src/main/java/logwire/core/bo/annotation/AuxField.java
+11
-0
BizModel.java
src/main/java/logwire/core/bo/annotation/BizModel.java
+5
-0
BizQuery.java
src/main/java/logwire/core/bo/annotation/BizQuery.java
+2
-0
Column.java
src/main/java/logwire/core/bo/annotation/Column.java
+3
-0
Composite.java
src/main/java/logwire/core/bo/annotation/Composite.java
+11
-0
Item.java
src/main/java/logwire/core/bo/annotation/Item.java
+11
-0
ListOperationProvider.java
...ava/logwire/core/bo/annotation/ListOperationProvider.java
+4
-1
Many.java
src/main/java/logwire/core/bo/annotation/Many.java
+11
-0
ObjectOperationProvider.java
...a/logwire/core/bo/annotation/ObjectOperationProvider.java
+3
-0
Operation.java
src/main/java/logwire/core/bo/annotation/Operation.java
+3
-0
OperationArg.java
src/main/java/logwire/core/bo/annotation/OperationArg.java
+7
-0
OperationParameter.java
...n/java/logwire/core/bo/annotation/OperationParameter.java
+10
-0
OperationProvider.java
...in/java/logwire/core/bo/annotation/OperationProvider.java
+0
-9
SlaveMany.java
src/main/java/logwire/core/bo/annotation/SlaveMany.java
+11
-0
Text.java
src/main/java/logwire/core/bo/annotation/Text.java
+11
-0
TypeOperationProvider.java
...ava/logwire/core/bo/annotation/TypeOperationProvider.java
+3
-0
User.java
src/main/java/logwire/core/bo/object/User.java
+1
-1
No files found.
src/main/java/logwire/core/bo/annotation/Array.java
View file @
dddab7c3
package
logwire
.
core
.
bo
.
annotation
;
import
java.lang.annotation.ElementType
;
import
java.lang.annotation.Retention
;
import
java.lang.annotation.RetentionPolicy
;
import
java.lang.annotation.Target
;
/**
* 数组属性 @Array
* 字段类型必须是BizArray<X>, X可以是String/Double/Boolean/Long/Integer/BigDecimal/OffsetDateTime。
* 数组属性会创建一张子表(Model),子表名为:BO表名_属性名
*/
@Target
({
ElementType
.
FIELD
})
@Retention
(
RetentionPolicy
.
RUNTIME
)
public
@interface
Array
{
String
label
()
default
""
;
int
length
()
default
0
;
//列长度
...
...
src/main/java/logwire/core/bo/annotation/AuxField.java
View file @
dddab7c3
package
logwire
.
core
.
bo
.
annotation
;
import
java.lang.annotation.ElementType
;
import
java.lang.annotation.Retention
;
import
java.lang.annotation.RetentionPolicy
;
import
java.lang.annotation.Target
;
/**
* 辅助属性 @AuxField
* 辅助属性可以是任意类型
*/
@Target
({
ElementType
.
TYPE
})
@Retention
(
RetentionPolicy
.
RUNTIME
)
public
@interface
AuxField
{
String
label
()
default
""
;
}
src/main/java/logwire/core/bo/annotation/BizModel.java
View file @
dddab7c3
...
...
@@ -12,6 +12,11 @@ import java.lang.annotation.Target;
@Retention
(
RetentionPolicy
.
RUNTIME
)
public
@interface
BizModel
{
/**
* 用于 label 国际化
*/
String
verboseNameCode
();
String
label
()
default
""
;
/**
...
...
src/main/java/logwire/core/bo/annotation/BizQuery.java
View file @
dddab7c3
...
...
@@ -4,6 +4,8 @@ import java.lang.annotation.*;
/**
* 在BO类上的Query注解
* BizQuery表示满足特定条件的BO数据。
* 可作为BO查询时的查询条件、BO OperationHandler的执行约束、BO OperationEventHandler的执行约束、创建BO实例时的默认值。
*/
@Target
({
ElementType
.
TYPE
})
@Retention
(
RetentionPolicy
.
RUNTIME
)
...
...
src/main/java/logwire/core/bo/annotation/Column.java
View file @
dddab7c3
...
...
@@ -5,6 +5,9 @@ import java.lang.annotation.Retention;
import
java.lang.annotation.RetentionPolicy
;
import
java.lang.annotation.Target
;
/**
* 列属性
*/
@Target
({
ElementType
.
FIELD
})
@Retention
(
RetentionPolicy
.
RUNTIME
)
public
@interface
Column
{
...
...
src/main/java/logwire/core/bo/annotation/Composite.java
View file @
dddab7c3
package
logwire
.
core
.
bo
.
annotation
;
import
java.lang.annotation.ElementType
;
import
java.lang.annotation.Retention
;
import
java.lang.annotation.RetentionPolicy
;
import
java.lang.annotation.Target
;
/**
* 组件属性 @Composite
* 组件字段类型必须继承BizComposite。
*/
@Target
({
ElementType
.
FIELD
})
@Retention
(
RetentionPolicy
.
RUNTIME
)
public
@interface
Composite
{
String
label
()
default
""
;
...
...
src/main/java/logwire/core/bo/annotation/Item.java
View file @
dddab7c3
package
logwire
.
core
.
bo
.
annotation
;
import
java.lang.annotation.ElementType
;
import
java.lang.annotation.Retention
;
import
java.lang.annotation.RetentionPolicy
;
import
java.lang.annotation.Target
;
/**
* 明细属性 @Item
* 字段类型必须为BizItem<X>, X为BO类型,未指定时在注解中指定
*/
@Target
({
ElementType
.
FIELD
})
@Retention
(
RetentionPolicy
.
RUNTIME
)
public
@interface
Item
{
String
label
()
default
""
;
...
...
src/main/java/logwire/core/bo/annotation/ListOperationProvider.java
View file @
dddab7c3
...
...
@@ -7,6 +7,9 @@ import java.lang.annotation.Retention;
import
java.lang.annotation.RetentionPolicy
;
import
java.lang.annotation.Target
;
/**
* List级Operation声明注解
*/
@Target
({
ElementType
.
TYPE
})
@Retention
(
RetentionPolicy
.
RUNTIME
)
public
@interface
ListOperationProvider
{
...
...
src/main/java/logwire/core/bo/annotation/Many.java
View file @
dddab7c3
package
logwire
.
core
.
bo
.
annotation
;
import
java.lang.annotation.ElementType
;
import
java.lang.annotation.Retention
;
import
java.lang.annotation.RetentionPolicy
;
import
java.lang.annotation.Target
;
/**
* 多对多关联属性 @Many @SlaveMany
* 字段类型必须是BizMany<X>, X为BO类型,未指定时可在注解中指定。主多对多定义会创建一张子表(Model),子表名为:BO表名_TXT;包含的字段:
*/
@Target
({
ElementType
.
FIELD
})
@Retention
(
RetentionPolicy
.
RUNTIME
)
public
@interface
Many
{
String
label
()
default
""
;
...
...
src/main/java/logwire/core/bo/annotation/ObjectOperationProvider.java
View file @
dddab7c3
...
...
@@ -7,6 +7,9 @@ import java.lang.annotation.Retention;
import
java.lang.annotation.RetentionPolicy
;
import
java.lang.annotation.Target
;
/**
* Object级Operation声明注解
*/
@Target
({
ElementType
.
TYPE
})
@Retention
(
RetentionPolicy
.
RUNTIME
)
public
@interface
ObjectOperationProvider
{
...
...
src/main/java/logwire/core/bo/annotation/Operation.java
View file @
dddab7c3
...
...
@@ -5,6 +5,9 @@ import java.lang.annotation.Retention;
import
java.lang.annotation.RetentionPolicy
;
import
java.lang.annotation.Target
;
/**
* 可用于生成Operation文档
*/
@Target
({
ElementType
.
METHOD
})
@Retention
(
RetentionPolicy
.
RUNTIME
)
public
@interface
Operation
{
...
...
src/main/java/logwire/core/bo/annotation/OperationArg.java
View file @
dddab7c3
package
logwire
.
core
.
bo
.
annotation
;
import
java.lang.annotation.ElementType
;
import
java.lang.annotation.Retention
;
import
java.lang.annotation.RetentionPolicy
;
import
java.lang.annotation.Target
;
/**
* Operation参数说明
*/
@Target
({
ElementType
.
FIELD
})
@Retention
(
RetentionPolicy
.
RUNTIME
)
public
@interface
OperationArg
{
String
name
()
default
""
;
String
label
()
default
""
;
...
...
src/main/java/logwire/core/bo/annotation/OperationParameter.java
View file @
dddab7c3
package
logwire
.
core
.
bo
.
annotation
;
import
java.lang.annotation.ElementType
;
import
java.lang.annotation.Retention
;
import
java.lang.annotation.RetentionPolicy
;
import
java.lang.annotation.Target
;
/**
* Operation可配置参数声明
*/
@Target
({
ElementType
.
FIELD
})
@Retention
(
RetentionPolicy
.
RUNTIME
)
public
@interface
OperationParameter
{
String
label
()
default
""
;
...
...
src/main/java/logwire/core/bo/annotation/OperationProvider.java
deleted
100644 → 0
View file @
4aa6b652
package
logwire
.
core
.
bo
.
annotation
;
import
java.lang.annotation.*
;
@Target
({
ElementType
.
TYPE
})
@Retention
(
RetentionPolicy
.
RUNTIME
)
@Inherited
public
@interface
OperationProvider
{
}
src/main/java/logwire/core/bo/annotation/SlaveMany.java
View file @
dddab7c3
package
logwire
.
core
.
bo
.
annotation
;
import
java.lang.annotation.ElementType
;
import
java.lang.annotation.Retention
;
import
java.lang.annotation.RetentionPolicy
;
import
java.lang.annotation.Target
;
/**
* 多对多关联属性 @Many @SlaveMany
* 字段类型必须是BizMany<X>, X为BO类型,未指定时可在注解中指定。主多对多定义会创建一张子表(Model),子表名为:BO表名_TXT;包含的字段:
*/
@Target
({
ElementType
.
FIELD
})
@Retention
(
RetentionPolicy
.
RUNTIME
)
public
@interface
SlaveMany
{
String
label
()
default
""
;
...
...
src/main/java/logwire/core/bo/annotation/Text.java
View file @
dddab7c3
package
logwire
.
core
.
bo
.
annotation
;
import
java.lang.annotation.ElementType
;
import
java.lang.annotation.Retention
;
import
java.lang.annotation.RetentionPolicy
;
import
java.lang.annotation.Target
;
/**
* 大文本属性 @Text
* 字段类型必须为BizText。大文本属性会创建一张子表(Model),子表名为:BO表名_属性名,一个BO有多个大字段时,使用同一张表
*/
@Target
({
ElementType
.
FIELD
})
@Retention
(
RetentionPolicy
.
RUNTIME
)
public
@interface
Text
{
String
label
()
default
""
;
}
src/main/java/logwire/core/bo/annotation/TypeOperationProvider.java
View file @
dddab7c3
...
...
@@ -7,6 +7,9 @@ import java.lang.annotation.Retention;
import
java.lang.annotation.RetentionPolicy
;
import
java.lang.annotation.Target
;
/**
* Type级Operation声明注解
*/
@Target
({
ElementType
.
TYPE
})
@Retention
(
RetentionPolicy
.
RUNTIME
)
public
@interface
TypeOperationProvider
{
...
...
src/main/java/logwire/core/bo/object/User.java
View file @
dddab7c3
...
...
@@ -3,7 +3,7 @@ package logwire.core.bo.object;
import
logwire.core.bo.annotation.BizModel
;
import
logwire.core.bo.annotation.Column
;
@BizModel
(
label
=
"用户"
)
@BizModel
(
label
=
"用户"
,
verboseNameCode
=
"user"
)
public
abstract
class
User
extends
ModelObject
{
@Column
()
String
userGid
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment