-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* detailPopup CSS * detailPopup 내부 tag, gathring 버튼 CSS * 장소등록 버튼 추가 및 카테고리별 장소 등록 구현 * 페이지 이동 경로 수정 * 카테고리 등록으로 이동하는 버튼 추가, 상세-태그 버튼 페이지 이동 수정 * map 도메인 삭제 + homeMap.html->categoryMap.html로 이름 변경 + Map.html에 불필요한 주석 제거 * 검색 화면에 뒤로가기 버튼 생성 및 검색 리스트 크기 늘리기 및 내 위치 찾기 버튼 위치 수정 * 내 위치 찾기 버튼 위치 수정 + 검색 페이지 뒤로 가기 버튼 생성 + css 색깔 수정 Co-authored-by: Aruming <[email protected]>
- Loading branch information
Showing
5 changed files
with
94 additions
and
767 deletions.
There are no files selected for viewing
58 changes: 58 additions & 0 deletions
58
your-anmok/src/main/java/com/lion/youranmok/map/controller/MapController.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
package com.lion.youranmok.map.controller; | ||
|
||
import com.lion.youranmok.category.dto.CategoryDto; | ||
import com.lion.youranmok.category.service.CategoryService; | ||
//import com.lion.youranmok.map.dto.MapDto; | ||
//import com.lion.youranmok.map.service.MapService; | ||
import com.lion.youranmok.security.dto.MemberContext; | ||
import lombok.RequiredArgsConstructor; | ||
import org.springframework.security.core.annotation.AuthenticationPrincipal; | ||
import org.springframework.stereotype.Controller; | ||
import org.springframework.ui.Model; | ||
import org.springframework.web.bind.annotation.*; | ||
|
||
import java.util.List; | ||
|
||
@RequestMapping("/map") | ||
@Controller | ||
@RequiredArgsConstructor | ||
public class MapController { | ||
// private final MapService mapService; | ||
private final CategoryService categoryService; | ||
|
||
// @GetMapping("/addPlace/{place_name}/{address_name}") | ||
// public String addPlace(@PathVariable String place_name, @PathVariable String address_name){ | ||
// | ||
// mapService.add(place_name,address_name); | ||
// | ||
// return "redirect:/"; | ||
// | ||
// } | ||
|
||
// @GetMapping("/mapSearch") | ||
// public String searchMap(){ | ||
// | ||
// } | ||
|
||
// @GetMapping("/searchMap") | ||
// public String searchPlace(@AuthenticationPrincipal MemberContext member, @RequestParam("placeKeyword") String placeKeyword, Model model){ | ||
// List<CategoryDto> categoryList = categoryService.findAll(); | ||
// model.addAttribute("placeKeyword",placeKeyword); | ||
// model.addAttribute("categoryList",categoryList); | ||
// return "map/searchMap"; | ||
// } | ||
|
||
// @GetMapping("/category") | ||
// public String categoryDisplay(@RequestParam("id") int id, Model model){ | ||
// | ||
// List<MapDto> categoryPlaceList = mapService.getCateogryPlaceList(id); | ||
// for (MapDto mapDto : categoryPlaceList){ | ||
// System.out.println(mapDto.getName()); | ||
// } | ||
// model.addAttribute("categoryPlaceList",categoryPlaceList); | ||
// | ||
// return "map/categoryMap"; | ||
// } | ||
// localhost:8080/category?id=14 | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.