feat: 관리자 - 컨텐츠관리 - 팝업관리에서 특정 팝업 눌러서 수정 시, 수정하는 API 추가 건 back-end

thkim
thkim 2024-01-25 10:02:06 +09:00
parent 4fc4240ded
commit 88104efc50
3 changed files with 38 additions and 3 deletions

View File

@ -14,15 +14,18 @@ const RichTextEditor = ({item, setText}) => {
const modules = {
toolbar: {
container: [
[{ size: ["small", false, "large", "huge"] }],
[{ header: '1' }, { header: '2' }, { font: [] }],
[{ size: [] }],
[{ color: [] }],
["bold", "italic", "underline", "strike", "blockquote"],
[
{ list: "ordered" },
{ list: "bullet" },
{ indent: '-1' },
{ indent: '+1' },
{ align: [] }
],
["image", "video"],
["link", "image", "video"],
["clean"]
],
// handlers: { image: this.imageHandler }

View File

@ -135,6 +135,7 @@ function PopupWriter(props) {
}
//
formData.delete("contents");
formData.append("contents", text);
if (formValidator(formData)) {

View File

@ -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;
}