feat: 관리자 - 컨텐츠관리 - 팝업관리에서 특정 팝업 눌러서 수정 시, 수정하는 API 추가 건 back-end
parent
4fc4240ded
commit
88104efc50
|
|
@ -14,15 +14,18 @@ const RichTextEditor = ({item, setText}) => {
|
||||||
const modules = {
|
const modules = {
|
||||||
toolbar: {
|
toolbar: {
|
||||||
container: [
|
container: [
|
||||||
[{ size: ["small", false, "large", "huge"] }],
|
[{ header: '1' }, { header: '2' }, { font: [] }],
|
||||||
|
[{ size: [] }],
|
||||||
[{ color: [] }],
|
[{ color: [] }],
|
||||||
["bold", "italic", "underline", "strike", "blockquote"],
|
["bold", "italic", "underline", "strike", "blockquote"],
|
||||||
[
|
[
|
||||||
{ list: "ordered" },
|
{ list: "ordered" },
|
||||||
{ list: "bullet" },
|
{ list: "bullet" },
|
||||||
|
{ indent: '-1' },
|
||||||
|
{ indent: '+1' },
|
||||||
{ align: [] }
|
{ align: [] }
|
||||||
],
|
],
|
||||||
["image", "video"],
|
["link", "image", "video"],
|
||||||
["clean"]
|
["clean"]
|
||||||
],
|
],
|
||||||
// handlers: { image: this.imageHandler }
|
// handlers: { image: this.imageHandler }
|
||||||
|
|
|
||||||
|
|
@ -135,6 +135,7 @@ function PopupWriter(props) {
|
||||||
}
|
}
|
||||||
|
|
||||||
//게시글 내용
|
//게시글 내용
|
||||||
|
formData.delete("contents");
|
||||||
formData.append("contents", text);
|
formData.append("contents", text);
|
||||||
|
|
||||||
if (formValidator(formData)) {
|
if (formValidator(formData)) {
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,31 @@
|
||||||
|
package com.dbnt.kcscbackend.admin.contents.popUp.model;
|
||||||
|
|
||||||
|
import io.swagger.annotations.ApiModel;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Getter;
|
||||||
|
import lombok.RequiredArgsConstructor;
|
||||||
|
import lombok.Setter;
|
||||||
|
import lombok.ToString;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
|
||||||
|
@ApiModel(value = "CreatePopupVO", description =
|
||||||
|
"관리자 단에서 '컨텐츠 관리' > '팝업 관리' 페이지에서 팝업을 추가하는 API에 사용된다." + ""
|
||||||
|
)
|
||||||
|
@RequiredArgsConstructor
|
||||||
|
@Getter
|
||||||
|
@Setter
|
||||||
|
@ToString
|
||||||
|
public class CreatePopupVO implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 719256850119704956L;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "startDate")
|
||||||
|
private String startDate;
|
||||||
|
@ApiModelProperty(value = "endDate")
|
||||||
|
private String endDate;
|
||||||
|
@ApiModelProperty(value = "title")
|
||||||
|
private String title;
|
||||||
|
@ApiModelProperty(value = "contents")
|
||||||
|
private String contents;
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue