Skip to content

Commit 75ebe00

Browse files
committed
feat: init project
1 parent 88a6cf5 commit 75ebe00

File tree

15 files changed

+761
-0
lines changed

15 files changed

+761
-0
lines changed

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@
1818
*.zip
1919
*.tar.gz
2020
*.rar
21+
target/
2122

2223
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
2324
hs_err_pid*
25+
26+
# Idea and OS Files
27+
.idea
28+
.DS_Store
29+
*.iml

pom.xml

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<modelVersion>4.0.0</modelVersion>
6+
7+
<groupId>com.meitu</groupId>
8+
<artifactId>java-lmstfy-client</artifactId>
9+
<version>1.0-SNAPSHOT</version>
10+
<dependencies>
11+
<dependency>
12+
<groupId>com.squareup.okhttp3</groupId>
13+
<artifactId>okhttp</artifactId>
14+
<version>3.10.0</version>
15+
</dependency>
16+
<dependency>
17+
<groupId>com.google.code.gson</groupId>
18+
<artifactId>gson</artifactId>
19+
<version>2.8.5</version>
20+
</dependency>
21+
<dependency>
22+
<groupId>junit</groupId>
23+
<artifactId>junit</artifactId>
24+
<version>4.12</version>
25+
<scope>test</scope>
26+
</dependency>
27+
<dependency>
28+
<groupId>junit</groupId>
29+
<artifactId>junit</artifactId>
30+
<version>4.12</version>
31+
<scope>test</scope>
32+
</dependency>
33+
<dependency>
34+
<groupId>junit</groupId>
35+
<artifactId>junit</artifactId>
36+
<version>4.12</version>
37+
<scope>test</scope>
38+
</dependency>
39+
</dependencies>
40+
41+
<build>
42+
<plugins>
43+
<plugin>
44+
<groupId>org.apache.maven.plugins</groupId>
45+
<artifactId>maven-compiler-plugin</artifactId>
46+
<configuration>
47+
<source>1.8</source>
48+
<target>1.8</target>
49+
</configuration>
50+
</plugin>
51+
52+
<plugin>
53+
<groupId>org.apache.maven.plugins</groupId>
54+
<artifactId>maven-source-plugin</artifactId>
55+
<executions>
56+
<execution>
57+
<id>attach-sources</id>
58+
<goals>
59+
<goal>jar</goal>
60+
</goals>
61+
</execution>
62+
</executions>
63+
</plugin>
64+
</plugins>
65+
</build>
66+
67+
68+
</project>
Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
package com.meitu.platform.lmstfy;
2+
3+
import com.google.gson.annotations.SerializedName;
4+
5+
/**
6+
* Description:
7+
*
8+
* @author Yesphet
9+
* @date 2019-12-05
10+
*/
11+
public class Job {
12+
13+
private String namespace;
14+
private String queue;
15+
@SerializedName("job_id")
16+
private String jobID;
17+
@SerializedName("data")
18+
private String base64Data;
19+
private int ttl;
20+
@SerializedName("elapsed_ms")
21+
private int elapsedMS;
22+
@SerializedName("remain_tries")
23+
private int remainTries;
24+
private transient String data;
25+
26+
public String getNamespace() {
27+
return namespace;
28+
}
29+
30+
public void setNamespace(String namespace) {
31+
this.namespace = namespace;
32+
}
33+
34+
public String getQueue() {
35+
return queue;
36+
}
37+
38+
public void setQueue(String queue) {
39+
this.queue = queue;
40+
}
41+
42+
public String getJobID() {
43+
return jobID;
44+
}
45+
46+
public void setJobID(String jobID) {
47+
this.jobID = jobID;
48+
}
49+
50+
public String getBase64Data() {
51+
return base64Data;
52+
}
53+
54+
public void setBase64Data(String data) {
55+
this.base64Data = data;
56+
}
57+
58+
public int getTtl() {
59+
return ttl;
60+
}
61+
62+
public void setTtl(int ttl) {
63+
this.ttl = ttl;
64+
}
65+
66+
public int getElapsedMS() {
67+
return elapsedMS;
68+
}
69+
70+
public void setElapsedMS(int elapsedMS) {
71+
this.elapsedMS = elapsedMS;
72+
}
73+
74+
public int getRemainTries() {
75+
return remainTries;
76+
}
77+
78+
public void setRemainTries(int remainTries) {
79+
this.remainTries = remainTries;
80+
}
81+
82+
public String getData() {
83+
return data;
84+
}
85+
86+
public void setData(String data) {
87+
this.data = data;
88+
}
89+
}

0 commit comments

Comments
 (0)