Skip to content

Commit

Permalink
Поправить форматирование
Browse files Browse the repository at this point in the history
  • Loading branch information
Stepan5024 committed Jul 14, 2024
1 parent 4d3fe32 commit 08a4707
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/main/java/ru/practicum/shareit/ShareItApp.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
@SpringBootApplication
public class ShareItApp {

public static void main(String[] args) {
SpringApplication.run(ShareItApp.class, args);
}
public static void main(String[] args) {
SpringApplication.run(ShareItApp.class, args);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
* TODO Sprint add-bookings.
*/

@RestController
@RequestMapping(path = "/bookings")
public class BookingController {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@

public interface ItemStorage {
Item save(Item item);

Item findById(Long itemId);

List<Item> findByOwnerId(Long ownerId);

List<Item> search(String text);
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,12 @@

public interface ItemService {
ItemDto addItem(Long userId, ItemDto itemDto);

ItemDto updateItem(Long userId, Long itemId, ItemDto itemDto);

ItemDto getItem(Long itemId);

List<ItemDto> getItemsByOwner(Long userId);

List<ItemDto> searchItems(String text);
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,11 @@

public interface UserStorage {
User save(User user);

User findById(Long userId);

List<User> findAll();

void deleteById(Long userId);

boolean existsByEmail(String email);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,12 @@

public interface UserService {
UserDto addUser(UserDto userDto);

UserDto updateUser(Long userId, UserDto userDto);

UserDto getUser(Long userId);

List<UserDto> getAllUsers();

void deleteUser(Long userId);
}

0 comments on commit 08a4707

Please sign in to comment.