初始话

This commit is contained in:
zk
2026-03-10 18:27:11 +08:00
commit c4efa7e917
75 changed files with 5083 additions and 0 deletions
+50
View File
@@ -0,0 +1,50 @@
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.jiayunet</groupId>
<artifactId>back_end</artifactId>
<version>1.0-SNAPSHOT</version>
</parent>
<artifactId>client-api</artifactId>
<version>1.0-SNAPSHOT</version>
<dependencies>
<dependency>
<groupId>org.jiayunet</groupId>
<artifactId>manager</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
</dependencies>
<build>
<finalName>client-api</finalName>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>17</source>
<target>17</target>
</configuration>
</plugin>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>2.6.13</version>
<configuration>
<fork>true</fork>
</configuration>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
@@ -0,0 +1,21 @@
package org.jiayunet;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.scheduling.annotation.EnableScheduling;
/**
* @author zk
*/
@SpringBootApplication(scanBasePackages = "org.jiayunet")
@MapperScan("org.jiayunet.**.mapper")
@EnableScheduling
@EnableAspectJAutoProxy
public class ClientApplication {
public static void main(String[] args) {
ApplicationContext context = SpringApplication.run(ClientApplication.class, args);
}
}
@@ -0,0 +1,42 @@
package org.jiayunet.server;
import com.wechat.pay.java.service.partnerpayments.nativepay.model.Transaction;
import com.wechat.pay.java.service.refund.model.RefundNotification;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.jiayunet.wxPay.WxPayNotifyMessageAbstract;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
/**
* @author zk
*/
@Service
@Primary
@Slf4j
@AllArgsConstructor
public class WxPayNotifyMessageAbstractImpl implements WxPayNotifyMessageAbstract {
/**
* 支付回调
*
* @param transaction 支付回调消息
*/
@Override
@Transactional(rollbackFor = Exception.class)
public void payMessageHandle(Transaction transaction) {
String outTradeNo = transaction.getOutTradeNo();
}
/**
* 退款回调
*
* @param refundNotification 退款回调消息
*/
@Override
public void refundMessageHandle(RefundNotification refundNotification) {
}
}
@@ -0,0 +1,81 @@
# tomcat 端口配置
server:
port: 8080
# 数据源配置
spring:
datasource:
url: jdbc:mysql://${MYSQL_HOST:8.138.180.255}:${MYSQL_PORT:3306}/${DB_NAME:aiResume}?useUnicode=true&characterEncoding=utf-8&allowMultiQueries=true
username: ${MYSQL_USERNAME:root}
password: ${MYSQL_PASSWORD:qwertyuiopasdfghjkl.zxcvbnm}
driver-class-name: com.mysql.cj.jdbc.Driver
redis:
host: ${REDIS_HOST:8.138.180.255}
password: ${REDIS_PASSWORD:qwertyuiopasdfghjkl.zxcvbnm}
port: ${REDIS_PORT:6379}
timeout: 8s
# 电子邮箱
email:
status: close
account: ${EMAIL_ACCOUNT:sim18502043706@163.com}
authorization: ${EMAIL_AUTHORIZATION:CHBCVPYGFZCSUNCP}
# 微信支付
wx_pay:
# status close:关闭 open:打开
status: close
merchant_id: ${MERCHANT_ID:1705334978}
privateKey_path: ${PRIVATEKEY_PATH:E:\wxPayCertify\1705334978_20250131_cert\apiclient_key.pem}
merchant_serial_number: ${MERCHANT_SERIAL_NUMBER:354F4A0BD7A11CB756ED3BC380A0E41442DE68F7}
api_v3_key: ${API_V3_KEY:zhyahjkiysetindhGseuHadjKITshons}
public_key_path: ${PUBLIC_KEY_PATH:E:\wxPayCertify\pub_key.pem}
public_key_id: ${PUBLIC_KEY_ID:PUB_KEY_ID_0117053349782025013000337100001480}
#回调域名地址
notify_domain: ${API_NOTIFY_DOMAIN:http://8.138.180.255:8080/api/}
app:
# 加密秘钥配置
secret:
token: ${SECRET_TOKEN:Aa123123}
#登陆配置
login:
# 登陆图片验证相关
login_image_verification:
enable: false
images_code_sources: 123456789ABCDEFGHJKLMNPQRSTUVWXYZ
images_w: 111
images_h: 36
# token配置
token:
exceed_time: 129600
#设备在线数量
device_online_quantity: 10
# 短信
sms:
service_provider: aliyun
aliyun:
access_key_id: LTAI5tGRFuJmt6nrxRqZYC7z
access_key_secret: xLC3kNSmCvEtsc9j4O8g3rOs70QjZQ
oss:
service_provider: aliyun
aliyun:
access_key_id: LTAI5tGRFuJmt6nrxRqZYC7z
access_key_secret: xLC3kNSmCvEtsc9j4O8g3rOs70QjZQ
# 防刷配置 20秒 20次
prevent_replay:
if_open: false
interval_time: 20
limit_number: 20
# 微信小程序
wx:
app_id: wx7d75957cbd35e36b
app_secret: d70ef5baa4b9c046f396736d9a42cdc3
#开放接口
ignore:
urls: "/public/**"
@@ -0,0 +1,70 @@
# tomcat config
server:
tomcat:
accept-count: 100
threads:
max: 200
min-spare: 10
servlet:
context-path: /api
# spring config
spring:
application:
name: client
profiles:
active: ${PROFILES_ACTIVE:local}
servlet:
multipart:
max-file-size: 4MB
max-request-size: 20MB
mvc:
throw-exception-if-no-handler-found: true
web:
resources:
add-mappings: false
cache:
redis:
cache-null-values: true
key-prefix: "${spring.application.name}:"
time-to-live: 24h
jackson:
default-property-inclusion: non_null
property-naming-strategy: LOWER_CAMEL_CASE
serialization:
fail-on-empty-beans: false
write-date-keys-as-timestamps: true
write-date-timestamps-as-nanoseconds: false
write-dates-as-timestamps: true
deserialization:
fail-on-unknown-properties: false
fail-on-numbers-for-enums: true
read-date-timestamps-as-nanoseconds: false
# mybatis plus config
mybatis-plus:
mapper-locations: classpath*:mapper/**/*.xml
global-config:
db-config:
id-type: assign_id
insert-strategy: not_null
update-strategy: not_null
logic-delete-field: isDelete
logic-delete-value: '1'
logic-not-delete-value: '0'
configuration:
map-underscore-to-camel-case: true
auto-mapping-unknown-column-behavior: warning
cache-enabled: false
call-setters-on-nulls: true
jdbc-type-for-null: 'null'
#日志
logging:
level:
org:
mybatis: info