package kr.wisestone.owl.web.form;
|
|
import com.google.common.collect.Lists;
|
import kr.wisestone.owl.util.ConvertUtil;
|
import kr.wisestone.owl.util.MapUtil;
|
|
import java.util.List;
|
import java.util.Map;
|
|
/**
|
* Created by wisestone on 2018-01-08.
|
*/
|
public class IssueCommentForm {
|
private Long id;
|
private Long issueId;
|
private String description;
|
private List<Long> removeIds = Lists.newArrayList();
|
|
public IssueCommentForm(){}
|
|
public static IssueCommentForm make(Map<String, Object> params) {
|
IssueCommentForm form = ConvertUtil.convertMapToClass(params, IssueCommentForm.class);
|
|
if (MapUtil.getLongs(params, "removeIds") != null) {
|
form.setRemoveIds(MapUtil.getLongs(params, "removeIds"));
|
}
|
|
return form;
|
}
|
|
public Long getId() {
|
return id;
|
}
|
|
public void setId(Long id) {
|
this.id = id;
|
}
|
|
public Long getIssueId() {
|
return issueId;
|
}
|
|
public void setIssueId(Long issueId) {
|
this.issueId = issueId;
|
}
|
|
public String getDescription() {
|
return description;
|
}
|
|
public void setDescription(String description) {
|
this.description = description;
|
}
|
|
public List<Long> getRemoveIds() {
|
return removeIds;
|
}
|
|
public void setRemoveIds(List<Long> removeIds) {
|
this.removeIds = removeIds;
|
}
|
}
|