Skip to content

codestates/WBABEProject-24

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Online Ordering System

Wemade Blockchain Academy 2022 Back-End Final Project

프로젝트 소개

주문자(고객)와 피주문자(사업자)를 위한 온라인 주문 시스템 구현

기술 스택

  • Go
  • Gin-Gonic
  • MongoDB

개발 환경 구성

  • Go 설치
  • MongoDB 설치

설정

  • conf/config.toml
  • web, swagger, db 관련 부분을 알맞게 설정 필요

실행 방법

git clone https://github.com/codestates/WBABEProject-24.git
cd WBABEProject-24
go mod tidy
go run main.go

DB 구성

erd

기능 소개

  • 전체 API 요약

    전체 API

  • 메뉴 생성

    • 요청

      요청 데이터 body : {"name":"딸기빙수","price":12000,"hotGrade":1,"isAvailable":true}

      메뉴 생성 요청

    • 응답 메뉴 생성 응답

  • 메뉴 리스트 출력

    • 요청

      요청 데이터 query : sort=[recommend(추천순)|score(평점순)|most(주문순)|new(최신순)]

      메뉴 리스트 요청

    • 응답 메뉴 리스트 응답

  • 메뉴 수정

    • 요청

      요청 데이터 path : name=메뉴_이름
      body : {"price":13000,"hotGrade":1,"isAvailable":true}

      메뉴 수정 요청

    • 응답 메뉴 수정 응답

  • 메뉴 삭제

    • 요청

      요청 데이터 path : name=메뉴_이름

      메뉴 삭제 요청

    • 응답 메뉴 삭제 응답

  • 주문 생성

    • 요청

      요청 데이터 body : {"menuList":["낙곱새", "치즈김밥"],"address":"부산","phone":"010-1111-2222"}

      주문 생성 요청

    • 응답 주문 생성 응답

  • 주문 리스트 출력

    • 요청

      요청 데이터 query : status=[active|complete|all]
      - active : 대기, 주문, 조리, 배달 상태
      - complete : 완료 상태
      - all : 모든 상태

      주문 리스트 요청

    • 응답 주문 리스트 응답

  • 주문 메뉴 변경

    • 요청

      요청 데이터 path : seq=order_seq
      path : type=[add|change]
      body : {"menuList": ["낙곱새"]}

      주문 메뉴 변경 요청-1 주문 메뉴 변경 요청-2

    • 응답 주문 메뉴 변경 응답

  • 주문 상태 변경

    • 요청

      요청 데이터 path : seq=order_seq
      path : status=[대기|주문|조리|배달|완료]

      주문 상태 변경 요청

    • 응답 주문 상태 변경 응답

  • 리뷰 생성

    • 요청

      요청 데이터 body : {"comment": "너무 맛있어요!","menuName": "낙곱새","orderSeq": "1672929029-0000000001","score": 5}

      리뷰 생성 요청

    • 응답 리뷰 생성 응답

  • 리뷰 리스트 출력

    • 요청

      요청 데이터 path : menu=메뉴_이름

      리뷰 리스트 요청

    • 응답 리뷰 리스트 응답

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages