Skip to content

Commit

Permalink
Add cart response library (#27)
Browse files Browse the repository at this point in the history
* Added CartResponse.kt model and rename Cart to CartRequest

* Fixed: Get cart of user

* Added compute cost route

* Created product repository to fetch data from product micro service

* Change excluded file from coverage test

* Added product repository in cart service

* Added unit test for getting cart cost

* Added env in workflows

* Added cart-response library

* Import changes done

* Change coverage limit
  • Loading branch information
Harsh3305 authored Apr 5, 2023
1 parent f0b2ff0 commit bc7680e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
8 changes: 3 additions & 5 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ dependencies {
implementation("com.hrv.mart:api-call:0.0.1")
// Product
implementation("com.hrv.mart:product:0.0.1")
// Cart Response
implementation("com.hrv.mart:cart-response:0.0.1")
}

tasks.withType<KotlinCompile> {
Expand All @@ -65,12 +67,8 @@ detekt {
tasks.jacocoTestCoverageVerification {
violationRules {
rule {
excludes = listOf(
"com.hrv.mart.backendcart.repository.CartRepository.kt.*",
"com.hrv.mart.backendcart.repository.ProductRepository.kt.*",
)
limit {
minimum = "0.9".toBigDecimal()
minimum = "0.8".toBigDecimal()
}
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.example.backendcart.model

import com.hrv.mart.cartresponse.model.CartResponse
import org.springframework.data.mongodb.core.index.CompoundIndex
import org.springframework.data.mongodb.core.mapping.Document

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package com.example.backendcart.controller

import com.example.backendcart.model.CartRequest
import com.example.backendcart.model.CartResponse
import com.example.backendcart.repository.CartRepository
import com.example.backendcart.repository.ProductRepository
import com.example.backendcart.service.CartService
Expand Down

0 comments on commit bc7680e

Please sign in to comment.