Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
b288d54
中科创达海康控制平台接口调用依赖包
wuli-1766 May 14, 2024
fb9ae36
Merge branch 'main' into main
JiazhenBao May 14, 2024
b031186
中科创达海康控制平台接口调用依赖包-添加依赖代码
wuli-1766 May 15, 2024
98ebede
Merge remote-tracking branch 'origin/main' into main
wuli-1766 May 15, 2024
19f98c3
中科创达海康感知平台接口调用依赖包--[存在内网包,已提供依赖库最终产物]
wuli-1766 May 16, 2024
a70e4b9
中科创达-针对测试环境minio图片获取及图片压缩,及生产环境腾讯云对象存储的图片获取及图片压缩最终生成大小为10-200kb的base64
wuli-1766 May 16, 2024
e160ba0
中科创达-针对rabbitmq生产者消费者支持普通及交换机模式
wuli-1766 May 16, 2024
54693e9
中科创达-针对redis工具类
wuli-1766 May 16, 2024
c5be405
中科创达-针对接口幂等性的依赖库
wuli-1766 May 16, 2024
7a828b7
中科创达-针对腾讯云sms短信的依赖库
wuli-1766 May 16, 2024
2ace4c0
中科创达-针对时间处理的依赖库
wuli-1766 May 16, 2024
ba5f979
Create README.md
kongyu1234565 Sep 23, 2024
4300277
Add files via upload
kongyu1234565 Sep 24, 2024
07069f0
Delete ThunderSoft_vue_hk_video directory
kongyu1234565 Sep 24, 2024
7be3817
Add files via upload
kongyu1234565 Sep 24, 2024
69534e0
Add files via upload
kongyu1234565 Sep 24, 2024
468c07a
Add files via upload
kongyu1234565 Sep 24, 2024
1469298
Add files via upload
kongyu1234565 Sep 24, 2024
79cf5db
Add files via upload
kongyu1234565 Sep 24, 2024
312c272
echarts组件
kongyu1234565 Sep 24, 2024
2e01b52
文件预览
kongyu1234565 Sep 24, 2024
ebddc06
各种登录授权等后端依赖
kongyu1234565 Sep 24, 2024
eb9923e
树形选择器带选择列表
kongyu1234565 Sep 24, 2024
f4b10d5
海康视频组件
kongyu1234565 Sep 24, 2024
cdcddac
xml转json字符串
kongyu1234565 Sep 24, 2024
81d893b
Add files via upload
kongyu1234565 Sep 25, 2024
edba9a6
Delete ThunderSoft_file_preview/remak.md
kongyu1234565 Sep 25, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
8 changes: 8 additions & 0 deletions ThunderSoft_code_user/code_user.iml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<module version="4">
<component name="FacetManager">
<facet type="Spring" name="Spring">
<configuration />
</facet>
</component>
</module>
8 changes: 8 additions & 0 deletions ThunderSoft_code_user/door_business_utils.iml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<module version="4">
<component name="FacetManager">
<facet type="Spring" name="Spring">
<configuration />
</facet>
</component>
</module>
Binary file not shown.
125 changes: 125 additions & 0 deletions ThunderSoft_code_user/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
<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 http://maven.apache.org/maven-v4_0_0.xsd">
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.2.9.RELEASE</version><!--与当前制品应用默认版本统一-->
</parent>
<modelVersion>4.0.0</modelVersion>
<groupId>com.code</groupId>
<artifactId>code_user</artifactId>
<version>1.7.3</version>
<name>业务依赖库</name>
<url>http://maven.apache.org</url>
<description>业务依赖库</description>
<properties>
<maven.compiler.source>8</maven.compiler.source>
<maven.compiler.target>8</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<nasl.ide.version>2.22</nasl.ide.version>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
<exclusions>
<exclusion>
<artifactId>jackson-databind</artifactId>
<groupId>com.fasterxml.jackson.core</groupId>
</exclusion>
<exclusion>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-to-slf4j</artifactId>
</exclusion>
<exclusion>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<artifactId>nasl-metadata-collector</artifactId>
<groupId>com.netease.lowcode</groupId>
<version>0.10.0</version>
<optional>true</optional>
<scope>system</scope>
<systemPath>${project.basedir}/lib/nasl-metadata-collector-0.10.0.jar</systemPath>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
<version>4.5.14</version>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpcore</artifactId>
<version>4.4.15</version>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpmime</artifactId>
<version>4.5.14</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>1.7.30</version>
</dependency>
<dependency>
<groupId>dom4j</groupId>
<artifactId>dom4j</artifactId>
<version>1.6.1</version>
</dependency>
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>fastjson</artifactId>
<version>2.0.43</version>
</dependency>
<dependency>
<groupId>cn.hutool</groupId>
<artifactId>hutool-core</artifactId>
<version>5.8.21</version>
</dependency>
<dependency>
<groupId>cn.hutool</groupId>
<artifactId>hutool-json</artifactId>
<version>5.8.21</version>
</dependency>
<dependency>
<groupId>com.auth0</groupId>
<artifactId>java-jwt</artifactId>
<version>3.3.0</version>
</dependency>
<dependency>
<groupId>org.bouncycastle</groupId>
<artifactId>bcpkix-jdk18on</artifactId>
<version>1.72</version>
</dependency>
<dependency>
<groupId>com.belerweb</groupId>
<artifactId>pinyin4j</artifactId>
<version>2.5.1</version>
</dependency>
<dependency>
<groupId>org.openid4java</groupId>
<artifactId>openid4java</artifactId>
<version>0.9.7</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>com.netease.lowcode</groupId>
<artifactId>nasl-metadata-maven-plugin</artifactId>
<version>1.3.0</version>
<executions>
<execution>
<goals>
<goal>archive</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
2 changes: 2 additions & 0 deletions ThunderSoft_code_user/remak.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# 文档说明

Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
package com.code;

import com.netease.lowcode.core.annotation.NaslLogic;

import java.math.BigInteger;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.security.SecureRandom;
import java.util.Base64;

/**
* @author: cfn
* @date: 2024/4/2 14:43
* @description:
*/
public class AppIdAndSecretGenerator {

private static final String ALGORITHM = "SHA-256";

/**
* 生成appid
*
* @return
*/
@NaslLogic
public static String generateAppId() {
SecureRandom random = new SecureRandom();
return new BigInteger(130, random).toString(32);
}

/**
*
* 生成appSecret
* @param name 子系统名称
* @return
*/
@NaslLogic
public static String generateAppSecret(String name) {
try {
// 生成一个随机的 AppSecret
MessageDigest digest = MessageDigest.getInstance(ALGORITHM);
byte[] hash = digest.digest(name.getBytes());
return Base64.getEncoder().encodeToString(hash);
} catch (NoSuchAlgorithmException e) {
e.printStackTrace();
return null;
}
}


}
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
package com.code;

import com.netease.lowcode.core.annotation.NaslLogic;
import net.sourceforge.pinyin4j.PinyinHelper;

/**
* @author: cfn
* @date: 2024/5/9 13:52
* @description: 汉语转拼音
*/
public class ChineseToPinyinService {

/**
* 汉字转拼音
*
* @param chinese 中文
* @return
*/
@NaslLogic
public static String getPinyin(String chinese) {
// 设置不带声调的输出选项
net.sourceforge.pinyin4j.format.HanyuPinyinOutputFormat format = new net.sourceforge.pinyin4j.format.HanyuPinyinOutputFormat();
format.setToneType(net.sourceforge.pinyin4j.format.HanyuPinyinToneType.WITHOUT_TONE);
StringBuilder output = new StringBuilder();
for (char c : chinese.toCharArray()) {
try {
String[] pinyinArray = PinyinHelper.toHanyuPinyinStringArray(c, format);
if (pinyinArray != null && pinyinArray.length > 0) {
output.append(pinyinArray[0]);
} else {
output.append(c);
}
} catch (Exception e) {
output.append(c);
}
}
return output.toString();
}

}
Loading