Skip to content

Commit f51a311

Browse files
committed
Full Stack Backend
1 parent 82a1e62 commit f51a311

File tree

75 files changed

+3187
-36
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+3187
-36
lines changed

Part-9.SpringBoot-React-Projects/Project-1.SpringBoot-React-CRUD/fullstack/backendSwagger/src/main/java/com/urunov/controller/EmployeeController.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,4 @@ public ResponseEntity<Map<String, Boolean>> deleteEmployee(@PathVariable Long id
7474
response.put("delete", Boolean.TRUE);
7575
return ResponseEntity.ok(response);
7676
}
77-
78-
7977
}

Part-9.SpringBoot-React-Projects/Project-2.SpringBoot-React-ShoppingMall/fullstack/backend/src/main/java/com/urunov/configure/SwaggerConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public Docket postsApi() {
3939
private ApiInfo metaData() {
4040
return new ApiInfoBuilder()
4141
.title("Spring Boot REST API with Swagger")
42-
.description("\"Spring Boot REST API for Employee")
42+
.description("\"Shopping Mall")
4343
.version("1.0.0")
4444
.license("Apache License Version 2.0")
4545
.licenseUrl("https://www.apache.org/licenses/LICENSE-2.0\"")

Part-9.SpringBoot-React-Projects/Project-2.SpringBoot-React-ShoppingMall/fullstack/backend/src/main/java/com/urunov/controller/CatalogueController.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
* User: hamdamboy
2222
* Project: IntelliJ IDEA
2323
* Github: @urunov
24+
*
25+
* this part represents
2426
*/
2527

2628
@RestController
@@ -49,7 +51,7 @@ public PagedResponse<GoodResponseForRetailer> getCatalogueOfGoods(
4951
}
5052

5153
@GetMapping("/getGoodById")
52-
public Good getGoodById(@RequestParam(value = "goodId"), String goodId){
54+
public Good getGoodById(@RequestParam(value = "goodId") String goodId){
5355
return goodsRepository.findGoodById(Long.valueOf(goodId));
5456
}
5557

Part-9.SpringBoot-React-Projects/Project-2.SpringBoot-React-ShoppingMall/fullstack/backend/src/main/java/com/urunov/model/User.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
* Github: @urunov
1919
*/
2020

21-
@Data
21+
2222
@Getter
2323
@Setter
2424
@AllArgsConstructor

Part-9.SpringBoot-React-Projects/Project-2.SpringBoot-React-ShoppingMall/fullstack/backend/src/main/java/com/urunov/payload/PagedResponse.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
*/
1414
@Data
1515
@NoArgsConstructor
16-
@AllArgsConstructor
1716
@Getter
1817
@Setter
1918
public class PagedResponse<T> {
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,32 @@
1-
package com.urunov.repository;
2-
3-
import com.urunov.model.Orders;
4-
import com.urunov.model.User;
5-
import com.urunov.model.enumdto.OrderStatus;
6-
import org.springframework.data.domain.Page;
7-
import org.springframework.data.domain.Pageable;
8-
import org.springframework.data.jpa.repository.JpaRepository;
9-
10-
import java.util.List;
11-
import java.util.Optional;
12-
13-
/**
14-
* Created by:
15-
* User: hamdamboy
16-
* Project: IntelliJ IDEA
17-
* Github: @urunov
18-
*/
19-
public interface OrderRepository extends JpaRepository<Orders, Long>
20-
{
21-
Optional<Orders> findFirstByStatusAndUser(OrderStatus status, User user);
22-
23-
List<Orders> findAllByStatusAndPaymentNumberIsNotNull(OrderStatus status);
24-
25-
List<Orders> findAllByStatusAndTaxiOrderIdIsNotNull(List<OrderStatus> status);
26-
27-
Page<Orders> findAllByUser(User user, Pageable pageable);
28-
29-
Page<Orders> findAllByUserAndStatusIn(User user, List<OrderStatus> statusList, Pageable pageable);
30-
}
1+
//package com.urunov.repository;
2+
//
3+
//import com.urunov.model.Orders;
4+
//import com.urunov.model.User;
5+
//import com.urunov.model.enumdto.OrderStatus;
6+
//import org.springframework.data.domain.Page;
7+
//import org.springframework.data.domain.Pageable;
8+
//import org.springframework.data.jpa.repository.JpaRepository;
9+
//import org.springframework.stereotype.Repository;
10+
//
11+
//import java.util.List;
12+
//import java.util.Optional;
13+
//
14+
///**
15+
// * Created by:
16+
// * User: hamdamboy
17+
// * Project: IntelliJ IDEA
18+
// * Github: @urunov
19+
// */
20+
//@Repository
21+
//public interface OrderRepository extends JpaRepository<Orders, Long>
22+
//{
23+
// Optional<Orders> findFirstByStatusAndUser(OrderStatus status, User user);
24+
//
25+
// List<Orders> findAllByStatusAndPaymentNumberIsNotNull(OrderStatus status);
26+
//
27+
// List<Orders> findAllByStatusAndTaxiOrderIdIsNotNull(List<OrderStatus> status);
28+
//
29+
// Page<Orders> findAllByUser(User user, Pageable pageable);
30+
//
31+
// Page<Orders> findAllByUserAndStatusIn(User user, List<OrderStatus> statusList, Pageable pageable);
32+
//}

0 commit comments

Comments
 (0)