File tree Expand file tree Collapse file tree 6 files changed +33
-12
lines changed
springboot-data-permission
src/main/java/com/codingapi/springboot/framework Expand file tree Collapse file tree 6 files changed +33
-12
lines changed Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff line change 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
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 >
Original file line number Diff line number Diff line change 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 >
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 >
Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff line change 11package com .codingapi .springboot .framework .dto .response ;
22
3+ import com .codingapi .springboot .framework .serializable .JsonSerializable ;
34import lombok .Getter ;
45import 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
Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments