Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-enterprise-base
Overview
Overview
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
base_platform_enterprise
gic-enterprise-base
Commits
721e0295
Commit
721e0295
authored
Jul 05, 2019
by
陶光胜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init
parent
e9e56ef5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
83 additions
and
61 deletions
+83
-61
pom.xml
gic-enterprise-common/pom.xml
+78
-1
EnterpriseRestResponse.java
...a/com/gic/enterprise/response/EnterpriseRestResponse.java
+5
-0
pom.xml
pom.xml
+0
-60
No files found.
gic-enterprise-common/pom.xml
View file @
721e0295
...
...
@@ -4,7 +4,7 @@
xsi:schemaLocation=
"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
>
<parent>
<groupId>
com.gic
</groupId>
<artifactId>
gic-
enterprise
-base
</artifactId>
<artifactId>
gic-
pom
-base
</artifactId>
<version>
4.0-SNAPSHOT
</version>
</parent>
<modelVersion>
4.0.0
</modelVersion>
...
...
@@ -13,12 +13,88 @@
<artifactId>
gic-enterprise-common
</artifactId>
<version>
4.0-SNAPSHOT
</version>
<properties>
<project.build.sourceEncoding>
UTF-8
</project.build.sourceEncoding>
<maven.compiler.source>
1.8
</maven.compiler.source>
<maven.compiler.target>
1.8
</maven.compiler.target>
<libraryVersion>
4.0-SNAPSHOT
</libraryVersion>
</properties>
<distributionManagement>
<repository>
<!-- 和 Maven setting 保持一致 -->
<id>
nexus-snapshots
</id>
<name>
nexus distribution snapshot repository
</name>
<!-- 这里使用 /content/repositories/snapshots/ -->
<url>
http://182.254.134.223:8081/nexus/content/repositories/snapshots/
</url>
<!--<url>http://stream.banli.mobi:8081/content/repositories/snapshots/</url>-->
</repository>
<snapshotRepository>
<!-- 和 Maven setting 保持一致 -->
<id>
nexus-snapshots
</id>
<name>
nexus distribution snapshot repository
</name>
<!-- 这里使用 /content/repositories/snapshots/ -->
<url>
http://182.254.134.223:8081/nexus/content/repositories/Snapshots-1/
</url>
<!--<url>http://stream.banli.mobi:8081/content/repositories/snapshots/</url>-->
</snapshotRepository>
</distributionManagement>
<dependencies>
<dependency>
<groupId>
com.gic
</groupId>
<artifactId>
gic-base-api
</artifactId>
<version>
${gic-base-api}
</version>
</dependency>
<dependency>
<groupId>
com.gic
</groupId>
<artifactId>
gic-commons
</artifactId>
<version>
${gic-commons}
</version>
</dependency>
<dependency>
<groupId>
com.gic
</groupId>
<artifactId>
gic-enterprise-base-api
</artifactId>
<version>
${gic-enterprise-base-api}
</version>
</dependency>
</dependencies>
<build>
<finalName>
${project.artifactId}
</finalName>
<plugins>
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-compiler-plugin
</artifactId>
<configuration>
<encoding>
${project.build.sourceEncoding}
</encoding>
<source>
${maven.compiler.source}
</source>
<target>
${maven.compiler.target}
</target>
</configuration>
</plugin>
<plugin>
<groupId>
org.codehaus.mojo
</groupId>
<artifactId>
flatten-maven-plugin
</artifactId>
<version>
1.1.0
</version>
<configuration>
<flattenMode>
defaults
</flattenMode>
</configuration>
<executions>
<!-- enable flattening -->
<execution>
<id>
flatten
</id>
<phase>
process-resources
</phase>
<goals>
<goal>
flatten
</goal>
</goals>
</execution>
<!-- ensure proper cleanup -->
<execution>
<id>
flatten.clean
</id>
<phase>
clean
</phase>
<goals>
<goal>
clean
</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
\ No newline at end of file
gic-enterprise-common/src/main/java/com/gic/enterprise/response/EnterpriseRestResponse.java
View file @
721e0295
...
...
@@ -2,9 +2,14 @@ package com.gic.enterprise.response;
import
com.gic.api.base.commons.ServiceResponse
;
import
com.gic.commons.webapi.reponse.RestResponse
;
import
com.gic.enterprise.error.Error
;
public
class
EnterpriseRestResponse
extends
RestResponse
{
public
static
RestResponse
failure
(
ServiceResponse
serviceResponse
){
return
RestResponse
.
failure
(
serviceResponse
.
getCode
(),
serviceResponse
.
getMessage
(),
serviceResponse
.
getResult
());
}
public
static
RestResponse
failure
(
Error
error
){
return
RestResponse
.
failure
(
error
.
getErrorCode
(),
error
.
getErrorMsg
());
}
}
pom.xml
View file @
721e0295
...
...
@@ -20,68 +20,9 @@
<maven.compiler.target>
1.8
</maven.compiler.target>
<libraryVersion>
4.0-SNAPSHOT
</libraryVersion>
</properties>
<distributionManagement>
<repository>
<!-- 和 Maven setting 保持一致 -->
<id>
nexus-snapshots
</id>
<name>
nexus distribution snapshot repository
</name>
<!-- 这里使用 /content/repositories/snapshots/ -->
<url>
http://182.254.134.223:8081/nexus/content/repositories/snapshots/
</url>
<!--<url>http://stream.banli.mobi:8081/content/repositories/snapshots/</url>-->
</repository>
<snapshotRepository>
<!-- 和 Maven setting 保持一致 -->
<id>
nexus-snapshots
</id>
<name>
nexus distribution snapshot repository
</name>
<!-- 这里使用 /content/repositories/snapshots/ -->
<url>
http://182.254.134.223:8081/nexus/content/repositories/Snapshots-1/
</url>
<!--<url>http://stream.banli.mobi:8081/content/repositories/snapshots/</url>-->
</snapshotRepository>
</distributionManagement>
<modules>
<module>
gic-enterprise-base-api
</module>
<module>
gic-enterprise-common
</module>
</modules>
<build>
<finalName>
${project.artifactId}
</finalName>
<plugins>
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-compiler-plugin
</artifactId>
<configuration>
<encoding>
${project.build.sourceEncoding}
</encoding>
<source>
${maven.compiler.source}
</source>
<target>
${maven.compiler.target}
</target>
</configuration>
</plugin>
<plugin>
<groupId>
org.codehaus.mojo
</groupId>
<artifactId>
flatten-maven-plugin
</artifactId>
<version>
1.1.0
</version>
<configuration>
<flattenMode>
defaults
</flattenMode>
</configuration>
<executions>
<!-- enable flattening -->
<execution>
<id>
flatten
</id>
<phase>
process-resources
</phase>
<goals>
<goal>
flatten
</goal>
</goals>
</execution>
<!-- ensure proper cleanup -->
<execution>
<id>
flatten.clean
</id>
<phase>
clean
</phase>
<goals>
<goal>
clean
</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
\ No newline at end of file
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