-
Notifications
You must be signed in to change notification settings - Fork 484
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #51 from mouzt/feature/version2
版本2.0
- Loading branch information
Showing
43 changed files
with
1,894 additions
and
300 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
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
50 changes: 50 additions & 0 deletions
50
bizlog-sdk/src/main/java/com/mzt/logapi/starter/annotation/LogRecord.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,50 @@ | ||
package com.mzt.logapi.starter.annotation; | ||
|
||
import java.lang.annotation.*; | ||
|
||
/** | ||
* @author muzhantong | ||
* create on 2020/4/29 3:22 下午 | ||
*/ | ||
@Target({ElementType.METHOD}) | ||
@Retention(RetentionPolicy.RUNTIME) | ||
@Inherited | ||
@Documented | ||
public @interface LogRecord { | ||
/** | ||
* 方法执行成功后的日志模版 | ||
*/ | ||
String success(); | ||
|
||
/** | ||
* 方法执行失败后的日志模版 | ||
*/ | ||
String fail() default ""; | ||
|
||
/** | ||
* 日志的操作人 | ||
*/ | ||
String operator() default ""; | ||
|
||
/** | ||
* 操作日志的类型,比如:订单类型、商品类型 | ||
*/ | ||
String type(); | ||
|
||
/** | ||
* 日志的子类型,比如订单的C端日志,和订单的B端日志,type都是订单类型,但是子类型不一样 | ||
*/ | ||
String subType() default ""; | ||
|
||
/** | ||
* 日志绑定的业务标识 | ||
*/ | ||
String bizNo(); | ||
|
||
/** | ||
* 日志的额外信息 | ||
*/ | ||
String extra() default ""; | ||
|
||
String condition() default ""; | ||
} |
29 changes: 0 additions & 29 deletions
29
bizlog-sdk/src/main/java/com/mzt/logapi/starter/annotation/LogRecordAnnotation.java
This file was deleted.
Oops, something went wrong.
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
4 changes: 2 additions & 2 deletions
4
.../mzt/logserver/service/IOrderService.java → ...java/com/mzt/logserver/IOrderService.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
...t/logserver/service/UserQueryService.java → ...a/com/mzt/logserver/UserQueryService.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 com.mzt.logserver.service; | ||
package com.mzt.logserver; | ||
|
||
import org.apache.catalina.User; | ||
|
||
|
16 changes: 16 additions & 0 deletions
16
bizlog-server/src/main/java/com/mzt/logserver/configuration/DataSourceAutoConfig.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,16 @@ | ||
package com.mzt.logserver.configuration; | ||
|
||
import com.alibaba.druid.pool.DruidDataSource; | ||
import org.springframework.boot.context.properties.ConfigurationProperties; | ||
import org.springframework.context.annotation.Bean; | ||
import org.springframework.context.annotation.Configuration; | ||
|
||
@Configuration | ||
public class DataSourceAutoConfig { | ||
|
||
@Bean | ||
@ConfigurationProperties(prefix = "spring.datasource") | ||
public DruidDataSource dataSource() { | ||
return new DruidDataSource(); | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
bizlog-server/src/main/java/com/mzt/logserver/function/OrderBeforeParseFunction.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
Oops, something went wrong.