Skip to content

Commit 13d007d

Browse files
committed
feat: update pom.xml
feat: simplify project feat: remove wechat dependence
1 parent a76fbb9 commit 13d007d

Some content is hidden

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

45 files changed

+216
-1348
lines changed

pom.xml

Lines changed: 33 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -5,104 +5,82 @@
55
<parent>
66
<groupId>org.springframework.boot</groupId>
77
<artifactId>spring-boot-starter-parent</artifactId>
8-
<version>3.1.1</version>
9-
<relativePath/> <!-- lookup parent from repository -->
8+
<version>3.3.0</version>
9+
<relativePath/>
1010
</parent>
1111
<groupId>sast.evento</groupId>
1212
<artifactId>SAST-Evento</artifactId>
1313
<version>0.0.1-SNAPSHOT</version>
1414
<name>SAST-Evento-Backend</name>
1515
<description>SAST-Evento-Backend</description>
1616
<properties>
17-
<java.version>17</java.version>
17+
<java.version>21</java.version>
1818
</properties>
1919
<dependencies>
2020

21+
<!-- sast-link-sdk -->
2122
<dependency>
22-
<groupId>org.springframework.boot</groupId>
23-
<artifactId>spring-boot-starter-web</artifactId>
23+
<groupId>fun.feellmoose</groupId>
24+
<artifactId>sast-link-SDK</artifactId>
25+
<version>0.1.2</version>
2426
</dependency>
27+
<!-- jwt -->
2528
<dependency>
26-
<groupId>org.springframework.boot</groupId>
27-
<artifactId>spring-boot-starter-aop</artifactId>
29+
<groupId>com.auth0</groupId>
30+
<artifactId>java-jwt</artifactId>
31+
<version>3.4.0</version>
2832
</dependency>
33+
<!-- mybatis-plus -->
2934
<dependency>
30-
<groupId>org.springframework.boot</groupId>
31-
<artifactId>spring-boot-starter-cache</artifactId>
35+
<groupId>com.baomidou</groupId>
36+
<artifactId>mybatis-plus-boot-starter</artifactId>
37+
<version>3.5.3.1</version>
3238
</dependency>
33-
34-
<!-- sast-link-sdk -->
39+
<!-- mybatis -->
3540
<dependency>
36-
<groupId>fun.feellmoose</groupId>
37-
<artifactId>sast-link-SDK</artifactId>
38-
<version>0.1.2</version>
41+
<groupId>org.mybatis</groupId>
42+
<artifactId>mybatis-spring</artifactId>
43+
<version>3.0.3</version>
3944
</dependency>
40-
41-
<!-- quartz -->
45+
<!-- cos_sdk-->
4246
<dependency>
43-
<groupId>org.springframework.boot</groupId>
44-
<artifactId>spring-boot-starter-quartz</artifactId>
47+
<groupId>com.qcloud</groupId>
48+
<artifactId>cos_api</artifactId>
49+
<version>5.6.213</version>
4550
</dependency>
4651

4752
<dependency>
4853
<groupId>org.springframework.boot</groupId>
49-
<artifactId>spring-boot-starter-test</artifactId>
50-
<scope>test</scope>
54+
<artifactId>spring-boot-starter-web</artifactId>
5155
</dependency>
52-
5356
<dependency>
5457
<groupId>org.springframework.boot</groupId>
55-
<artifactId>spring-boot-starter-data-redis</artifactId>
56-
</dependency>
57-
<dependency>
58-
<groupId>com.baomidou</groupId>
59-
<artifactId>mybatis-plus-boot-starter</artifactId>
60-
<version>3.5.3.1</version>
58+
<artifactId>spring-boot-starter-cache</artifactId>
6159
</dependency>
6260
<dependency>
63-
<groupId>mysql</groupId>
64-
<artifactId>mysql-connector-java</artifactId>
65-
<version>8.0.33</version>
61+
<groupId>org.springframework.boot</groupId>
62+
<artifactId>spring-boot-starter-data-redis</artifactId>
6663
</dependency>
6764

6865
<dependency>
6966
<groupId>org.projectlombok</groupId>
7067
<artifactId>lombok</artifactId>
7168
<optional>true</optional>
7269
</dependency>
73-
74-
<!-- jwt -->
7570
<dependency>
76-
<groupId>com.auth0</groupId>
77-
<artifactId>java-jwt</artifactId>
78-
<version>3.4.0</version>
71+
<groupId>com.mysql</groupId>
72+
<artifactId>mysql-connector-j</artifactId>
73+
<scope>runtime</scope>
7974
</dependency>
8075

81-
82-
<!-- cos_sdk-->
8376
<dependency>
84-
<groupId>com.qcloud</groupId>
85-
<artifactId>cos_api</artifactId>
86-
<version>5.6.155</version>
77+
<groupId>org.springframework.boot</groupId>
78+
<artifactId>spring-boot-starter-test</artifactId>
79+
<scope>test</scope>
8780
</dependency>
8881

89-
9082
</dependencies>
9183

92-
<repositories>
93-
<repository>
94-
<id>alimaven</id>
95-
<url>https://maven.aliyun.com/repository/public</url>
96-
</repository>
97-
</repositories>
98-
99-
<pluginRepositories>
100-
<pluginRepository>
101-
<id>alimaven</id>
102-
<url>https://maven.aliyun.com/repository/public</url>
103-
</pluginRepository>
104-
</pluginRepositories>
105-
10684
<build>
10785
<plugins>
10886
<plugin>

src/main/java/sast/evento/annotation/DefaultActionState.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,13 @@
77
import java.lang.annotation.RetentionPolicy;
88
import java.lang.annotation.Target;
99

10+
/**
11+
* Require Authorization.
12+
* Default action state of an event.
13+
*/
1014
@Target(ElementType.METHOD)
1115
@Retention(RetentionPolicy.RUNTIME)
1216
public @interface DefaultActionState {
13-
/* 添加注释后,默认为管理员操作 */
1417
ActionState value() default ActionState.ADMIN;
1518
String group() default "default";
1619
}

src/main/java/sast/evento/annotation/EventId.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44

55
import java.lang.annotation.*;
66

7+
/**
8+
* Require Authorization.
9+
* Description which param is needed for event check.
10+
*/
711
@Target({ElementType.PARAMETER})
812
@Retention(RetentionPolicy.RUNTIME)
913
@Documented

src/main/java/sast/evento/annotation/OperateLog.java renamed to src/main/java/sast/evento/annotation/Operation.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,11 @@
88
import java.lang.annotation.Target;
99

1010
/**
11-
* @author: NicoAsuka
12-
* @date: 4/29/23
11+
* Describe operation of API.
1312
*/
1413
@Target(ElementType.METHOD)
1514
@Retention(RetentionPolicy.RUNTIME)
16-
public @interface OperateLog {
15+
public @interface Operation {
1716
@AliasFor(attribute = "description")
1817
String value() default "";
1918

src/main/java/sast/evento/aop/OperateLogAspect.java

Lines changed: 0 additions & 97 deletions
This file was deleted.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
package sast.evento.common;
2+
3+
/**
4+
* Constants
5+
*/
6+
public interface Constants {
7+
8+
}

src/main/java/sast/evento/common/constant/Constant.java

Lines changed: 0 additions & 14 deletions
This file was deleted.

src/main/java/sast/evento/common/enums/ErrorEnum.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@
44
import lombok.Getter;
55

66
/**
7-
* @projectName: sast-evento-backend
8-
* @author: feelMoose
9-
* @date: 2023/7/12 22:04
7+
* Error enum hold errMsg to FrontEnd
108
*/
119
@Getter
1210
@AllArgsConstructor

src/main/java/sast/evento/common/enums/EventState.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
package sast.evento.common.enums;
22

3+
import com.baomidou.mybatisplus.annotation.EnumValue;
34
import com.fasterxml.jackson.annotation.JsonValue;
5+
import sast.evento.annotation.EventId;
46
import sast.evento.exception.LocalRunTimeException;
57

68
import java.util.Arrays;
@@ -11,6 +13,8 @@ public enum EventState {
1113
IN_PROGRESS(3, "进行中"),
1214
CANCELED(4, "已取消"),
1315
ENDED(5, "已结束");
16+
17+
@EnumValue
1418
private final Integer state;
1519
private final String description;
1620

src/main/java/sast/evento/common/enums/Platform.java

Lines changed: 0 additions & 7 deletions
This file was deleted.

src/main/java/sast/evento/common/typehandler/EventStateTypeHandler.java

Lines changed: 0 additions & 37 deletions
This file was deleted.

src/main/java/sast/evento/common/typehandler/FeedbackScoreTypeHandler.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,12 @@
99
import java.sql.SQLException;
1010

1111
/**
12-
* @author Aiden
13-
* @date 2023/12/31 14:50
12+
* Type convertor for mybatis-plus
1413
*/
1514
public class FeedbackScoreTypeHandler extends BaseTypeHandler<Double> {
15+
16+
//TODO logic should not be here
17+
1618
@Override
1719
public void setNonNullParameter(PreparedStatement preparedStatement, int i, Double aDouble, JdbcType jdbcType) throws SQLException {
1820
preparedStatement.setDouble(i, aDouble * 10);

0 commit comments

Comments
 (0)