forked from bizhibo/bookdemo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 0ecf0b5
Showing
299 changed files
with
8,878 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<projectDescription> | ||
<name>RemoteSystemsTempFiles</name> | ||
<comment></comment> | ||
<projects> | ||
</projects> | ||
<buildSpec> | ||
</buildSpec> | ||
<natures> | ||
<nature>org.eclipse.rse.ui.remoteSystemsTempNature</nature> | ||
</natures> | ||
</projectDescription> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<classpath> | ||
<classpathentry kind="src" output="target/classes" path="src/main/java"> | ||
<attributes> | ||
<attribute name="optional" value="true"/> | ||
<attribute name="maven.pomderived" value="true"/> | ||
</attributes> | ||
</classpathentry> | ||
<classpathentry kind="src" path="src/main/resources"/> | ||
<classpathentry kind="src" output="target/test-classes" path="src/test/java"> | ||
<attributes> | ||
<attribute name="optional" value="true"/> | ||
<attribute name="maven.pomderived" value="true"/> | ||
</attributes> | ||
</classpathentry> | ||
<classpathentry exported="true" kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jdk1.7.0_79"/> | ||
<classpathentry exported="true" kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER"> | ||
<attributes> | ||
<attribute name="maven.pomderived" value="true"/> | ||
</attributes> | ||
</classpathentry> | ||
<classpathentry kind="output" path="target/classes"/> | ||
</classpath> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<projectDescription> | ||
<name>book-demo-ad</name> | ||
<comment></comment> | ||
<projects> | ||
</projects> | ||
<buildSpec> | ||
<buildCommand> | ||
<name>org.eclipse.jdt.core.javabuilder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
<buildCommand> | ||
<name>org.eclipse.m2e.core.maven2Builder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
</buildSpec> | ||
<natures> | ||
<nature>org.eclipse.jdt.core.javanature</nature> | ||
<nature>org.eclipse.m2e.core.maven2Nature</nature> | ||
</natures> | ||
</projectDescription> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
eclipse.preferences.version=1 | ||
encoding//src/main/java=UTF-8 | ||
encoding//src/main/resources/redis-config.properties=UTF-8 | ||
encoding//src/test/java=UTF-8 | ||
encoding/<project>=UTF-8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
eclipse.preferences.version=1 | ||
org.eclipse.jdt.core.compiler.annotation.inheritNullAnnotations=disabled | ||
org.eclipse.jdt.core.compiler.annotation.missingNonNullByDefaultAnnotation=ignore | ||
org.eclipse.jdt.core.compiler.annotation.nonnull=org.eclipse.jdt.annotation.NonNull | ||
org.eclipse.jdt.core.compiler.annotation.nonnullbydefault=org.eclipse.jdt.annotation.NonNullByDefault | ||
org.eclipse.jdt.core.compiler.annotation.nullable=org.eclipse.jdt.annotation.Nullable | ||
org.eclipse.jdt.core.compiler.annotation.nullanalysis=disabled | ||
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled | ||
org.eclipse.jdt.core.compiler.codegen.methodParameters=do not generate | ||
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7 | ||
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve | ||
org.eclipse.jdt.core.compiler.compliance=1.7 | ||
org.eclipse.jdt.core.compiler.debug.lineNumber=generate | ||
org.eclipse.jdt.core.compiler.debug.localVariable=generate | ||
org.eclipse.jdt.core.compiler.debug.sourceFile=generate | ||
org.eclipse.jdt.core.compiler.problem.annotationSuperInterface=warning | ||
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error | ||
org.eclipse.jdt.core.compiler.problem.autoboxing=ignore | ||
org.eclipse.jdt.core.compiler.problem.comparingIdentical=warning | ||
org.eclipse.jdt.core.compiler.problem.deadCode=warning | ||
org.eclipse.jdt.core.compiler.problem.deprecation=warning | ||
org.eclipse.jdt.core.compiler.problem.deprecationInDeprecatedCode=disabled | ||
org.eclipse.jdt.core.compiler.problem.deprecationWhenOverridingDeprecatedMethod=disabled | ||
org.eclipse.jdt.core.compiler.problem.discouragedReference=warning | ||
org.eclipse.jdt.core.compiler.problem.emptyStatement=ignore | ||
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error | ||
org.eclipse.jdt.core.compiler.problem.explicitlyClosedAutoCloseable=ignore | ||
org.eclipse.jdt.core.compiler.problem.fallthroughCase=ignore | ||
org.eclipse.jdt.core.compiler.problem.fatalOptionalError=disabled | ||
org.eclipse.jdt.core.compiler.problem.fieldHiding=ignore | ||
org.eclipse.jdt.core.compiler.problem.finalParameterBound=warning | ||
org.eclipse.jdt.core.compiler.problem.finallyBlockNotCompletingNormally=warning | ||
org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning | ||
org.eclipse.jdt.core.compiler.problem.hiddenCatchBlock=warning | ||
org.eclipse.jdt.core.compiler.problem.includeNullInfoFromAsserts=disabled | ||
org.eclipse.jdt.core.compiler.problem.incompatibleNonInheritedInterfaceMethod=warning | ||
org.eclipse.jdt.core.compiler.problem.incompleteEnumSwitch=warning | ||
org.eclipse.jdt.core.compiler.problem.indirectStaticAccess=ignore | ||
org.eclipse.jdt.core.compiler.problem.localVariableHiding=ignore | ||
org.eclipse.jdt.core.compiler.problem.methodWithConstructorName=warning | ||
org.eclipse.jdt.core.compiler.problem.missingDefaultCase=ignore | ||
org.eclipse.jdt.core.compiler.problem.missingDeprecatedAnnotation=ignore | ||
org.eclipse.jdt.core.compiler.problem.missingEnumCaseDespiteDefault=disabled | ||
org.eclipse.jdt.core.compiler.problem.missingHashCodeMethod=ignore | ||
org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotation=ignore | ||
org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotationForInterfaceMethodImplementation=enabled | ||
org.eclipse.jdt.core.compiler.problem.missingSerialVersion=warning | ||
org.eclipse.jdt.core.compiler.problem.missingSynchronizedOnInheritedMethod=ignore | ||
org.eclipse.jdt.core.compiler.problem.noEffectAssignment=warning | ||
org.eclipse.jdt.core.compiler.problem.noImplicitStringConversion=warning | ||
org.eclipse.jdt.core.compiler.problem.nonExternalizedStringLiteral=ignore | ||
org.eclipse.jdt.core.compiler.problem.nonnullParameterAnnotationDropped=warning | ||
org.eclipse.jdt.core.compiler.problem.nullAnnotationInferenceConflict=error | ||
org.eclipse.jdt.core.compiler.problem.nullReference=warning | ||
org.eclipse.jdt.core.compiler.problem.nullSpecViolation=error | ||
org.eclipse.jdt.core.compiler.problem.nullUncheckedConversion=warning | ||
org.eclipse.jdt.core.compiler.problem.overridingPackageDefaultMethod=warning | ||
org.eclipse.jdt.core.compiler.problem.parameterAssignment=ignore | ||
org.eclipse.jdt.core.compiler.problem.possibleAccidentalBooleanAssignment=ignore | ||
org.eclipse.jdt.core.compiler.problem.potentialNullReference=ignore | ||
org.eclipse.jdt.core.compiler.problem.potentiallyUnclosedCloseable=ignore | ||
org.eclipse.jdt.core.compiler.problem.rawTypeReference=warning | ||
org.eclipse.jdt.core.compiler.problem.redundantNullAnnotation=warning | ||
org.eclipse.jdt.core.compiler.problem.redundantNullCheck=ignore | ||
org.eclipse.jdt.core.compiler.problem.redundantSpecificationOfTypeArguments=ignore | ||
org.eclipse.jdt.core.compiler.problem.redundantSuperinterface=ignore | ||
org.eclipse.jdt.core.compiler.problem.reportMethodCanBePotentiallyStatic=ignore | ||
org.eclipse.jdt.core.compiler.problem.reportMethodCanBeStatic=ignore | ||
org.eclipse.jdt.core.compiler.problem.specialParameterHidingField=disabled | ||
org.eclipse.jdt.core.compiler.problem.staticAccessReceiver=warning | ||
org.eclipse.jdt.core.compiler.problem.suppressOptionalErrors=disabled | ||
org.eclipse.jdt.core.compiler.problem.suppressWarnings=enabled | ||
org.eclipse.jdt.core.compiler.problem.syntacticNullAnalysisForFields=disabled | ||
org.eclipse.jdt.core.compiler.problem.syntheticAccessEmulation=ignore | ||
org.eclipse.jdt.core.compiler.problem.typeParameterHiding=warning | ||
org.eclipse.jdt.core.compiler.problem.unavoidableGenericTypeProblems=enabled | ||
org.eclipse.jdt.core.compiler.problem.uncheckedTypeOperation=warning | ||
org.eclipse.jdt.core.compiler.problem.unclosedCloseable=warning | ||
org.eclipse.jdt.core.compiler.problem.undocumentedEmptyBlock=ignore | ||
org.eclipse.jdt.core.compiler.problem.unhandledWarningToken=warning | ||
org.eclipse.jdt.core.compiler.problem.unnecessaryElse=ignore | ||
org.eclipse.jdt.core.compiler.problem.unnecessaryTypeCheck=ignore | ||
org.eclipse.jdt.core.compiler.problem.unqualifiedFieldAccess=ignore | ||
org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownException=ignore | ||
org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionExemptExceptionAndThrowable=enabled | ||
org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionIncludeDocCommentReference=enabled | ||
org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionWhenOverriding=disabled | ||
org.eclipse.jdt.core.compiler.problem.unusedImport=warning | ||
org.eclipse.jdt.core.compiler.problem.unusedLabel=warning | ||
org.eclipse.jdt.core.compiler.problem.unusedLocal=warning | ||
org.eclipse.jdt.core.compiler.problem.unusedObjectAllocation=ignore | ||
org.eclipse.jdt.core.compiler.problem.unusedParameter=ignore | ||
org.eclipse.jdt.core.compiler.problem.unusedParameterIncludeDocCommentReference=enabled | ||
org.eclipse.jdt.core.compiler.problem.unusedParameterWhenImplementingAbstract=disabled | ||
org.eclipse.jdt.core.compiler.problem.unusedParameterWhenOverridingConcrete=disabled | ||
org.eclipse.jdt.core.compiler.problem.unusedPrivateMember=warning | ||
org.eclipse.jdt.core.compiler.problem.unusedTypeParameter=ignore | ||
org.eclipse.jdt.core.compiler.problem.unusedWarningToken=warning | ||
org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=warning | ||
org.eclipse.jdt.core.compiler.source=1.7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
activeProfiles= | ||
eclipse.preferences.version=1 | ||
resolveWorkspaceProjects=true | ||
version=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<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/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<groupId>book.demo.ad</groupId> | ||
<artifactId>book-demo-ad</artifactId> | ||
<version>0.0.1-SNAPSHOT</version> | ||
<packaging>jar</packaging> | ||
|
||
<name>book-demo-ad</name> | ||
|
||
<dependencies> | ||
<dependency> | ||
<groupId>junit</groupId> | ||
<artifactId>junit</artifactId> | ||
<version>4.9</version> | ||
<scope>test</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>redis.clients</groupId> | ||
<artifactId>jedis</artifactId> | ||
<version>2.7.3</version> | ||
<scope>compile</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.codehaus.jackson</groupId> | ||
<artifactId>jackson-mapper-asl</artifactId> | ||
<version>1.9.11</version> | ||
<scope>compile</scope> | ||
</dependency> | ||
</dependencies> | ||
</project> |
65 changes: 65 additions & 0 deletions
65
book-demo-ad/src/main/java/com/book/demo/ad/model/AdContent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
package com.book.demo.ad.model; | ||
|
||
import java.io.Serializable; | ||
|
||
/** | ||
* @描述 : 广告内容 | ||
* @创建者:liushengsong | ||
* @创建时间: 2017年2月18日下午3:06:40 | ||
* | ||
*/ | ||
public class AdContent implements Serializable { | ||
|
||
private static final long serialVersionUID = 1L; | ||
/** 广告内容ID **/ | ||
private int id; | ||
/** 广告内容名称 **/ | ||
private String name; | ||
/** 广告链接URL **/ | ||
private String url; | ||
/** 广告图片URL **/ | ||
private String imageUrl; | ||
/** 广告序号 **/ | ||
private int sequence; | ||
|
||
public int getId() { | ||
return id; | ||
} | ||
|
||
public void setId(int id) { | ||
this.id = id; | ||
} | ||
|
||
public String getName() { | ||
return name; | ||
} | ||
|
||
public void setName(String name) { | ||
this.name = name; | ||
} | ||
|
||
public String getUrl() { | ||
return url; | ||
} | ||
|
||
public void setUrl(String url) { | ||
this.url = url; | ||
} | ||
|
||
public String getImageUrl() { | ||
return imageUrl; | ||
} | ||
|
||
public void setImageUrl(String imageUrl) { | ||
this.imageUrl = imageUrl; | ||
} | ||
|
||
public int getSequence() { | ||
return sequence; | ||
} | ||
|
||
public void setSequence(int sequence) { | ||
this.sequence = sequence; | ||
} | ||
|
||
} |
56 changes: 56 additions & 0 deletions
56
book-demo-ad/src/main/java/com/book/demo/ad/model/Advertisement.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
package com.book.demo.ad.model; | ||
|
||
import java.io.Serializable; | ||
import java.util.List; | ||
|
||
/** | ||
* @描述 : 广告位 | ||
* @创建者:liushengsong | ||
* @创建时间: 2017年2月18日下午3:06:24 | ||
* | ||
*/ | ||
public class Advertisement implements Serializable { | ||
|
||
private static final long serialVersionUID = 1L; | ||
/** 广告位ID **/ | ||
private int id; | ||
/** 广告位代码 **/ | ||
private String positionCode; | ||
/** 广告内容集合 **/ | ||
private int tid; | ||
/** 广告模版ID **/ | ||
private List<AdContent> adContents; | ||
|
||
public int getId() { | ||
return id; | ||
} | ||
|
||
public void setId(int id) { | ||
this.id = id; | ||
} | ||
|
||
public String getPositionCode() { | ||
return positionCode; | ||
} | ||
|
||
public void setPositionCode(String positionCode) { | ||
this.positionCode = positionCode; | ||
} | ||
|
||
public int getTid() { | ||
return tid; | ||
} | ||
|
||
public void setTid(int tid) { | ||
this.tid = tid; | ||
} | ||
|
||
public List<AdContent> getAdContents() { | ||
return adContents; | ||
} | ||
|
||
public void setAdContents(List<AdContent> adContents) { | ||
this.adContents = adContents; | ||
} | ||
|
||
} |
45 changes: 45 additions & 0 deletions
45
book-demo-ad/src/main/java/com/book/demo/ad/model/Template.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
package com.book.demo.ad.model; | ||
|
||
import java.io.Serializable; | ||
|
||
/** | ||
* @描述 : 广告模版 | ||
* @创建者:liushengsong | ||
* @创建时间: 2017年2月18日下午3:06:08 | ||
* | ||
*/ | ||
public class Template implements Serializable{ | ||
|
||
private static final long serialVersionUID = 1L; | ||
/** 广告模版ID **/ | ||
private int id; | ||
/** 广告模版名称 **/ | ||
private String name; | ||
/** 广告模版脚本 **/ | ||
private String script; | ||
|
||
public int getId() { | ||
return id; | ||
} | ||
|
||
public void setId(int id) { | ||
this.id = id; | ||
} | ||
|
||
public String getName() { | ||
return name; | ||
} | ||
|
||
public void setName(String name) { | ||
this.name = name; | ||
} | ||
|
||
public String getScript() { | ||
return script; | ||
} | ||
|
||
public void setScript(String script) { | ||
this.script = script; | ||
} | ||
|
||
} |
Oops, something went wrong.