| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- package com.style24.front.biz.web;
- import org.springframework.beans.factory.annotation.Autowired;
- import org.springframework.stereotype.Controller;
- import org.springframework.web.bind.annotation.GetMapping;
- import org.springframework.web.bind.annotation.RequestMapping;
- import org.springframework.web.servlet.ModelAndView;
- import com.style24.front.biz.service.TsfSocialService;
- import com.style24.front.support.controller.TsfBaseController;
- import com.style24.front.support.security.session.TsfSession;
- import com.style24.persistence.domain.Social;
- import lombok.extern.slf4j.Slf4j;
- /**
- * 소셜(핫딜) Controller
- *
- * @author sowon
- * @since 2021. 3. 11
- */
- @Controller
- @RequestMapping("/social")
- @Slf4j
- public class TsfSocialController extends TsfBaseController {
-
- @Autowired
- private TsfSocialService socialService;
- /**
- * 소셜(핫딜) 메인 화면
- *
- * @return
- * @author sowon
- * @since 2021. 3. 11
- */
- @GetMapping("/main/form")
- public ModelAndView socialMainForm(Social social) throws Exception {
- ModelAndView mav = new ModelAndView();
-
- // 디바이스 set
- social.setFrontGb(TsfSession.getFrontGb());
- social.setCustGb(TsfSession.getCustGb());
-
- // 소셜(핫딜)
- mav.addObject("socialInfo", socialService.getSocialInfo(social));
-
- // 소셜(핫딜)-상품목록
- mav.addObject("socialGoods", socialService.getSocialGoodsList(social));
-
- mav.setViewName(super.getDeviceViewName("social/SocialMainForm"));
- return mav;
- }
-
- }
|