Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit f5fcb21

Browse files
cloud2020工程重构
1 parent 8185b22 commit f5fcb21

File tree

57 files changed

+938
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+938
-0
lines changed

‎.idea/compiler.xml‎

Lines changed: 16 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎.idea/encodings.xml‎

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎.idea/inspectionProfiles/Project_Default.xml‎

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎.idea/misc.xml‎

Lines changed: 14 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎.idea/workspace.xml‎

Lines changed: 232 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<module type="JAVA_MODULE" version="4" />

‎cloud-api-commons/pom.xml‎

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<parent>
6+
<artifactId>cloud2020</artifactId>
7+
<groupId>org.xzq.springcloud</groupId>
8+
<version>1.0-SNAPSHOT</version>
9+
</parent>
10+
<modelVersion>4.0.0</modelVersion>
11+
12+
<artifactId>cloud-api-commons</artifactId>
13+
<dependencies>
14+
<dependency>
15+
<groupId>org.projectlombok</groupId>
16+
<artifactId>lombok</artifactId>
17+
<optional>true</optional>
18+
</dependency>
19+
<dependency>
20+
<groupId>org.springframework.boot</groupId>
21+
<artifactId>spring-boot-devtools</artifactId>
22+
<scope>runtime</scope>
23+
<optional>true</optional>
24+
</dependency>
25+
<dependency>
26+
<groupId>cn.hutool</groupId>
27+
<artifactId>hutool-all</artifactId>
28+
<version>5.1.0</version>
29+
</dependency>
30+
</dependencies>
31+
32+
</project>
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
package com.xzq.springcloud.entities;
2+
3+
import lombok.AllArgsConstructor;
4+
import lombok.Data;
5+
import lombok.NoArgsConstructor;
6+
7+
/**
8+
* @ClassName: CommonResult
9+
* @description: 通用返回结果
10+
* @author: XZQ
11+
* @create: 2020年3月5日 17:56
12+
**/
13+
@Data
14+
@NoArgsConstructor
15+
@AllArgsConstructor
16+
public class CommonResult<T> {
17+
private Integer code;
18+
private String message;
19+
private T data;
20+
21+
public CommonResult(Integer code, String message) {
22+
this(code, message, null);
23+
}
24+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
package com.xzq.springcloud.entities;
2+
3+
import lombok.AllArgsConstructor;
4+
import lombok.Data;
5+
import lombok.NoArgsConstructor;
6+
7+
import java.io.Serializable;
8+
9+
/**
10+
* @ClassName: Payment
11+
* @description: 订单实体类
12+
* @author: XZQ
13+
* @create: 2020年3月5日 17:53
14+
**/
15+
@Data
16+
@AllArgsConstructor
17+
@NoArgsConstructor
18+
public class Payment implements Serializable {
19+
private Long id;
20+
private String serial;
21+
}
3.29 KB
Binary file not shown.

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /