[DEV] update back API
This commit is contained in:
parent
89cd0263c4
commit
1b9726b7e7
@ -54,11 +54,11 @@ public class SeriesResource {
|
|||||||
@Path("{id}/add_cover")
|
@Path("{id}/add_cover")
|
||||||
@Consumes({MediaType.MULTIPART_FORM_DATA})
|
@Consumes({MediaType.MULTIPART_FORM_DATA})
|
||||||
public Response uploadCover(@PathParam("id") Long id,
|
public Response uploadCover(@PathParam("id") Long id,
|
||||||
@FormDataParam("file_name") String file_name,
|
@FormDataParam("file_name") String fileName,
|
||||||
@FormDataParam("file") InputStream fileInputStream,
|
@FormDataParam("file") InputStream fileInputStream,
|
||||||
@FormDataParam("file") FormDataContentDisposition fileMetaData
|
@FormDataParam("file") FormDataContentDisposition fileMetaData
|
||||||
) {
|
) {
|
||||||
return NodeInterface.uploadCover(typeInNode, id, file_name, fileInputStream, fileMetaData);
|
return NodeInterface.uploadCover(typeInNode, id, fileName, fileInputStream, fileMetaData);
|
||||||
}
|
}
|
||||||
|
|
||||||
@GET
|
@GET
|
||||||
|
@ -1,5 +0,0 @@
|
|||||||
package org.kar.karideo.model;
|
|
||||||
|
|
||||||
public enum AgeLimit {
|
|
||||||
|
|
||||||
}
|
|
@ -21,15 +21,15 @@ public class MediaSmall {
|
|||||||
public Long id;
|
public Long id;
|
||||||
public String name;
|
public String name;
|
||||||
public String description;
|
public String description;
|
||||||
public Long data_id;
|
public Long dataId;
|
||||||
public Long type_id;
|
public Long typeId;
|
||||||
public Long universe_id;
|
public Long universeId;
|
||||||
public Long series_id;
|
public Long seriesId;
|
||||||
public Long season_id;
|
public Long seasonId;
|
||||||
public Integer episode;
|
public Integer episode;
|
||||||
public Integer date;
|
public Integer date;
|
||||||
public Integer time;
|
public Integer time;
|
||||||
public String age_limit;
|
public String ageLimit;
|
||||||
public List<Long> covers = new ArrayList<>();
|
public List<Long> covers = new ArrayList<>();
|
||||||
|
|
||||||
public MediaSmall(ResultSet rs) {
|
public MediaSmall(ResultSet rs) {
|
||||||
@ -38,25 +38,25 @@ public class MediaSmall {
|
|||||||
this.id = rs.getLong(iii++);
|
this.id = rs.getLong(iii++);
|
||||||
this.name = rs.getString(iii++);
|
this.name = rs.getString(iii++);
|
||||||
this.description = rs.getString(iii++);
|
this.description = rs.getString(iii++);
|
||||||
this.data_id = rs.getLong(iii++);
|
this.dataId = rs.getLong(iii++);
|
||||||
if (rs.wasNull()) {
|
if (rs.wasNull()) {
|
||||||
this.data_id = null;
|
this.dataId = null;
|
||||||
}
|
}
|
||||||
this.type_id = rs.getLong(iii++);
|
this.typeId = rs.getLong(iii++);
|
||||||
if (rs.wasNull()) {
|
if (rs.wasNull()) {
|
||||||
this.type_id = null;
|
this.typeId = null;
|
||||||
}
|
}
|
||||||
this.universe_id = rs.getLong(iii++);
|
this.universeId = rs.getLong(iii++);
|
||||||
if (rs.wasNull()) {
|
if (rs.wasNull()) {
|
||||||
this.universe_id = null;
|
this.universeId = null;
|
||||||
}
|
}
|
||||||
this.series_id = rs.getLong(iii++);
|
this.seriesId = rs.getLong(iii++);
|
||||||
if (rs.wasNull()) {
|
if (rs.wasNull()) {
|
||||||
this.series_id = null;
|
this.seriesId = null;
|
||||||
}
|
}
|
||||||
this.season_id = rs.getLong(iii++);
|
this.seasonId = rs.getLong(iii++);
|
||||||
if (rs.wasNull()) {
|
if (rs.wasNull()) {
|
||||||
this.season_id = null;
|
this.seasonId = null;
|
||||||
}
|
}
|
||||||
this.episode = rs.getInt(iii++);
|
this.episode = rs.getInt(iii++);
|
||||||
if (rs.wasNull()) {
|
if (rs.wasNull()) {
|
||||||
@ -70,7 +70,7 @@ public class MediaSmall {
|
|||||||
if (rs.wasNull()) {
|
if (rs.wasNull()) {
|
||||||
this.time = null;
|
this.time = null;
|
||||||
}
|
}
|
||||||
this.age_limit = rs.getString(iii++);
|
this.ageLimit = rs.getString(iii++);
|
||||||
String coversString = rs.getString(iii++);
|
String coversString = rs.getString(iii++);
|
||||||
if (!rs.wasNull()) {
|
if (!rs.wasNull()) {
|
||||||
String[] elements = coversString.split("-");
|
String[] elements = coversString.split("-");
|
||||||
|
@ -21,7 +21,7 @@ public class NodeSmall {
|
|||||||
public Long id;
|
public Long id;
|
||||||
public String name;
|
public String name;
|
||||||
public String description;
|
public String description;
|
||||||
public Long parent_id;
|
public Long parentId;
|
||||||
public List<Long> covers = new ArrayList<>();
|
public List<Long> covers = new ArrayList<>();
|
||||||
|
|
||||||
public NodeSmall(ResultSet rs) {
|
public NodeSmall(ResultSet rs) {
|
||||||
@ -30,9 +30,9 @@ public class NodeSmall {
|
|||||||
this.id = rs.getLong(iii++);
|
this.id = rs.getLong(iii++);
|
||||||
this.name = rs.getString(iii++);
|
this.name = rs.getString(iii++);
|
||||||
this.description = rs.getString(iii++);
|
this.description = rs.getString(iii++);
|
||||||
this.parent_id = rs.getLong(iii++);
|
this.parentId = rs.getLong(iii++);
|
||||||
if (rs.wasNull()) {
|
if (rs.wasNull()) {
|
||||||
this.parent_id = null;
|
this.parentId = null;
|
||||||
}
|
}
|
||||||
String coversString = rs.getString(iii++);
|
String coversString = rs.getString(iii++);
|
||||||
if (!rs.wasNull()) {
|
if (!rs.wasNull()) {
|
||||||
@ -53,7 +53,7 @@ public class NodeSmall {
|
|||||||
"id=" + id +
|
"id=" + id +
|
||||||
", name='" + name + '\'' +
|
", name='" + name + '\'' +
|
||||||
", description='" + description + '\'' +
|
", description='" + description + '\'' +
|
||||||
", parent_id=" + parent_id +
|
", parentId=" + parentId +
|
||||||
", covers=" + covers +
|
", covers=" + covers +
|
||||||
'}';
|
'}';
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user