Code Monkey home page Code Monkey logo

springboot-gonggus-backend's Introduction

Back-End


개발 환경 : java, mysql


<사용자> User
id
이름 name
아이디 userId
비번 userPassword
닉네임 nickname
학교이름 schoolName
만든&참여 게시글 리스트 participatePosts
만든 게시글 리스트 ownPosts
북마크 리스트 bookmarkPosts
댓글 리스트 myComments

<게시판> Post
id
제목 title
방장 owner
카테고리 category
본문 content
생성날짜 createdDate
링크 goodsLink
기한 deadline
현재인원 currentNumberOfPeople
제한인원 limitNumberOfPeople
참여중인 사용자 participateUsers
마감 여부 finishCheck
댓글 comments

<댓글> Comment
id
작성자 writer
내용 content

<사용자와 게시판> UserPost
id
user
post


역할분담

(로그인,)회원가입, 마이페이지, 프로필 수정하기
메인 페이지, 카테고리별 게시글리스트, 게시글 검색, 게시글 작성하기, 게시글 수정하기, 상세 게시글( 참여하기 후 게시글(댓글나오도록 하기) ), 북마크 등록&삭제, 게시글 참여&탈퇴
북마크 게시글 보기, 참여한 게시글&본인이 만든 게시글 보기



path 경로 설정

메인 페이지 : /
카테고리별 게시글리스트 : /{category}
게시글 검색 : /searchpost?search=검색어
게시글 작성하기 : /makepost , 완료후 : /makepostsubmit
게시글 수정하기 : /post/{postId}/update , 완료후 : /updatepostsubmit/{postId}
상세 게시글 (참여하기 후 게시글(댓글나오도록 하기)) : /post/{postId}



프론트와 백엔드 서로에게 필요한 데이터


* 메인 페이지 : /

* 카테고리별 게시글리스트 : /{category}
-- 백엔드가 받는 데이터 : category (String)
-- 프론트에게 주는 데이터 : categoryPosts (List)

* 게시글 검색 : /searchpost?search=검색어
-- 백엔드가 받는 데이터 : searchTitle (String)
-- 프론트에게 주는 데이터 : searchPosts (List)


* 게시글 작성하기 : /makepost

* 게시글 작성 완료후 : /makepostsubmit
-- 백엔드가 받는 데이터 : @RequestParam("title") String title,
@RequestParam("content") String content,
@RequestParam("category") String category,
@RequestParam("goodsLink") String goodsLink,
@RequestParam("limitNumberOfPeople") Long limitNumberOfPeople,
@RequestParam("deadline") String deadline


* 게시글 수정하기 : /post/{postId}/update
-- 백엔드에게 받는 데이터 : postId (Long)
-- 프론트에게 주는 데이터 : post (Post)

* 게시글 수정하기 완료후 : /updatepostsubmit/{postId}
-- 백엔드가 받는 데이터 : @PathVariable("postId") Long postId
@RequestParam("title") String title,
@RequestParam("content") String content,
@RequestParam("category") String category,
@RequestParam("goodsLink") String goodsLink,
@RequestParam("limitNumberOfPeople") Long limitNumberOfPeople,
@RequestParam("deadline") String deadline


* 상세 게시글 (참여하기 후 게시글(댓글나오도록 하기)) : /post/{postId}
-- 백엔드가 받는 데이터 : postId (Long)
-- 프론트에게 주는 데이터 : post (Post)


== 댓글 ==
* 댓글 쓰기 : /post/{postId}/writecommentsubmit
- 백엔드가 받는 데이터 : postId (Long),
content (String)

* 댓글 수정하기 : /post/{postId}/updatecomment/{commentId}
- 백엔드가 받는 데이터 : postId (Long),
commentId (Long)
- 프론트에게 주는 데이터 : comment (Comment)

* 댓글 수정하기 완료후 : /post/{postId}/updatecommentsubmit/{commentId}
- 백엔드가 받는 데이터 : postId (Long),
commentId (Long),
content (String)
* 댓글 삭제하기 : /post/{postId}/deletecomment/{commentId}
- 백엔드가 받는 데이터 : postId (Long),
commentId (Long)

===북마크 & 참여하기 +둘 다 삭제하기===
* 북마크 등록하기 : /post/{postId}/registerbookmark
- 백엔드가 받는 데이터 : postId (Long)

* 북마크 삭제하기 : /post/{postId}/deletebookmark
- 백엔드가 받는 데이터 : postId (Long)

* 게시글에 참여하기 : /post/{postId}/participatepost
- 백엔드가 받는 데이터 : postId (Long)

* 게시글에서 탈퇴하기 : /post/{postId}/withdrawpost
- 백엔드가 받는 데이터 : postId (Long)

* 게시글 삭제하기 : /post/{postId}/deletepost
- 백엔드가 받는 데이터 : postId (Long)


springboot-gonggus-backend's People

Contributors

hjungin avatar onehunnitconst avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.