Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in
Toggle navigation
T
tanpu-community
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
探普后端
tanpu-community
Commits
7b7579f4
Commit
7b7579f4
authored
Jul 30, 2021
by
张辰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add biz common
parent
4ccb0559
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
3 deletions
+20
-3
pom.xml
community-service/pom.xml
+5
-0
BizUtils.java
...vice/src/main/java/com/tanpu/community/util/BizUtils.java
+9
-3
pom.xml
pom.xml
+6
-0
No files found.
community-service/pom.xml
View file @
7b7579f4
...
...
@@ -18,6 +18,11 @@
<artifactId>
community-api
</artifactId>
</dependency>
<!-- <dependency>-->
<!-- <groupId>com.tanpu</groupId>-->
<!-- <artifactId>tanpu-biz-common</artifactId>-->
<!-- </dependency>-->
<dependency>
<groupId>
com.baomidou
</groupId>
<artifactId>
mybatis-plus-boot-starter
</artifactId>
...
...
community-service/src/main/java/com/tanpu/community/util/BizUtils.java
View file @
7b7579f4
...
...
@@ -2,6 +2,7 @@ package com.tanpu.community.util;
import
com.tanpu.community.api.beans.qo.ThemeContentQo
;
import
com.tanpu.community.api.beans.qo.ThemeQo
;
import
org.apache.commons.codec.binary.Base64
;
import
com.tanpu.community.api.enums.RelTypeEnum
;
import
java.util.ArrayList
;
...
...
@@ -46,8 +47,13 @@ public class BizUtils {
}
public
static
void
main
(
String
[]
args
)
{
System
.
out
.
println
(
formatCountNumber
(
110400
));
System
.
out
.
println
(
formatCountNumber
(
111100
));
System
.
out
.
println
(
formatCountNumber
(
1000
));
String
sk
=
"59V9ke9txaIFzWxHFKTb1eoOOpmKpJ"
;
String
policy
=
"{\"expiration\":\"2021-07-30T12:00:00.000Z\",\"conditions\":[[\"content-length-range\",0,1024*1024*1024]]}"
;
String
encodePolicy
=
new
String
(
Base64
.
encodeBase64
(
policy
.
getBytes
()));
String
sign
=
com
.
aliyun
.
oss
.
common
.
auth
.
ServiceSignature
.
create
().
computeSignature
(
sk
,
encodePolicy
);
System
.
out
.
println
(
encodePolicy
);
System
.
out
.
println
(
sign
);
}
}
pom.xml
View file @
7b7579f4
...
...
@@ -69,6 +69,12 @@
<version>
${project.version}
</version>
</dependency>
<dependency>
<groupId>
com.tanpu
</groupId>
<artifactId>
tanpu-biz-common
</artifactId>
<version>
1.0.0-SNAPSHOT
</version>
</dependency>
<dependency>
<groupId>
com.tanpu
</groupId>
<artifactId>
common
</artifactId>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment