Skip to content

Commit

Permalink
fix: fixed build
Browse files Browse the repository at this point in the history
  • Loading branch information
miguel-merlin committed Feb 27, 2024
1 parent 56de428 commit bbb74a0
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 11 deletions.
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ dependencies {
runtimeOnly 'com.h2database:h2'
annotationProcessor 'org.projectlombok:lombok'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
runtimeOnly 'org.postgresql:postgresql:42.2.23'
}

tasks.named('test') {
Expand Down
2 changes: 1 addition & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
@@ -1 +1 @@
rootProject.name = 'demo'
rootProject.name = 'Blueprint_Admin_Backend'
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import java.util.List;

@RestController
@RequestMapping("/api/v1/team")
@RequestMapping("/api/v1/team/")
public class TeamController {

@Autowired
Expand Down Expand Up @@ -41,13 +41,13 @@ public void deleteTeam(String teamId) {
teamService.deleteTeam(Long.parseLong(teamId));
}

@GetMapping
public User getTeamLeadById(@Param("teamId") String teamId) {
@GetMapping("teamLead/{teamId}")
public User getTeamLeadById(@PathVariable("teamId") String teamId) {
return teamService.getTeamLeadById(Long.parseLong(teamId));
}

@GetMapping
public User getProductManagerById(@Param("productId") String productId) {
return teamService.getProductManagerById(Long.parseLong(productId));
@GetMapping("productManager/{teamId}")
public User getProductManagerById(@PathVariable("teamId") String teamId) {
return teamService.getProductManagerById(Long.parseLong(teamId));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@ public void deleteUser(String customerId) {
userService.deleteUserById(Long.parseLong(customerId));
}

@PostMapping
public void enableUser(@Param("userId") String userId) {
@PostMapping("enable/{userId}")
public void enableUser(@PathVariable("userId") String userId) {
userService.enableUserById(Long.parseLong(userId));
}

@PostMapping
public void disableUser(@Param("userId") String userId) {
@PostMapping("disable/{userId}")
public void disableUser(@PathVariable("userId") String userId) {
userService.disableUserById(Long.parseLong(userId));
}
}
1 change: 1 addition & 0 deletions src/main/java/com/sitblueprint/admin/model/User.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import java.util.Set;

@Entity
@Table(name = "users")
@Data
@NoArgsConstructor
@AllArgsConstructor
Expand Down

0 comments on commit bbb74a0

Please sign in to comment.