Initial commit

Made-with: Cursor
This commit is contained in:
lyf
2026-03-12 17:51:30 +08:00
commit 79102a18fb
1507 changed files with 480854 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
/mvnw text eol=lf
*.cmd text eol=crlf

35
astral-service/astral-web/.gitignore vendored Normal file
View File

@@ -0,0 +1,35 @@
HELP.md
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/
/src/main/resources/application-local-dev.yml

View File

@@ -0,0 +1,41 @@
<?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>com.astral</groupId>
<artifactId>astral-parent</artifactId>
<version>1.0.0-SNAPSHOT</version>
</parent>
<artifactId>astral-web</artifactId>
<packaging>jar</packaging>
<dependencies>
<dependency>
<groupId>com.astral</groupId>
<artifactId>astral-business</artifactId>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<mainClass>com.astral.web.AstralWebApplication</mainClass>
<executable>true</executable>
<!-- <classifier>exec</classifier>-->
</configuration>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
<finalName>${project.artifactId}</finalName>
</build>
</project>

View File

@@ -0,0 +1,15 @@
package com.astral.web;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication(scanBasePackages = {"com.astral"})
@MapperScan(basePackages = {"com.astral.**.mapper"})
public class AstralWebApplication {
public static void main(String[] args) {
SpringApplication.run(AstralWebApplication.class, args);
}
}

View File

@@ -0,0 +1,73 @@
server:
port: 8080
servlet:
context-path: /api
spring:
servlet:
multipart:
max-file-size: 100MB
max-request-size: 100MB
datasource:
url: jdbc:mysql://192.168.1.93:3306/astral?charset=utf8mb4&useSSL=false&serverTimezone=Asia/Shanghai
username: root
password: mysql_fsAPNB
driver-class-name: com.mysql.cj.jdbc.Driver
hikari:
minimum-idle: 5
maximum-pool-size: 15
idle-timeout: 30000
max-lifetime: 1800000
connection-timeout: 30000
connection-test-query: SELECT 1
redis:
database: 0
host: 192.168.1.93
port: 6379
password: ''
lettuce:
pool:
max-active: 8
max-idle: 8
max-wait: -1ms
min-idle: 0
mybatis-plus:
mapper-locations: classpath*:mapper/**/*.xml
configuration:
map-underscore-to-camel-case: true
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
global-config:
db-config:
id-type: ASSIGN_ID
logic-delete-field: is_deleted
logic-delete-value: 1
logic-not-delete-value: 0
type-handlers-package: com.baomidou.mybatisplus.extension.handlers
logging:
level:
root: info
org:
springframework:
security: error
astral:
# 文件上传方式:本地-local 又拍云-upyun
uploadType: "local"
# 资源目录
# 本地资源目录
uploadDir: "/opt/Big-Screen/Astral3D-Projects/astral-service/static"
# 又拍云资源目录
# uploadDir: "/static"
revit:
address: "192.168.1.93"
port: "8081"
path: ""
timeout: 28800
upyun:
bucket: ??
operator: ??
password: ??
# 又拍云加速域名
domain: ??
dev:
currentAbPath: "/opt/Big-Screen/Astral3D-Projects/astral-service"
cadDwgConverterAbPath: "/opt/Big-Screen/Astral3D-Projects/astral-service/static/lib/libredwg"
temporaryFolder: "/opt/Big-Screen/Astral3D-Projects/astral-service/static/tmp"

View File

@@ -0,0 +1,5 @@
spring:
application:
name: astral-service
profiles:
active: dev

View File

@@ -0,0 +1,56 @@
types {
# 基本文本类型
text/html html htm shtml;
text/css css;
text/xml xml rss;
text/plain txt md;
text/csv csv;
# 图片类型
image/gif gif;
image/jpeg jpeg jpg;
image/png png;
image/svg+xml svg svgz;
image/webp webp;
image/avif avif;
image/x-icon ico;
image/vnd.microsoft.icon cur;
# 脚本类型
application/javascript js;
application/json json;
application/x-javascript js;
# 字体类型
font/woff woff;
font/woff2 woff2;
application/font-ttf ttf;
application/vnd.ms-fontobject eot;
# 文档类型
application/pdf pdf;
application/msword doc;
application/vnd.openxmlformats-officedocument.wordprocessingml.document docx;
application/vnd.ms-excel xls;
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet xlsx;
application/vnd.ms-powerpoint ppt;
application/vnd.openxmlformats-officedocument.presentationml.presentation pptx;
# 压缩包类型
application/zip zip;
application/x-rar-compressed rar;
application/x-7z-compressed 7z;
application/gzip gz;
application/x-tar tar;
# 音视频类型
audio/mpeg mp3;
audio/wav wav;
video/mp4 mp4;
video/mpeg mpeg mpg;
video/quicktime mov;
video/x-msvideo avi;
# 二进制流(兜底类型)
application/octet-stream bin exe dll dmg iso;
}