Skip to content

About

Backend part of the project

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

60 Commits

Folders and files

Repository files navigation

gotchy-backend

DB (Entity)


Users

  • usersId → Long (PK)
  • password → String
  • name → String
  • nickname → String
  • photoUrl → String
  • gender → String
  • age → int
  • phone → String
  • region → String
  • manner → String
  • account → String
  • Role (enum)
  • createdDate
  • modifiedDate
  • gotchyList
  • hobbyList
  • postsList

Gotchy

  • gotchyId → Long (PK)
  • users (JoinColumn) → Users (객체)
  • gotchyName → String
  • mode (모집인지 아닌지/모집 진행,완료 여부) → String
  • gotchyHobby → String
  • gotchyDate → String
  • gotchyTime → String
  • location → String
  • photoUrl → String
  • price → int
  • headcount → int
  • level → String
  • gender → String
  • useTime → String
  • createdDate
  • modifiedDate

Posts

  • postsId → Long (PK)
  • author (JoinColumn) → Users (객체)
  • title → String
  • content → String
  • createdDate
  • modifiedDate

Hobby

  • hobbyId → Long (PK)
  • hobbyName → String
  • hobbyLevel → String
  • users (JoinColumn) → Users

기능↔API


사용자

  • 회원가입 → UsersController save [POST]
  • 정보 수정 → UsersController update [PUT]
  • 로그인/로그아웃 → 사용자 계정
  • 권한 부여 (공지사항 조회만 가능하게)
  • 프로필 정보 조회(사용자 접근) → UsersController findById [GET]
  • 가치 신청 내역 조회 → UsersController findMyApply [GET]
  • 공지사항 조회 → (전체)PostsController findAll [GET], (상세, 단건)PostsController findById [GET]
  • 취미별 레벨 등록 → HobbyController save [POST]
  • 취미별 레벨 조회 → HobbyController findAll [GET]
  • 취미별 레벨 수정 → HobbyController update [PUT]
  • 가치 조회(날짜별 조회) → GotchyController findByDate [GET]
  • 가치 조회(필터링 적용 시)
  • 가치 상세 페이지 조회 → GotchyController findById [GET]
  • 가치 등록 (모집) → GotchyController save [POST]
  • 가치 신청 → UsersController apply [POST]

관리자

  • 로그인/로그아웃 → 관리자 계정 Users 엔티티에 필요 (미리 db에 등록해놔야함)
  • 권한 부여 (공지사항 등록, 수정, 조회, 삭제 가능)
  • 공지사항 등록 → PostsController save [POST]
  • 공지사항 수정 → PostsController update [PUT]
  • 공지사항 조회 → (전체)PostsController findAll [GET], (상세, 단건)PostsController findById [GET]
  • 공지사항 삭제 → PostsController delete [DELETE]
  • 가치 등록 (관리자 등록) → GotchyController save [POST]

연관관계 매핑

  • Posts, Users (양방향)
  • Gotchy → Users (단방향)
  • Hobby → Users (단방향)

About

Backend part of the project

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages