swagger fix
This commit is contained in:
parent
347aef48a2
commit
f2b95b373f
4 changed files with 8 additions and 2 deletions
|
|
@ -26,7 +26,7 @@ public class PlannerNewAction implements IAction<PlannerNewRequest> {
|
|||
@JsonProperty
|
||||
private String task;
|
||||
|
||||
@ApiModelProperty(value = "Время", example = "16:30:00")
|
||||
@ApiModelProperty(value = "Время", dataType = "java.lang.String", example = "16:30:00")
|
||||
@JsonSerialize(using = LocalTimeSerializer.class)
|
||||
@JsonDeserialize(using = LocalTimeDeserializer.class)
|
||||
@JsonProperty
|
||||
|
|
|
|||
|
|
@ -19,12 +19,15 @@ import java.util.Collection;
|
|||
import java.util.List;
|
||||
|
||||
public class PlannerTemplateNewAction implements IAction<PlannerTemplateNewRequest> {
|
||||
@ApiModelProperty(value = "Идентификатор задачи", example = "ADBC")
|
||||
@JsonProperty
|
||||
public String task;
|
||||
@ApiModelProperty(value = "Время задачи", dataType = "java.lang.String", example = "16:30:00")
|
||||
@JsonSerialize(using = LocalTimeSerializer.class)
|
||||
@JsonDeserialize(using = LocalTimeDeserializer.class)
|
||||
@JsonProperty
|
||||
public LocalTime taskTime;
|
||||
@ApiModelProperty(value = "Статус", example = "ACTV")
|
||||
@JsonProperty
|
||||
public String taskStatus;
|
||||
|
||||
|
|
|
|||
|
|
@ -23,12 +23,15 @@ public class PlannerTemplateUpdateAction implements IAction<PlannerTemplateUpdat
|
|||
@ApiModelProperty(hidden = true)
|
||||
@JsonProperty
|
||||
public Long id;
|
||||
@ApiModelProperty(value = "Идентификатор задачи", example = "ADBC")
|
||||
@JsonProperty
|
||||
public String task;
|
||||
@ApiModelProperty(value = "Время задачи", dataType = "java.lang.String", example = "16:30:00")
|
||||
@JsonSerialize(using = LocalTimeSerializer.class)
|
||||
@JsonDeserialize(using = LocalTimeDeserializer.class)
|
||||
@JsonProperty
|
||||
public LocalTime taskTime;
|
||||
@ApiModelProperty(value = "Статус", example = "ACTV")
|
||||
@JsonProperty
|
||||
public String taskStatus;
|
||||
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ public class PlannerUpdateAction implements IAction<PlannerUpdateRequest>, WithI
|
|||
@JsonProperty
|
||||
private String task;
|
||||
|
||||
@ApiModelProperty(value = "Время", example = "16:30:00")
|
||||
@ApiModelProperty(value = "Время", dataType = "java.lang.String", example = "16:30:00")
|
||||
@JsonSerialize(using = LocalTimeSerializer.class)
|
||||
@JsonDeserialize(using = LocalTimeDeserializer.class)
|
||||
@JsonProperty
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue