Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
c11f725
ADD init commit
ji-hoooon Apr 9, 2023
0acc4ef
ADD User Entity, DTO CREATED
ji-hoooon Apr 10, 2023
14d4a72
ADD 유저 컨트롤러, 서비스 테스트 완료
ji-hoooon Apr 10, 2023
d11e379
ADD 상품 등록, 상품 목록 완료 (+추후에 페이징 처리 필요)
ji-hoooon Apr 10, 2023
43c671e
ADD 상품 등록, 상품 목록 완료 (+추후에 페이징 처리 필요)
ji-hoooon Apr 10, 2023
be4a54c
ADD 상품상세보기 완료
ji-hoooon Apr 10, 2023
34cbbef
ADD 상품 수정 완료
ji-hoooon Apr 10, 2023
9caeb83
ADD 상품삭제 완료
ji-hoooon Apr 10, 2023
ba1799a
ADD 상품삭제 완료(+리소스 URI, @PathVariable)
ji-hoooon Apr 10, 2023
6a4878f
UPDATE README
ji-hoooon Apr 10, 2023
ff0c2b5
UPDATE Dummy 데이터 추가
ji-hoooon Apr 10, 2023
70d6f7e
ADD 로깅은 추후에 추가
ji-hoooon Apr 10, 2023
483e406
ADD ApplicationListener로 로깅 구현
ji-hoooon Apr 18, 2023
7314631
UPDATE 예외처리 핸들러 작성 완료
ji-hoooon Apr 18, 2023
de08aff
UPDATE DTO 수정 및 컨트롤러 변경
ji-hoooon Apr 18, 2023
e467b0c
ADD Order 기능 완료 (+테스트 필요)
ji-hoooon Apr 20, 2023
790449b
UPDATE 재고수량 부족해도 주문 가능한 버그픽스
ji-hoooon Apr 20, 2023
bc46c19
UPDATE 상품 수정 버그픽스 (+컨트롤러에서 예외를 던지기 위해서는 Errors를 반드시 파라미터)
ji-hoooon Apr 20, 2023
38f48df
UPDATE 상품 수정시 유효성검사 버그픽스 (+정규식 변경)
ji-hoooon Apr 20, 2023
703a181
UPDATE 상품 수정시 동일한 상품명 불가능하도록 변경
ji-hoooon Apr 20, 2023
8596cc8
UPDATE Errorlog 남기기위해 LoginUser를 가져오는데 SecurityConfig -> authenticati…
ji-hoooon Apr 20, 2023
b418600
ADD 주문목록보기 변경필요 (+주문서번호와 총액만 보이는데 변경 필요)
ji-hoooon Apr 20, 2023
6f8a471
UPDATE OrderProduct에 OrderSheet 연동 완료
ji-hoooon Apr 20, 2023
22792e7
UPDATE cascade = CascadeType.ALL 설정 (ordersheet-orderproduct)
ji-hoooon Apr 20, 2023
29bb8d1
ADD 유저 활성상태 확인해 로그인 성공유무 기능 추가
ji-hoooon Apr 21, 2023
c960792
UPDATE 로그인 했을때만 로그인 로그 남기도록 변경
ji-hoooon Apr 21, 2023
1b5caf2
ADD Security / Regex / UserContoller, UserService 테스트 완료 (+Order, Pro…
ji-hoooon Apr 21, 2023
772eb7b
UPDATE README
ji-hoooon Apr 21, 2023
eecd439
UPDATE README
ji-hoooon Apr 21, 2023
7f3b6c3
UPDATE README
ji-hoooon Apr 21, 2023
64bea90
UPDATE README
ji-hoooon Apr 21, 2023
54b5885
Update README.md
ji-hoooon Apr 21, 2023
f832f60
Update README.md
ji-hoooon Apr 21, 2023
9440a77
Update README.md
ji-hoooon Apr 21, 2023
be5253a
Update README.md
ji-hoooon Apr 21, 2023
d4cfb4f
Update README.md
ji-hoooon Apr 21, 2023
41e7a5b
Update README.md
ji-hoooon Apr 21, 2023
b7cf636
Update README.md
ji-hoooon Apr 21, 2023
bc3bad7
vi
ji-hoooon Apr 25, 2023
d76871d
ADD Rest Docs bug fix
ji-hoooon Apr 25, 2023
47c277b
Update README.md
ji-hoooon Aug 25, 2025
b3190ed
Update README.md
ji-hoooon Aug 25, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added MVC구조도.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
63 changes: 63 additions & 0 deletions OrderController_save.sdt
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
(
{"_classDescription":{"_className":"shop.minostreet.shoppingmall.controller.OrderController","_attributes":["public"],"supers":[]},"_methodName":"save","_attributes":["public"],"_argNames":["saveReqDTO","errors","loginUser"],"_argTypes":["shop.minostreet.shoppingmall.dto.orderproduct.OrderReqDto.SaveReqDTO","org.springframework.validation.Errors","shop.minostreet.shoppingmall.config.auth.LoginUser"],"_returnType":"org.springframework.http.ResponseEntity\u003c?\u003e","offset":2313}
(
{"_enclosedMethodName":"save","_enclosedMethodArgTypes":["shop.minostreet.shoppingmall.dto.orderproduct.OrderReqDto.SaveReqDTO","org.springframework.validation.Errors","shop.minostreet.shoppingmall.config.auth.LoginUser"],"_classDescription":{"_className":"shop.minostreet.shoppingmall.controller.OrderController","_attributes":["public"],"supers":[]},"_methodName":"() -\u003e","_attributes":[],"_argNames":[],"_argTypes":[],"_returnType":"java.util.function.Supplier\u003cshop.minostreet.shoppingmall.handler.exception.MyApiException\u003e","offset":2597}
(
{"_classDescription":{"_className":"shop.minostreet.shoppingmall.handler.exception.MyApiException","_attributes":["public"],"supers":["java.lang.RuntimeException","java.lang.Exception","java.lang.Throwable","java.io.Serializable"]},"_methodName":"new","_attributes":["public"],"_argNames":["message"],"_argTypes":["java.lang.String"],"_returnType":"shop.minostreet.shoppingmall.handler.exception.MyApiException","offset":2603}
)
)
(
{"_classDescription":{"_className":"shop.minostreet.shoppingmall.handler.exception.MyApiException","_attributes":["public"],"supers":["java.lang.RuntimeException","java.lang.Exception","java.lang.Throwable","java.io.Serializable"]},"_methodName":"new","_attributes":["public"],"_argNames":["message"],"_argTypes":["java.lang.String"],"_returnType":"shop.minostreet.shoppingmall.handler.exception.MyApiException","offset":2716}
)
(
{"_classDescription":{"_className":"shop.minostreet.shoppingmall.service.OrderService","_attributes":["public"],"supers":[]},"_methodName":"주문등록","_attributes":["public"],"_argNames":["saveReqDTO","userPS"],"_argTypes":["shop.minostreet.shoppingmall.dto.orderproduct.OrderReqDto.SaveReqDTO","shop.minostreet.shoppingmall.domain.User"],"_returnType":"shop.minostreet.shoppingmall.dto.orderproduct.OrderRespDto.SaveRespDTO","offset":2827}
(
{"_classDescription":{"_className":"shop.minostreet.shoppingmall.dto.orderproduct.OrderReqDto.SaveReqDTO","_attributes":["public","static"],"supers":[]},"_methodName":"toEntity","_attributes":["public"],"_argNames":["products"],"_argTypes":["java.util.List\u003cshop.minostreet.shoppingmall.domain.Product\u003e"],"_returnType":"java.util.List\u003cshop.minostreet.shoppingmall.domain.OrderProduct\u003e","offset":1749}
(
{"_enclosedMethodName":"toEntity","_enclosedMethodArgTypes":["java.util.List\u003cshop.minostreet.shoppingmall.domain.Product\u003e"],"_classDescription":{"_className":"shop.minostreet.shoppingmall.dto.orderproduct.OrderReqDto.SaveReqDTO","_attributes":["public","static"],"supers":[]},"_methodName":"orderProduct -\u003e","_attributes":[],"_argNames":["orderProduct"],"_argTypes":["shop.minostreet.shoppingmall.dto.orderproduct.OrderReqDto.SaveReqDTO.OrderProductDTO"],"_returnType":"java.util.function.Function\u003cshop.minostreet.shoppingmall.dto.orderproduct.OrderReqDto.SaveReqDTO.OrderProductDTO,java.util.stream.Stream\u003c? extends shop.minostreet.shoppingmall.domain.OrderProduct\u003e\u003e","offset":1357}
(
{"_enclosedMethodName":"toEntity","_enclosedMethodArgTypes":["java.util.List\u003cshop.minostreet.shoppingmall.domain.Product\u003e"],"_classDescription":{"_className":"shop.minostreet.shoppingmall.dto.orderproduct.OrderReqDto.SaveReqDTO","_attributes":["public","static"],"supers":[]},"_methodName":"product -\u003e","_attributes":[],"_argNames":["product"],"_argTypes":["shop.minostreet.shoppingmall.domain.Product"],"_returnType":"java.util.function.Predicate\u003cshop.minostreet.shoppingmall.domain.Product\u003e","offset":1699}
)
(
{"_enclosedMethodName":"toEntity","_enclosedMethodArgTypes":["java.util.List\u003cshop.minostreet.shoppingmall.domain.Product\u003e"],"_classDescription":{"_className":"shop.minostreet.shoppingmall.dto.orderproduct.OrderReqDto.SaveReqDTO","_attributes":["public","static"],"supers":[]},"_methodName":"product -\u003e","_attributes":[],"_argNames":["product"],"_argTypes":["shop.minostreet.shoppingmall.domain.Product"],"_returnType":"java.util.function.Function\u003cshop.minostreet.shoppingmall.domain.Product,shop.minostreet.shoppingmall.domain.OrderProduct\u003e","offset":1792}
)
)
)
(
{"_enclosedMethodName":"주문등록","_enclosedMethodArgTypes":["shop.minostreet.shoppingmall.dto.orderproduct.OrderReqDto.SaveReqDTO","shop.minostreet.shoppingmall.domain.User"],"_classDescription":{"_className":"shop.minostreet.shoppingmall.service.OrderService","_attributes":["public"],"supers":[]},"_methodName":"orderProduct -\u003e","_attributes":[],"_argNames":["orderProduct"],"_argTypes":["shop.minostreet.shoppingmall.domain.OrderProduct"],"_returnType":"java.util.function.ToIntFunction\u003cshop.minostreet.shoppingmall.domain.OrderProduct\u003e","offset":1863}
)
(
{"_classDescription":{"_className":"shop.minostreet.shoppingmall.domain.OrderSheet","_attributes":["public"],"supers":[]},"_methodName":"builder","_attributes":["public","static"],"_argNames":[],"_argTypes":[],"_returnType":"shop.minostreet.shoppingmall.domain.OrderSheet.OrderSheetBuilder","offset":1961}
)
(
{"_classDescription":{"_className":"shop.minostreet.shoppingmall.domain.OrderSheet.OrderSheetBuilder","_attributes":["public","static"],"supers":[]},"_methodName":"user","_attributes":["public"],"_argNames":["user"],"_argTypes":["shop.minostreet.shoppingmall.domain.User"],"_returnType":"shop.minostreet.shoppingmall.domain.OrderSheet.OrderSheetBuilder","offset":1971}
)
(
{"_classDescription":{"_className":"shop.minostreet.shoppingmall.domain.OrderSheet.OrderSheetBuilder","_attributes":["public","static"],"supers":[]},"_methodName":"totalPrice","_attributes":["public"],"_argNames":["totalPrice"],"_argTypes":["java.lang.Integer"],"_returnType":"shop.minostreet.shoppingmall.domain.OrderSheet.OrderSheetBuilder","offset":1984}
)
(
{"_classDescription":{"_className":"shop.minostreet.shoppingmall.domain.OrderSheet.OrderSheetBuilder","_attributes":["public","static"],"supers":[]},"_methodName":"build","_attributes":["public"],"_argNames":[],"_argTypes":[],"_returnType":"shop.minostreet.shoppingmall.domain.OrderSheet","offset":2007}
)
(
{"_enclosedMethodName":"주문등록","_enclosedMethodArgTypes":["shop.minostreet.shoppingmall.dto.orderproduct.OrderReqDto.SaveReqDTO","shop.minostreet.shoppingmall.domain.User"],"_classDescription":{"_className":"shop.minostreet.shoppingmall.service.OrderService","_attributes":["public"],"supers":[]},"_methodName":"orderProductPS -\u003e","_attributes":[],"_argNames":["orderProductPS"],"_argTypes":["shop.minostreet.shoppingmall.domain.OrderProduct"],"_returnType":"java.util.function.Consumer\u003cshop.minostreet.shoppingmall.domain.OrderProduct\u003e","offset":2186}
(
{"_classDescription":{"_className":"shop.minostreet.shoppingmall.domain.Product","_attributes":["public"],"supers":[]},"_methodName":"updateQty","_attributes":["public"],"_argNames":["orderCount"],"_argTypes":["java.lang.Integer"],"_returnType":"void","offset":2246}
(
{"_classDescription":{"_className":"shop.minostreet.shoppingmall.handler.exception.MyApiException","_attributes":["public"],"supers":["java.lang.RuntimeException","java.lang.Exception","java.lang.Throwable","java.io.Serializable"]},"_methodName":"new","_attributes":["public"],"_argNames":["message"],"_argTypes":["java.lang.String"],"_returnType":"shop.minostreet.shoppingmall.handler.exception.MyApiException","offset":1649}
)
)
)
(
{"_classDescription":{"_className":"shop.minostreet.shoppingmall.dto.orderproduct.OrderRespDto.SaveRespDTO","_attributes":["public","static"],"supers":[]},"_methodName":"new","_attributes":["public"],"_argNames":["orderProductListPS","orderSheetPS"],"_argTypes":["java.util.List\u003cshop.minostreet.shoppingmall.domain.OrderProduct\u003e","shop.minostreet.shoppingmall.domain.OrderSheet"],"_returnType":"shop.minostreet.shoppingmall.dto.orderproduct.OrderRespDto.SaveRespDTO","offset":2425}
(
{"_classDescription":{"_className":"shop.minostreet.shoppingmall.dto.orderproduct.OrderRespDto.SaveRespDTO.OrderDto","_attributes":["public","static"],"supers":[]},"_methodName":"new","_attributes":["public"],"_argNames":["orderProduct"],"_argTypes":["shop.minostreet.shoppingmall.domain.OrderProduct"],"_returnType":"shop.minostreet.shoppingmall.dto.orderproduct.OrderRespDto.SaveRespDTO.OrderDto","offset":1837}
)
(
{"_classDescription":{"_className":"shop.minostreet.shoppingmall.util.MyDateUtil","_attributes":["public"],"supers":[]},"_methodName":"toStringFormat","_attributes":["public","static"],"_argNames":["localDateTime"],"_argTypes":["java.time.LocalDateTime"],"_returnType":"java.lang.String","offset":2036}
)
)
)
(
{"_classDescription":{"_className":"shop.minostreet.shoppingmall.dto.ResponseDto","_attributes":["public"],"supers":[]},"_methodName":"new","_attributes":["public"],"_argNames":["code","msg","data"],"_argTypes":["java.lang.Integer","java.lang.String","T"],"_returnType":"shop.minostreet.shoppingmall.dto.ResponseDto","offset":2909}
)
)
45 changes: 45 additions & 0 deletions ProductController_registerProduct.sdt
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
(
{"_classDescription":{"_className":"shop.minostreet.shoppingmall.controller.ProductController","_attributes":["public"],"supers":[]},"_methodName":"registerProduct","_attributes":["public"],"_argNames":["productRegisterReqDto","errors","loginUser"],"_argTypes":["shop.minostreet.shoppingmall.dto.product.ProductReqDto.ProductRegisterReqDto","org.springframework.validation.Errors","shop.minostreet.shoppingmall.config.auth.LoginUser"],"_returnType":"org.springframework.http.ResponseEntity\u003c?\u003e","offset":2636}
(
{"_enclosedMethodName":"registerProduct","_enclosedMethodArgTypes":["shop.minostreet.shoppingmall.dto.product.ProductReqDto.ProductRegisterReqDto","org.springframework.validation.Errors","shop.minostreet.shoppingmall.config.auth.LoginUser"],"_classDescription":{"_className":"shop.minostreet.shoppingmall.controller.ProductController","_attributes":["public"],"supers":[]},"_methodName":"() -\u003e","_attributes":[],"_argNames":[],"_argTypes":[],"_returnType":"java.util.function.Supplier\u003cshop.minostreet.shoppingmall.handler.exception.MyApiException\u003e","offset":2945}
(
{"_classDescription":{"_className":"shop.minostreet.shoppingmall.handler.exception.MyApiException","_attributes":["public"],"supers":["java.lang.RuntimeException","java.lang.Exception","java.lang.Throwable","java.io.Serializable"]},"_methodName":"new","_attributes":["public"],"_argNames":["message"],"_argTypes":["java.lang.String"],"_returnType":"shop.minostreet.shoppingmall.handler.exception.MyApiException","offset":2951}
)
)
(
{"_classDescription":{"_className":"shop.minostreet.shoppingmall.service.ProductService","_attributes":["public"],"supers":[]},"_methodName":"상품등록","_attributes":["public"],"_argNames":["productRegisterReqDto","sellerPS"],"_argTypes":["shop.minostreet.shoppingmall.dto.product.ProductReqDto.ProductRegisterReqDto","shop.minostreet.shoppingmall.domain.User"],"_returnType":"shop.minostreet.shoppingmall.dto.product.ProductRespDto.ProductRegisterRespDto","offset":3078}
(
{"_classDescription":{"_className":"shop.minostreet.shoppingmall.repository.ProductRepository","_attributes":["public","abstract","interface"],"supers":["org.springframework.data.jpa.repository.JpaRepository","org.springframework.data.repository.PagingAndSortingRepository","org.springframework.data.repository.CrudRepository","org.springframework.data.repository.Repository","org.springframework.data.repository.query.QueryByExampleExecutor"]},"_methodName":"findByName","_attributes":["public","abstract","interface"],"_argNames":["name"],"_argTypes":["java.lang.String"],"_returnType":"java.util.Optional\u003cshop.minostreet.shoppingmall.domain.Product\u003e","offset":1949}
)
(
{"_classDescription":{"_className":"shop.minostreet.shoppingmall.handler.exception.MyApiException","_attributes":["public"],"supers":["java.lang.RuntimeException","java.lang.Exception","java.lang.Throwable","java.io.Serializable"]},"_methodName":"new","_attributes":["public"],"_argNames":["message"],"_argTypes":["java.lang.String"],"_returnType":"shop.minostreet.shoppingmall.handler.exception.MyApiException","offset":2082}
)
(
{"_classDescription":{"_className":"shop.minostreet.shoppingmall.dto.product.ProductReqDto.ProductRegisterReqDto","_attributes":["public","static"],"supers":[]},"_methodName":"toEntity","_attributes":["public"],"_argNames":["user"],"_argTypes":["shop.minostreet.shoppingmall.domain.User"],"_returnType":"shop.minostreet.shoppingmall.domain.Product","offset":2226}
(
{"_classDescription":{"_className":"shop.minostreet.shoppingmall.domain.Product","_attributes":["public"],"supers":[]},"_methodName":"builder","_attributes":["public","static"],"_argNames":[],"_argTypes":[],"_returnType":"shop.minostreet.shoppingmall.domain.Product.ProductBuilder","offset":1163}
)
(
{"_classDescription":{"_className":"shop.minostreet.shoppingmall.domain.Product.ProductBuilder","_attributes":["public","static"],"supers":[]},"_methodName":"seller","_attributes":["public"],"_argNames":["seller"],"_argTypes":["shop.minostreet.shoppingmall.domain.User"],"_returnType":"shop.minostreet.shoppingmall.domain.Product.ProductBuilder","offset":1194}
)
(
{"_classDescription":{"_className":"shop.minostreet.shoppingmall.domain.Product.ProductBuilder","_attributes":["public","static"],"supers":[]},"_methodName":"name","_attributes":["public"],"_argNames":["name"],"_argTypes":["java.lang.String"],"_returnType":"shop.minostreet.shoppingmall.domain.Product.ProductBuilder","offset":1228}
)
(
{"_classDescription":{"_className":"shop.minostreet.shoppingmall.domain.Product.ProductBuilder","_attributes":["public","static"],"supers":[]},"_methodName":"price","_attributes":["public"],"_argNames":["price"],"_argTypes":["java.lang.Integer"],"_returnType":"shop.minostreet.shoppingmall.domain.Product.ProductBuilder","offset":1260}
)
(
{"_classDescription":{"_className":"shop.minostreet.shoppingmall.domain.Product.ProductBuilder","_attributes":["public","static"],"supers":[]},"_methodName":"qty","_attributes":["public"],"_argNames":["qty"],"_argTypes":["java.lang.Integer"],"_returnType":"shop.minostreet.shoppingmall.domain.Product.ProductBuilder","offset":1294}
)
(
{"_classDescription":{"_className":"shop.minostreet.shoppingmall.domain.Product.ProductBuilder","_attributes":["public","static"],"supers":[]},"_methodName":"build","_attributes":["public"],"_argNames":[],"_argTypes":[],"_returnType":"shop.minostreet.shoppingmall.domain.Product","offset":1324}
)
)
(
{"_classDescription":{"_className":"shop.minostreet.shoppingmall.dto.product.ProductRespDto.ProductRegisterRespDto","_attributes":["public","static"],"supers":[]},"_methodName":"new","_attributes":["public"],"_argNames":["product"],"_argTypes":["shop.minostreet.shoppingmall.domain.Product"],"_returnType":"shop.minostreet.shoppingmall.dto.product.ProductRespDto.ProductRegisterRespDto","offset":2279}
)
)
(
{"_classDescription":{"_className":"shop.minostreet.shoppingmall.dto.ResponseDto","_attributes":["public"],"supers":[]},"_methodName":"new","_attributes":["public"],"_argNames":["code","msg","data"],"_argTypes":["java.lang.Integer","java.lang.String","T"],"_returnType":"shop.minostreet.shoppingmall.dto.ResponseDto","offset":3207}
)
)
Loading