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;
|
|
/**
|
* zenith at 20200730
|
*/
|
public class QnaForm {
|
private Long id;
|
private String title;
|
private String description;
|
private List<Long> userIds = Lists.newArrayList();
|
private List<Long> removeIds = Lists.newArrayList();
|
|
public QnaForm(){}
|
|
public static QnaForm make(Map<String, Object> params) {
|
QnaForm qnaForm = ConvertUtil.convertMapToClass(params, QnaForm.class);
|
|
if (MapUtil.getLongs(params, "userIds") != null) {
|
qnaForm.setUserIds(MapUtil.getLongs(params, "userIds"));
|
}
|
|
if (MapUtil.getLongs(params, "removeIds") != null) {
|
qnaForm.setRemoveIds(MapUtil.getLongs(params, "removeIds"));
|
}
|
|
return qnaForm;
|
}
|
|
public Long getId() {
|
return id;
|
}
|
|
public void setId(Long id) {
|
this.id = id;
|
}
|
|
public String getTitle() {
|
return title;
|
}
|
|
public void setTitle(String title) {
|
this.title = title;
|
}
|
|
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;
|
}
|
|
public List<Long> getUserIds() {
|
return userIds;
|
}
|
|
public void setUserIds(List<Long> userIds) {
|
this.userIds = userIds;
|
}
|
}
|