Commit 7dc8a4e0 authored by ysongq's avatar ysongq

commit

parent 11ee79e3
...@@ -32,35 +32,11 @@ public class manageApplicationTests { ...@@ -32,35 +32,11 @@ public class manageApplicationTests {
@Test @Test
public void aa() { public void aa() {
System.out.print(userService.getTest().toString()); String s = "2020-11-11-2020-11-12";
userService.getTest(); String substring = s.substring(0, 10);
String substring1 = s.substring(11, 21);
System.out.println(substring);
System.out.println(substring1);
} }
@Test
public void getUserRoleByAccount() throws Exception {
DataApiUpReq dataApiUpReq = new DataApiUpReq();
dataApiUpReq.setApiName("华为");
dataApiUpReq.setRequestType("的撒旦");
dataApiUpReq.setApiUrl("http://localhost/dataGoods/uploadApi");
dataApiUpReq.setReturnDataExample("dadasdadafaf");
dataApiUpReq.setApiKey("5");
dataApiUpReq.setEncryMode("MD5");
dataApiUpReq.setTransMode("http");
dataApiUpReq.setApiFunction("fafafaffaf");
dataApiUpReq.setVersionNumber("1.0");
dataApiUpReq.setPriceType("01");
dataApiUpReq.setApiType("1");
dataApiUpReq.setApiDesc("fafsafafasff");
dataApiUpReq.setDataPicture("http://wx4.sinaimg.cn/bmiddle/006GJQvhly1gkx4ezwcr4j328g28g1kx.jpg");
dataApiUpReq.setYearType(BigDecimal.valueOf(1));
List<DataGoodsApiParams> paramsList = new ArrayList<>();
for (DataGoodsApiParams params : paramsList) {
params.setParamsDiff("01");
params.setParamsName("xiaomi");
params.setParamsType("哒哒哒");
params.setCreTime(DateUtils.getToday());
}
dataApiUpReq.setParamsList(paramsList);
dataGoodsService.uploadApi(dataApiUpReq);
}
} }
...@@ -46,6 +46,7 @@ ...@@ -46,6 +46,7 @@
<springfox-swagger2.version>2.9.2</springfox-swagger2.version> <springfox-swagger2.version>2.9.2</springfox-swagger2.version>
<swagger-bootstrap-ui.version>1.9.6</swagger-bootstrap-ui.version> <swagger-bootstrap-ui.version>1.9.6</swagger-bootstrap-ui.version>
<lombok.version>1.18.16</lombok.version> <lombok.version>1.18.16</lombok.version>
<commons-net.version>3.6</commons-net.version>
</properties> </properties>
<dependencyManagement> <dependencyManagement>
...@@ -110,16 +111,16 @@ ...@@ -110,16 +111,16 @@
<!-- ***************************************************************** --> <!-- ***************************************************************** -->
<dependency> <!--<dependency>-->
<groupId>org.apache.flume</groupId> <!--<groupId>org.apache.flume</groupId>-->
<artifactId>flume-ng-core</artifactId> <!--<artifactId>flume-ng-core</artifactId>-->
<version>1.5.0</version> <!--<version>1.5.0</version>-->
</dependency> <!--</dependency>-->
<dependency> <!--<dependency>-->
<groupId>org.apache.flume.flume-ng-clients</groupId> <!--<groupId>org.apache.flume.flume-ng-clients</groupId>-->
<artifactId>flume-ng-log4jappender</artifactId> <!--<artifactId>flume-ng-log4jappender</artifactId>-->
<version>1.5.0</version> <!--<version>1.5.0</version>-->
</dependency> <!--</dependency>-->
<!-- Netty --> <!-- Netty -->
<dependency> <dependency>
...@@ -138,43 +139,43 @@ ...@@ -138,43 +139,43 @@
<version>${netty-version}</version> <version>${netty-version}</version>
</dependency> </dependency>
<dependency> <!--<dependency>-->
<groupId>org.springframework.security</groupId> <!--<groupId>org.springframework.security</groupId>-->
<artifactId>spring-security-core</artifactId> <!--<artifactId>spring-security-core</artifactId>-->
<version>${spring-security-version}</version> <!--<version>${spring-security-version}</version>-->
</dependency> <!--</dependency>-->
<dependency> <!--<dependency>-->
<groupId>org.springframework.security</groupId> <!--<groupId>org.springframework.security</groupId>-->
<artifactId>spring-security-web</artifactId> <!--<artifactId>spring-security-web</artifactId>-->
<version>${spring-security-version}</version> <!--<version>${spring-security-version}</version>-->
</dependency> <!--</dependency>-->
<dependency> <!--<dependency>-->
<groupId>org.springframework.security</groupId> <!--<groupId>org.springframework.security</groupId>-->
<artifactId>spring-security-taglibs</artifactId> <!--<artifactId>spring-security-taglibs</artifactId>-->
<version>${spring-security-version}</version> <!--<version>${spring-security-version}</version>-->
</dependency> <!--</dependency>-->
<dependency> <!--<dependency>-->
<groupId>org.springframework.security</groupId> <!--<groupId>org.springframework.security</groupId>-->
<artifactId>spring-security-acl</artifactId> <!--<artifactId>spring-security-acl</artifactId>-->
<version>${spring-security-version}</version> <!--<version>${spring-security-version}</version>-->
</dependency> <!--</dependency>-->
<dependency> <!--<dependency>-->
<groupId>org.springframework.security</groupId> <!--<groupId>org.springframework.security</groupId>-->
<artifactId>spring-security-crypto</artifactId> <!--<artifactId>spring-security-crypto</artifactId>-->
<version>${spring-security-version}</version> <!--<version>${spring-security-version}</version>-->
</dependency> <!--</dependency>-->
<dependency> <!--<dependency>-->
<groupId>org.springframework.security</groupId> <!--<groupId>org.springframework.security</groupId>-->
<artifactId>spring-security-config</artifactId> <!--<artifactId>spring-security-config</artifactId>-->
<version>${spring-security-version}</version> <!--<version>${spring-security-version}</version>-->
</dependency> <!--</dependency>-->
<dependency> <!--<dependency>-->
<groupId>org.springframework.security.oauth</groupId> <!--<groupId>org.springframework.security.oauth</groupId>-->
<artifactId>spring-security-oauth2</artifactId> <!--<artifactId>spring-security-oauth2</artifactId>-->
<version>${spring.security.oauth.version}</version> <!--<version>${spring.security.oauth.version}</version>-->
</dependency> <!--</dependency>-->
<!-- 统一配置 --> <!-- 统一配置 -->
<dependency> <dependency>
<groupId>com.baidu.disconf</groupId> <groupId>com.baidu.disconf</groupId>
...@@ -210,6 +211,11 @@ ...@@ -210,6 +211,11 @@
<artifactId>lombok</artifactId> <artifactId>lombok</artifactId>
<version>${lombok.version}</version> <version>${lombok.version}</version>
</dependency> </dependency>
<dependency>
<groupId>commons-net</groupId>
<artifactId>commons-net</artifactId>
<version>${commons-net.version}</version>
</dependency>
</dependencies> </dependencies>
</dependencyManagement> </dependencyManagement>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment