Code Monkey home page Code Monkey logo

-api's Introduction

생각해보기

MVC 패턴 적용

MVC 패턴을 적용하여 프로젝트를 구성

  • MVC 패턴: Model, View, Controller의 약자로, 소프트웨어를 세 가지의 역할로 구분한 디자인 패턴
    • Model: 데이터베이스와 연결되어 데이터를 가져오거나 저장하는 역할
    • View: 사용자에게 보여지는 화면
    • Controller: 사용자의 요청을 받아서 데이터를 처리하고 결과를 View에 전달하는 역할
  • Spring Boot에서 MVC 패턴을 적용하기 위한 나머지 보통 View는 프론트엔드에서 처리하므로, Spring Boot에서는 Controller와 Model만 구현하면 된다.
    • Service: 비즈니스 로직을 처리하는 역할
    • Repository: 데이터베이스와 직접적으로 연결되어 데이터를 가져오거나 저장하는 역할
    • Entity: 데이터베이스의 테이블과 매핑되는 객체
    • DTO: 데이터 전송 객체로서, Entity와 View 사이에서 데이터를 전달하는 역할
    • Request, Response: 사용자의 요청과 응답을 담당하는 객체

개발자 자동 할당 알고리즘

새로 생성된 티켓의 컴포너트를 파악해 어떤 분야의 이슈(티켓)인지 파악하고 많이 개발해봤으면서도 덜 바쁜 사람에게 우선 할당한다

  • Ticket
  • Controller
    • 생선된 티켓의 컴포넌트를 정보 서비스에 넘김
  • Service:
    • 해당 티켓의 프로젝트와 유저를 기준으로 개발자 찾기
    • 개발자에게 할당된 티켓 수를 entry로 매핑
    • 비교& return

Get 으로 조회시 문젲ㅁ

get 으로 조회시 Entitiy가 그대로 노출되면 Domian 단에 프록시.Lazy를 걸어뒀기 때문에 임의 값으로 인한 에러가 뜰수 있다.엔티티를 고대로 노출하지 않는 습관 api 명세가 바뀔 것을 대비해서 Get은 컨트롤러 단에서 Result<> 제네릭으로 감싸주ㅝ야함

Additional Links : 참고 자료

-api's People

Contributors

aldlsehf avatar

Watchers

 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.