Skip to content

Commit 027d200

Browse files
committed
upload 1.0.1 version
* add json serializable * fix Response success filed
1 parent bb605ed commit 027d200

File tree

6 files changed

+33
-12
lines changed

6 files changed

+33
-12
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
</parent>
1111
<groupId>com.codingapi.springboot</groupId>
1212
<artifactId>springboot-framework-parent</artifactId>
13-
<version>1.0.0</version>
13+
<version>1.0.1</version>
1414

1515
<url>https://github.com/codingapi/springboot-framewrok</url>
1616
<name>springboot-framework-parent</name>

springboot-data-permission/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<artifactId>springboot-framework-parent</artifactId>
77
<groupId>com.codingapi.springboot</groupId>
8-
<version>1.0.0</version>
8+
<version>1.0.1</version>
99
</parent>
1010
<modelVersion>4.0.0</modelVersion>
1111

@@ -32,7 +32,7 @@
3232
<dependency>
3333
<groupId>com.codingapi.springboot</groupId>
3434
<artifactId>springboot-framework</artifactId>
35-
<version>1.0.0</version>
35+
<version>1.0.1</version>
3636
</dependency>
3737

3838
<dependency>

springboot-example/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
<parent>
55
<groupId>com.codingapi.springboot</groupId>
66
<artifactId>springboot-framework-parent</artifactId>
7-
<version>1.0.0</version>
7+
<version>1.0.1</version>
88
</parent>
99
<artifactId>springboot-example</artifactId>
10-
<version>1.0.0</version>
10+
<version>1.0.1</version>
1111

1212
<name>springboot-example</name>
1313
<description>springboot-example project for Spring Boot</description>
@@ -29,7 +29,7 @@
2929
<dependency>
3030
<groupId>com.codingapi.springboot</groupId>
3131
<artifactId>springboot-framework</artifactId>
32-
<version>1.0.0</version>
32+
<version>1.0.1</version>
3333
</dependency>
3434

3535
<dependency>

springboot-framework/pom.xml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,30 @@
44
<parent>
55
<groupId>com.codingapi.springboot</groupId>
66
<artifactId>springboot-framework-parent</artifactId>
7-
<version>1.0.0</version>
7+
<version>1.0.1</version>
88
</parent>
99
<artifactId>springboot-framework</artifactId>
10-
<version>1.0.0</version>
10+
<version>1.0.1</version>
1111

1212
<name>springboot-framework</name>
1313
<description>springboot-framework project for Spring Boot</description>
1414
<properties>
1515
<java.version>1.8</java.version>
16+
<fastjson.version>2.0.9</fastjson.version>
1617
</properties>
1718

1819
<dependencies>
1920
<dependency>
2021
<groupId>org.springframework.data</groupId>
2122
<artifactId>spring-data-commons</artifactId>
2223
</dependency>
24+
25+
<dependency>
26+
<groupId>com.alibaba</groupId>
27+
<artifactId>fastjson</artifactId>
28+
<version>${fastjson.version}</version>
29+
</dependency>
30+
2331
</dependencies>
2432

2533
</project>

springboot-framework/src/main/java/com/codingapi/springboot/framework/dto/response/Response.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,19 @@
11
package com.codingapi.springboot.framework.dto.response;
22

3+
import com.codingapi.springboot.framework.serializable.JsonSerializable;
34
import lombok.Getter;
45
import lombok.Setter;
56

6-
import java.io.Serializable;
7-
87
/**
98
* @author lorne
109
* @date 2020/12/17
1110
* @description
1211
*/
1312
@Setter
1413
@Getter
15-
public class Response implements Serializable {
14+
public class Response implements JsonSerializable {
1615

17-
private boolean isSuccess;
16+
private boolean success;
1817

1918
private String errCode;
2019

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
package com.codingapi.springboot.framework.serializable;
2+
3+
4+
import com.alibaba.fastjson.JSONObject;
5+
6+
import java.io.Serializable;
7+
8+
public interface JsonSerializable extends Serializable {
9+
10+
default String toJson() {
11+
return JSONObject.toJSONString(this);
12+
}
13+
14+
}

0 commit comments

Comments
 (0)