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
b6697b5f
Commit
b6697b5f
authored
Nov 30, 2020
by
薛涛 Toby Xue
🆒
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sdk
parent
021815ad
Pipeline
#4017
canceled with stages
Changes
43
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
43 changed files
with
137 additions
and
78 deletions
+137
-78
pom.xml
pom.xml
+12
-13
Array.java
src/main/java/logwire/core/bo/annotation/Array.java
+1
-1
AuxField.java
src/main/java/logwire/core/bo/annotation/AuxField.java
+1
-1
BizModel.java
src/main/java/logwire/core/bo/annotation/BizModel.java
+1
-1
BizQueries.java
src/main/java/logwire/core/bo/annotation/BizQueries.java
+1
-1
BizQuery.java
src/main/java/logwire/core/bo/annotation/BizQuery.java
+1
-1
Category.java
src/main/java/logwire/core/bo/annotation/Category.java
+1
-1
Choice.java
src/main/java/logwire/core/bo/annotation/Choice.java
+2
-2
Column.java
src/main/java/logwire/core/bo/annotation/Column.java
+1
-1
Composite.java
src/main/java/logwire/core/bo/annotation/Composite.java
+1
-1
ForeignKey.java
src/main/java/logwire/core/bo/annotation/ForeignKey.java
+1
-1
Item.java
src/main/java/logwire/core/bo/annotation/Item.java
+1
-1
ListOperationProvider.java
...ava/logwire/core/bo/annotation/ListOperationProvider.java
+2
-2
Many.java
src/main/java/logwire/core/bo/annotation/Many.java
+1
-1
ObjectOperationProvider.java
...a/logwire/core/bo/annotation/ObjectOperationProvider.java
+2
-2
Operation.java
src/main/java/logwire/core/bo/annotation/Operation.java
+5
-4
OperationArg.java
src/main/java/logwire/core/bo/annotation/OperationArg.java
+2
-2
OperationParameter.java
...n/java/logwire/core/bo/annotation/OperationParameter.java
+1
-1
SlaveMany.java
src/main/java/logwire/core/bo/annotation/SlaveMany.java
+1
-1
Text.java
src/main/java/logwire/core/bo/annotation/Text.java
+1
-1
TypeOperationProvider.java
...ava/logwire/core/bo/annotation/TypeOperationProvider.java
+2
-2
ListOperationEventEventHandler.java
.../core/bo/eventhandler/ListOperationEventEventHandler.java
+3
-3
ObjectOperationEventEventHandler.java
...ore/bo/eventhandler/ObjectOperationEventEventHandler.java
+3
-3
OperationEventHandler.java
...a/logwire/core/bo/eventhandler/OperationEventHandler.java
+4
-0
TypeOperationEventEventHandler.java
.../core/bo/eventhandler/TypeOperationEventEventHandler.java
+3
-3
BizArray.java
src/main/java/logwire/core/bo/field/BizArray.java
+1
-1
BizComposite.java
src/main/java/logwire/core/bo/field/BizComposite.java
+1
-1
BizExpando.java
src/main/java/logwire/core/bo/field/BizExpando.java
+2
-2
BizItem.java
src/main/java/logwire/core/bo/field/BizItem.java
+3
-3
BizMany.java
src/main/java/logwire/core/bo/field/BizMany.java
+3
-3
BizOne.java
src/main/java/logwire/core/bo/field/BizOne.java
+2
-2
BizText.java
src/main/java/logwire/core/bo/field/BizText.java
+1
-1
IChoice.java
src/main/java/logwire/core/bo/field/IChoice.java
+1
-1
ListOperationHandler.java
...in/java/logwire/core/bo/handler/ListOperationHandler.java
+14
-0
ObjectOperationHandler.java
.../java/logwire/core/bo/handler/ObjectOperationHandler.java
+12
-0
OperationHandler.java
src/main/java/logwire/core/bo/handler/OperationHandler.java
+17
-0
TypeOperationHandler.java
...in/java/logwire/core/bo/handler/TypeOperationHandler.java
+13
-0
BizList.java
src/main/java/logwire/core/bo/list/BizList.java
+2
-2
BizObject.java
src/main/java/logwire/core/bo/object/BizObject.java
+5
-6
ModelObject.java
src/main/java/logwire/core/bo/object/ModelObject.java
+1
-1
User.java
src/main/java/logwire/core/bo/object/User.java
+3
-3
BizChildSelect.java
src/main/java/logwire/core/bo/select/BizChildSelect.java
+1
-1
BizSelect.java
src/main/java/logwire/core/bo/select/BizSelect.java
+1
-1
No files found.
pom.xml
View file @
b6697b5f
...
@@ -6,18 +6,17 @@
...
@@ -6,18 +6,17 @@
<groupId>
logwire
</groupId>
<groupId>
logwire
</groupId>
<artifactId>
logwire-bo-sdk
</artifactId>
<artifactId>
logwire-bo-sdk
</artifactId>
<version>
1.0
</version>
<version>
1.0.0
</version>
<build>
<parent>
<plugins>
<groupId>
logwire
</groupId>
<plugin>
<artifactId>
logwire-parent
</artifactId>
<groupId>
org.apache.maven.plugins
</groupId>
<version>
1.4.0
</version>
<artifactId>
maven-compiler-plugin
</artifactId>
</parent>
<configuration>
<properties>
<source>
8
</source>
<project.build.sourceEncoding>
UTF-8
</project.build.sourceEncoding>
<target>
8
</target>
<java.version>
1.8
</java.version>
</configuration>
<maven.compiler.target>
1.8
</maven.compiler.target>
</plugin>
<maven.compiler.source>
1.8
</maven.compiler.source>
</plugins>
</properties>
</build>
</project>
</project>
\ No newline at end of file
src/main/java/logwire/
web
/bo/annotation/Array.java
→
src/main/java/logwire/
core
/bo/annotation/Array.java
View file @
b6697b5f
package
logwire
.
web
.
bo
.
annotation
;
package
logwire
.
core
.
bo
.
annotation
;
public
@interface
Array
{
public
@interface
Array
{
String
label
()
default
""
;
String
label
()
default
""
;
...
...
src/main/java/logwire/
web
/bo/annotation/AuxField.java
→
src/main/java/logwire/
core
/bo/annotation/AuxField.java
View file @
b6697b5f
package
logwire
.
web
.
bo
.
annotation
;
package
logwire
.
core
.
bo
.
annotation
;
public
@interface
AuxField
{
public
@interface
AuxField
{
String
label
()
default
""
;
String
label
()
default
""
;
...
...
src/main/java/logwire/
web
/bo/annotation/BizModel.java
→
src/main/java/logwire/
core
/bo/annotation/BizModel.java
View file @
b6697b5f
package
logwire
.
web
.
bo
.
annotation
;
package
logwire
.
core
.
bo
.
annotation
;
import
java.lang.annotation.ElementType
;
import
java.lang.annotation.ElementType
;
import
java.lang.annotation.Retention
;
import
java.lang.annotation.Retention
;
...
...
src/main/java/logwire/
web
/bo/annotation/BizQueries.java
→
src/main/java/logwire/
core
/bo/annotation/BizQueries.java
View file @
b6697b5f
package
logwire
.
web
.
bo
.
annotation
;
package
logwire
.
core
.
bo
.
annotation
;
import
java.lang.annotation.ElementType
;
import
java.lang.annotation.ElementType
;
import
java.lang.annotation.Retention
;
import
java.lang.annotation.Retention
;
...
...
src/main/java/logwire/
web
/bo/annotation/BizQuery.java
→
src/main/java/logwire/
core
/bo/annotation/BizQuery.java
View file @
b6697b5f
package
logwire
.
web
.
bo
.
annotation
;
package
logwire
.
core
.
bo
.
annotation
;
import
java.lang.annotation.*
;
import
java.lang.annotation.*
;
...
...
src/main/java/logwire/
web
/bo/annotation/Category.java
→
src/main/java/logwire/
core
/bo/annotation/Category.java
View file @
b6697b5f
package
logwire
.
web
.
bo
.
annotation
;
package
logwire
.
core
.
bo
.
annotation
;
import
java.lang.annotation.ElementType
;
import
java.lang.annotation.ElementType
;
import
java.lang.annotation.Retention
;
import
java.lang.annotation.Retention
;
...
...
src/main/java/logwire/
web
/bo/annotation/Choice.java
→
src/main/java/logwire/
core
/bo/annotation/Choice.java
View file @
b6697b5f
package
logwire
.
web
.
bo
.
annotation
;
package
logwire
.
core
.
bo
.
annotation
;
import
logwire.
web
.bo.field.IChoice
;
import
logwire.
core
.bo.field.IChoice
;
import
java.lang.annotation.ElementType
;
import
java.lang.annotation.ElementType
;
import
java.lang.annotation.Retention
;
import
java.lang.annotation.Retention
;
...
...
src/main/java/logwire/
web
/bo/annotation/Column.java
→
src/main/java/logwire/
core
/bo/annotation/Column.java
View file @
b6697b5f
package
logwire
.
web
.
bo
.
annotation
;
package
logwire
.
core
.
bo
.
annotation
;
import
java.lang.annotation.ElementType
;
import
java.lang.annotation.ElementType
;
import
java.lang.annotation.Retention
;
import
java.lang.annotation.Retention
;
...
...
src/main/java/logwire/
web
/bo/annotation/Composite.java
→
src/main/java/logwire/
core
/bo/annotation/Composite.java
View file @
b6697b5f
package
logwire
.
web
.
bo
.
annotation
;
package
logwire
.
core
.
bo
.
annotation
;
public
@interface
Composite
{
public
@interface
Composite
{
String
label
()
default
""
;
String
label
()
default
""
;
...
...
src/main/java/logwire/
web
/bo/annotation/ForeignKey.java
→
src/main/java/logwire/
core
/bo/annotation/ForeignKey.java
View file @
b6697b5f
package
logwire
.
web
.
bo
.
annotation
;
package
logwire
.
core
.
bo
.
annotation
;
import
java.lang.annotation.ElementType
;
import
java.lang.annotation.ElementType
;
import
java.lang.annotation.Retention
;
import
java.lang.annotation.Retention
;
...
...
src/main/java/logwire/
web
/bo/annotation/Item.java
→
src/main/java/logwire/
core
/bo/annotation/Item.java
View file @
b6697b5f
package
logwire
.
web
.
bo
.
annotation
;
package
logwire
.
core
.
bo
.
annotation
;
public
@interface
Item
{
public
@interface
Item
{
String
label
()
default
""
;
String
label
()
default
""
;
...
...
src/main/java/logwire/
web
/bo/annotation/ListOperationProvider.java
→
src/main/java/logwire/
core
/bo/annotation/ListOperationProvider.java
View file @
b6697b5f
package
logwire
.
web
.
bo
.
annotation
;
package
logwire
.
core
.
bo
.
annotation
;
import
logwire.
web
.bo.object.BizObject
;
import
logwire.
core
.bo.object.BizObject
;
import
java.lang.annotation.ElementType
;
import
java.lang.annotation.ElementType
;
import
java.lang.annotation.Retention
;
import
java.lang.annotation.Retention
;
...
...
src/main/java/logwire/
web
/bo/annotation/Many.java
→
src/main/java/logwire/
core
/bo/annotation/Many.java
View file @
b6697b5f
package
logwire
.
web
.
bo
.
annotation
;
package
logwire
.
core
.
bo
.
annotation
;
public
@interface
Many
{
public
@interface
Many
{
String
label
()
default
""
;
String
label
()
default
""
;
...
...
src/main/java/logwire/
web
/bo/annotation/ObjectOperationProvider.java
→
src/main/java/logwire/
core
/bo/annotation/ObjectOperationProvider.java
View file @
b6697b5f
package
logwire
.
web
.
bo
.
annotation
;
package
logwire
.
core
.
bo
.
annotation
;
import
logwire.
web
.bo.object.BizObject
;
import
logwire.
core
.bo.object.BizObject
;
import
java.lang.annotation.ElementType
;
import
java.lang.annotation.ElementType
;
import
java.lang.annotation.Retention
;
import
java.lang.annotation.Retention
;
...
...
src/main/java/logwire/
web
/bo/annotation/Operation.java
→
src/main/java/logwire/
core
/bo/annotation/Operation.java
View file @
b6697b5f
package
logwire
.
web
.
bo
.
annotation
;
package
logwire
.
core
.
bo
.
annotation
;
import
java.lang.annotation.ElementType
;
import
java.lang.annotation.ElementType
;
import
java.lang.annotation.Retention
;
import
java.lang.annotation.Retention
;
import
java.lang.annotation.RetentionPolicy
;
import
java.lang.annotation.RetentionPolicy
;
import
java.lang.annotation.Target
;
import
java.lang.annotation.Target
;
@Target
({
ElementType
.
TYPE
})
@Target
({
ElementType
.
METHOD
})
@Retention
(
RetentionPolicy
.
RUNTIME
)
@Retention
(
RetentionPolicy
.
RUNTIME
)
public
@interface
Operation
{
public
@interface
Operation
{
String
label
()
default
""
;
String
label
()
default
""
;
OperationArg
[]
args
();
OperationArg
[]
args
()
default
{}
;
/**
/**
* 对结果做线程缓存,当self、输入参数一致时直接返回上次计算结果
* 对结果做线程缓存,当self、输入参数一致时直接返回上次计算结果
*
* @return
* @return
*/
*/
boolean
cached
()
default
false
;
boolean
cached
()
default
false
;
...
...
src/main/java/logwire/
web
/bo/annotation/OperationArg.java
→
src/main/java/logwire/
core
/bo/annotation/OperationArg.java
View file @
b6697b5f
package
logwire
.
web
.
bo
.
annotation
;
package
logwire
.
core
.
bo
.
annotation
;
/**
/**
* Operation参数说明
* Operation参数说明
*/
*/
public
@interface
OperationArg
{
public
@interface
OperationArg
{
String
name
();
String
name
()
default
""
;
String
label
()
default
""
;
String
label
()
default
""
;
}
}
src/main/java/logwire/
web
/bo/annotation/OperationParameter.java
→
src/main/java/logwire/
core
/bo/annotation/OperationParameter.java
View file @
b6697b5f
package
logwire
.
web
.
bo
.
annotation
;
package
logwire
.
core
.
bo
.
annotation
;
public
@interface
OperationParameter
{
public
@interface
OperationParameter
{
String
label
()
default
""
;
String
label
()
default
""
;
...
...
src/main/java/logwire/
web
/bo/annotation/SlaveMany.java
→
src/main/java/logwire/
core
/bo/annotation/SlaveMany.java
View file @
b6697b5f
package
logwire
.
web
.
bo
.
annotation
;
package
logwire
.
core
.
bo
.
annotation
;
public
@interface
SlaveMany
{
public
@interface
SlaveMany
{
String
label
()
default
""
;
String
label
()
default
""
;
...
...
src/main/java/logwire/
web
/bo/annotation/Text.java
→
src/main/java/logwire/
core
/bo/annotation/Text.java
View file @
b6697b5f
package
logwire
.
web
.
bo
.
annotation
;
package
logwire
.
core
.
bo
.
annotation
;
public
@interface
Text
{
public
@interface
Text
{
String
label
()
default
""
;
String
label
()
default
""
;
...
...
src/main/java/logwire/
web
/bo/annotation/TypeOperationProvider.java
→
src/main/java/logwire/
core
/bo/annotation/TypeOperationProvider.java
View file @
b6697b5f
package
logwire
.
web
.
bo
.
annotation
;
package
logwire
.
core
.
bo
.
annotation
;
import
logwire.
web
.bo.object.BizObject
;
import
logwire.
core
.bo.object.BizObject
;
import
java.lang.annotation.ElementType
;
import
java.lang.annotation.ElementType
;
import
java.lang.annotation.Retention
;
import
java.lang.annotation.Retention
;
...
...
src/main/java/logwire/
web/bo/eventhandler/ListOperation
EventHandler.java
→
src/main/java/logwire/
core/bo/eventhandler/ListOperationEvent
EventHandler.java
View file @
b6697b5f
package
logwire
.
web
.
bo
.
eventhandler
;
package
logwire
.
core
.
bo
.
eventhandler
;
import
logwire.
web
.bo.object.BizObject
;
import
logwire.
core
.bo.object.BizObject
;
import
java.util.List
;
import
java.util.List
;
public
interface
ListOperationEvent
Handler
<
X
extends
BizObject
>
{
public
interface
ListOperationEvent
EventHandler
<
X
extends
BizObject
>
extends
OperationEventHandler
{
String
getOperation
();
String
getOperation
();
boolean
isEnabled
();
boolean
isEnabled
();
...
...
src/main/java/logwire/
web/bo/eventhandler/ObjectOperation
EventHandler.java
→
src/main/java/logwire/
core/bo/eventhandler/ObjectOperationEvent
EventHandler.java
View file @
b6697b5f
package
logwire
.
web
.
bo
.
eventhandler
;
package
logwire
.
core
.
bo
.
eventhandler
;
import
logwire.
web
.bo.object.BizObject
;
import
logwire.
core
.bo.object.BizObject
;
public
interface
ObjectOperationEvent
Handler
<
X
extends
BizObject
>
{
public
interface
ObjectOperationEvent
EventHandler
<
X
extends
BizObject
>
extends
OperationEventHandler
{
String
getOperation
();
String
getOperation
();
boolean
isEnabled
();
boolean
isEnabled
();
...
...
src/main/java/logwire/core/bo/eventhandler/OperationEventHandler.java
0 → 100644
View file @
b6697b5f
package
logwire
.
core
.
bo
.
eventhandler
;
public
interface
OperationEventHandler
{
}
src/main/java/logwire/
web/bo/eventhandler/TypeOperation
EventHandler.java
→
src/main/java/logwire/
core/bo/eventhandler/TypeOperationEvent
EventHandler.java
View file @
b6697b5f
package
logwire
.
web
.
bo
.
eventhandler
;
package
logwire
.
core
.
bo
.
eventhandler
;
import
logwire.
web
.bo.object.BizObject
;
import
logwire.
core
.bo.object.BizObject
;
public
interface
TypeOperationEvent
Handler
<
X
extends
BizObject
>
{
public
interface
TypeOperationEvent
EventHandler
<
X
extends
BizObject
>
extends
OperationEventHandler
{
String
getOperation
();
String
getOperation
();
boolean
isEnabled
();
boolean
isEnabled
();
...
...
src/main/java/logwire/
web
/bo/field/BizArray.java
→
src/main/java/logwire/
core
/bo/field/BizArray.java
View file @
b6697b5f
package
logwire
.
web
.
bo
.
field
;
package
logwire
.
core
.
bo
.
field
;
public
interface
BizArray
<
X
>
extends
Iterable
<
X
>
{
public
interface
BizArray
<
X
>
extends
Iterable
<
X
>
{
void
add
(
X
x
);
void
add
(
X
x
);
...
...
src/main/java/logwire/
web
/bo/field/BizComposite.java
→
src/main/java/logwire/
core
/bo/field/BizComposite.java
View file @
b6697b5f
package
logwire
.
web
.
bo
.
field
;
package
logwire
.
core
.
bo
.
field
;
public
interface
BizComposite
{
public
interface
BizComposite
{
}
}
src/main/java/logwire/
web
/bo/field/BizExpando.java
→
src/main/java/logwire/
core
/bo/field/BizExpando.java
View file @
b6697b5f
package
logwire
.
web
.
bo
.
field
;
package
logwire
.
core
.
bo
.
field
;
import
logwire.
web
.bo.object.BizObject
;
import
logwire.
core
.bo.object.BizObject
;
public
interface
BizExpando
<
X
extends
BizObject
>
extends
BizComposite
{
public
interface
BizExpando
<
X
extends
BizObject
>
extends
BizComposite
{
...
...
src/main/java/logwire/
web
/bo/field/BizItem.java
→
src/main/java/logwire/
core
/bo/field/BizItem.java
View file @
b6697b5f
package
logwire
.
web
.
bo
.
field
;
package
logwire
.
core
.
bo
.
field
;
import
logwire.
web
.bo.object.BizObject
;
import
logwire.
core
.bo.object.BizObject
;
import
logwire.
web
.bo.list.BizList
;
import
logwire.
core
.bo.list.BizList
;
import
java.lang.reflect.Field
;
import
java.lang.reflect.Field
;
import
java.util.Map
;
import
java.util.Map
;
...
...
src/main/java/logwire/
web
/bo/field/BizMany.java
→
src/main/java/logwire/
core
/bo/field/BizMany.java
View file @
b6697b5f
package
logwire
.
web
.
bo
.
field
;
package
logwire
.
core
.
bo
.
field
;
import
logwire.
web
.bo.object.BizObject
;
import
logwire.
core
.bo.object.BizObject
;
import
logwire.
web
.bo.list.BizList
;
import
logwire.
core
.bo.list.BizList
;
public
interface
BizMany
<
X
extends
BizObject
>
extends
Iterable
<
Object
>
{
public
interface
BizMany
<
X
extends
BizObject
>
extends
Iterable
<
Object
>
{
void
add
(
Long
id
);
void
add
(
Long
id
);
...
...
src/main/java/logwire/
web
/bo/field/BizOne.java
→
src/main/java/logwire/
core
/bo/field/BizOne.java
View file @
b6697b5f
package
logwire
.
web
.
bo
.
field
;
package
logwire
.
core
.
bo
.
field
;
import
logwire.
web
.bo.object.ModelObject
;
import
logwire.
core
.bo.object.ModelObject
;
public
interface
BizOne
<
X
extends
ModelObject
>
{
public
interface
BizOne
<
X
extends
ModelObject
>
{
Long
getValue
();
Long
getValue
();
...
...
src/main/java/logwire/
web
/bo/field/BizText.java
→
src/main/java/logwire/
core
/bo/field/BizText.java
View file @
b6697b5f
package
logwire
.
web
.
bo
.
field
;
package
logwire
.
core
.
bo
.
field
;
public
interface
BizText
{
public
interface
BizText
{
String
getValue
();
String
getValue
();
...
...
src/main/java/logwire/
web
/bo/field/IChoice.java
→
src/main/java/logwire/
core
/bo/field/IChoice.java
View file @
b6697b5f
package
logwire
.
web
.
bo
.
field
;
package
logwire
.
core
.
bo
.
field
;
/**
/**
* 枚举字典接口
* 枚举字典接口
...
...
src/main/java/logwire/
web
/bo/handler/ListOperationHandler.java
→
src/main/java/logwire/
core
/bo/handler/ListOperationHandler.java
View file @
b6697b5f
package
logwire
.
web
.
bo
.
handler
;
package
logwire
.
core
.
bo
.
handler
;
import
logwire.
web
.bo.object.BizObject
;
import
logwire.
core
.bo.object.BizObject
;
import
java.util.List
;
import
java.util.List
;
public
interface
ListOperationHandler
<
X
extends
BizObject
>
{
public
interface
ListOperationHandler
<
X
extends
BizObject
>
extends
OperationHandler
{
String
getOperation
();
boolean
isEnabled
();
default
String
getQuery
()
{
return
""
;
}
default
int
getOrder
()
{
return
1000
;
}
default
boolean
accept
(
List
<
X
>
xList
,
Object
...
args
)
{
default
boolean
accept
(
List
<
X
>
xList
,
Object
...
args
)
{
return
true
;
return
true
;
...
...
src/main/java/logwire/core/bo/handler/ObjectOperationHandler.java
0 → 100644
View file @
b6697b5f
package
logwire
.
core
.
bo
.
handler
;
import
logwire.core.bo.object.BizObject
;
public
interface
ObjectOperationHandler
<
X
extends
BizObject
>
extends
OperationHandler
{
default
boolean
accept
(
X
x
,
Object
...
args
)
{
return
true
;
}
Object
execute
(
X
x
,
Object
...
args
);
}
src/main/java/logwire/
web/bo/handler/Object
OperationHandler.java
→
src/main/java/logwire/
core/bo/handler/
OperationHandler.java
View file @
b6697b5f
package
logwire
.
web
.
bo
.
handler
;
package
logwire
.
core
.
bo
.
handler
;
import
logwire.web.bo.object.BizObject
;
public
interface
O
bjectOperationHandler
<
X
extends
BizObject
>
{
public
interface
O
perationHandler
{
String
getOperation
();
String
getOperation
();
boolean
isEnabled
();
boolean
isEnabled
();
...
@@ -11,13 +10,8 @@ public interface ObjectOperationHandler<X extends BizObject> {
...
@@ -11,13 +10,8 @@ public interface ObjectOperationHandler<X extends BizObject> {
return
""
;
return
""
;
}
}
default
int
getOrder
()
{
default
Integer
getOrder
()
{
return
1000
;
return
1000
;
}
}
default
boolean
accept
(
X
x
,
Object
...
args
)
{
return
true
;
}
Object
execute
(
X
x
,
Object
...
args
);
}
}
src/main/java/logwire/
web
/bo/handler/TypeOperationHandler.java
→
src/main/java/logwire/
core
/bo/handler/TypeOperationHandler.java
View file @
b6697b5f
package
logwire
.
web
.
bo
.
handler
;
package
logwire
.
core
.
bo
.
handler
;
import
logwire.
web
.bo.object.BizObject
;
import
logwire.
core
.bo.object.BizObject
;
public
interface
TypeOperationHandler
<
X
extends
BizObject
>
{
public
interface
TypeOperationHandler
<
X
extends
BizObject
>
extends
OperationHandler
{
String
getOperation
();
boolean
isEnabled
();
default
int
getOrder
()
{
return
1000
;
}
default
boolean
accept
(
Class
<
X
>
xClass
,
Object
...
args
)
{
default
boolean
accept
(
Class
<
X
>
xClass
,
Object
...
args
)
{
return
true
;
return
true
;
...
...
src/main/java/logwire/
web
/bo/list/BizList.java
→
src/main/java/logwire/
core
/bo/list/BizList.java
View file @
b6697b5f
package
logwire
.
web
.
bo
.
list
;
package
logwire
.
core
.
bo
.
list
;
import
logwire.
web
.bo.object.BizObject
;
import
logwire.
core
.bo.object.BizObject
;
import
java.util.Map
;
import
java.util.Map
;
...
...
src/main/java/logwire/
web
/bo/object/BizObject.java
→
src/main/java/logwire/
core
/bo/object/BizObject.java
View file @
b6697b5f
package
logwire
.
web
.
bo
.
object
;
package
logwire
.
core
.
bo
.
object
;
import
logwire.web.bo.annotation.Column
;
import
logwire.web.bo.annotation.Composite
;
import
logwire.web.bo.field.BizExpando
;
import
logwire.web.bo.field.BizOne
;
import
logwire.core.bo.annotation.Column
;
import
logwire.core.bo.annotation.Composite
;
import
logwire.core.bo.field.BizExpando
;
import
logwire.core.bo.field.BizOne
;
import
java.time.OffsetDateTime
;
import
java.time.OffsetDateTime
;
import
java.util.Map
;
import
java.util.Map
;
...
...
src/main/java/logwire/
web
/bo/object/ModelObject.java
→
src/main/java/logwire/
core
/bo/object/ModelObject.java
View file @
b6697b5f
package
logwire
.
web
.
bo
.
object
;
package
logwire
.
core
.
bo
.
object
;
/**
/**
*考虑兼容平台的XML Model
*考虑兼容平台的XML Model
...
...
src/main/java/logwire/
web
/bo/object/User.java
→
src/main/java/logwire/
core
/bo/object/User.java
View file @
b6697b5f
package
logwire
.
web
.
bo
.
object
;
package
logwire
.
core
.
bo
.
object
;
import
logwire.
web
.bo.annotation.BizModel
;
import
logwire.
core
.bo.annotation.BizModel
;
import
logwire.
web
.bo.annotation.Column
;
import
logwire.
core
.bo.annotation.Column
;
@BizModel
(
label
=
"用户"
)
@BizModel
(
label
=
"用户"
)
public
abstract
class
User
extends
ModelObject
{
public
abstract
class
User
extends
ModelObject
{
...
...
src/main/java/logwire/
web
/bo/select/BizChildSelect.java
→
src/main/java/logwire/
core
/bo/select/BizChildSelect.java
View file @
b6697b5f
package
logwire
.
web
.
bo
.
select
;
package
logwire
.
core
.
bo
.
select
;
public
interface
BizChildSelect
extends
BizSelect
{
public
interface
BizChildSelect
extends
BizSelect
{
}
}
src/main/java/logwire/
web
/bo/select/BizSelect.java
→
src/main/java/logwire/
core
/bo/select/BizSelect.java
View file @
b6697b5f
package
logwire
.
web
.
bo
.
select
;
package
logwire
.
core
.
bo
.
select
;
public
interface
BizSelect
{
public
interface
BizSelect
{
}
}
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