caiaa 2 vuotta sitten
sitoutus
f28ef1e985

+ 32 - 0
.gitignore

@@ -0,0 +1,32 @@
+target/
+!.mvn/wrapper/maven-wrapper.jar
+!**/src/main/**/target/
+!**/src/test/**/target/
+
+### STS ###
+.apt_generated
+.classpath
+.factorypath
+.project
+.settings
+.springBeans
+.sts4-cache
+
+### IntelliJ IDEA ###
+.idea
+*.iws
+*.iml
+*.ipr
+
+### NetBeans ###
+/nbproject/private/
+/nbbuild/
+/dist/
+/nbdist/
+/.nb-gradle/
+build/
+!**/src/main/**/build/
+!**/src/test/**/build/
+
+### VS Code ###
+.vscode/

+ 44 - 0
Requirements.md

@@ -0,0 +1,44 @@
+# Portal Requirements
+
+1. 所有操作注意权限控制
+2. 所有操作记录日志
+
+## 工作台
+
+1. 消息
+   1. 消息规范 对外接口封装 消费 实时推送 超时提醒
+   2. 当前人员待办、已办消息总数
+   3. CRUD
+   4. 不在提醒更新操作
+   5. 右上角的通知消息 超时提醒消息?
+2. 信息
+   1. 推送
+   2. CRUD
+   3. 单位查询接口 dcuc?
+   4. 附件上传 封装通用工具
+   5. 信息交流发布到人?
+   6. 批量签阅?
+3. 留言
+   1. 推送
+   2. CRUD
+4. 应用
+   1. 我的应用查询 批量排序收藏 
+   2. 类型查询
+   3. 应用 CRUD 批量导入(模板下载)
+   4. 热门应用统计 定时、实时?
+   5. 专项工具为应用类型的一种
+5. 业务 和应用类似
+6. 软件下载
+   1. CRUD
+   2. 下载排行 下载日志
+7. 常见问题
+   1. CRUD
+8. 日志
+   1. 查询 详情
+   2. 审计服务标准?
+   3. 切面设计
+9. 其他
+   1. DUCU对接 用户信息 权限管理
+   2. SSO
+   3. 登录日志 当前人数统计
+   4. 个性化设置

+ 62 - 0
pom.xml

@@ -0,0 +1,62 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
+    <modelVersion>4.0.0</modelVersion>
+    <parent>
+        <groupId>org.springframework.boot</groupId>
+        <artifactId>spring-boot-starter-parent</artifactId>
+        <version>2.7.12</version>
+        <relativePath/> <!-- lookup parent from repository -->
+    </parent>
+    <groupId>com.dragon.tj</groupId>
+    <artifactId>portal-service</artifactId>
+    <version>0.0.1-SNAPSHOT</version>
+    <name>Portal Service</name>
+    <description>Portal Service</description>
+    <properties>
+        <java.version>1.8</java.version>
+    </properties>
+    <dependencies>
+        <dependency>
+            <groupId>org.springframework.boot</groupId>
+            <artifactId>spring-boot-starter-web</artifactId>
+        </dependency>
+        <!--<dependency>-->
+        <!--    <groupId>org.springframework.boot</groupId>-->
+        <!--    <artifactId>spring-boot-starter-websocket</artifactId>-->
+        <!--</dependency>-->
+
+        <dependency>
+            <groupId>com.mysql</groupId>
+            <artifactId>mysql-connector-j</artifactId>
+            <scope>runtime</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.springframework.boot</groupId>
+            <artifactId>spring-boot-starter-test</artifactId>
+            <scope>test</scope>
+        </dependency>
+
+        <!--kafka-->
+        <!--<dependency>-->
+        <!--    <groupId>org.springframework.kafka</groupId>-->
+        <!--    <artifactId>spring-kafka</artifactId>-->
+        <!--</dependency>-->
+        <!--<dependency>-->
+        <!--    <groupId>org.springframework.kafka</groupId>-->
+        <!--    <artifactId>spring-kafka-test</artifactId>-->
+        <!--    <scope>test</scope>-->
+        <!--</dependency>-->
+
+    </dependencies>
+
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.springframework.boot</groupId>
+                <artifactId>spring-boot-maven-plugin</artifactId>
+            </plugin>
+        </plugins>
+    </build>
+
+</project>

+ 13 - 0
src/main/java/com/dragon/tj/portal/PortalServiceApplication.java

@@ -0,0 +1,13 @@
+package com.dragon.tj.portal;
+
+import org.springframework.boot.SpringApplication;
+import org.springframework.boot.autoconfigure.SpringBootApplication;
+
+@SpringBootApplication
+public class PortalServiceApplication {
+
+    public static void main(String[] args) {
+        SpringApplication.run(PortalServiceApplication.class, args);
+    }
+
+}

+ 3 - 0
src/main/resources/application-dev.properties

@@ -0,0 +1,3 @@
+spring.datasource.url=jdbc:mysql://portal-tj.com:3306/portal?characterEncoding=utf8
+spring.datasource.username=portal
+spring.datasource.password=portal01!

+ 0 - 0
src/main/resources/application-prod.properties


+ 1 - 0
src/main/resources/application.properties

@@ -0,0 +1 @@
+spring.profiles.active=dev

+ 13 - 0
src/test/java/com/dragon/tj/portal/PortalServiceApplicationTests.java

@@ -0,0 +1,13 @@
+package com.dragon.tj.portal;
+
+import org.junit.jupiter.api.Test;
+import org.springframework.boot.test.context.SpringBootTest;
+
+@SpringBootTest
+class PortalServiceApplicationTests {
+
+    @Test
+    void contextLoads() {
+    }
+
+}