| Line 7... |
Line 7... |
| 7 |
import org.springframework.beans.factory.annotation.Autowired;
|
7 |
import org.springframework.beans.factory.annotation.Autowired;
|
| 8 |
import org.springframework.http.MediaType;
|
8 |
import org.springframework.http.MediaType;
|
| 9 |
import org.springframework.http.ResponseEntity;
|
9 |
import org.springframework.http.ResponseEntity;
|
| 10 |
import org.springframework.mail.javamail.JavaMailSender;
|
10 |
import org.springframework.mail.javamail.JavaMailSender;
|
| 11 |
import org.springframework.mail.javamail.MimeMessageHelper;
|
11 |
import org.springframework.mail.javamail.MimeMessageHelper;
|
| - |
|
12 |
import org.springframework.stereotype.Controller;
|
| - |
|
13 |
import org.springframework.transaction.annotation.Transactional;
|
| 12 |
import org.springframework.web.bind.annotation.RequestBody;
|
14 |
import org.springframework.web.bind.annotation.RequestBody;
|
| 13 |
import org.springframework.web.bind.annotation.RequestMapping;
|
15 |
import org.springframework.web.bind.annotation.RequestMapping;
|
| 14 |
import org.springframework.web.bind.annotation.RequestMethod;
|
16 |
import org.springframework.web.bind.annotation.RequestMethod;
|
| 15 |
|
17 |
|
| 16 |
import com.spice.profitmandi.common.model.UserInfo;
|
18 |
import com.spice.profitmandi.common.model.UserInfo;
|
| 17 |
import com.spice.profitmandi.common.web.util.ResponseSender;
|
19 |
import com.spice.profitmandi.common.web.util.ResponseSender;
|
| 18 |
import com.spice.profitmandi.dao.entity.dtr.User;
|
20 |
import com.spice.profitmandi.dao.entity.dtr.User;
|
| 19 |
import com.spice.profitmandi.dao.model.UserCart;
|
- |
|
| 20 |
import com.spice.profitmandi.dao.repository.dtr.UserAccountRepository;
|
21 |
import com.spice.profitmandi.dao.repository.dtr.UserAccountRepository;
|
| 21 |
import com.spice.profitmandi.dao.repository.dtr.UserRepository;
|
22 |
import com.spice.profitmandi.dao.repository.dtr.UserRepository;
|
| 22 |
import com.spice.profitmandi.web.req.FeedbackRequest;
|
23 |
import com.spice.profitmandi.web.req.FeedbackRequest;
|
| 23 |
|
24 |
|
| 24 |
import io.swagger.annotations.ApiImplicitParam;
|
25 |
import io.swagger.annotations.ApiImplicitParam;
|
| 25 |
import io.swagger.annotations.ApiImplicitParams;
|
26 |
import io.swagger.annotations.ApiImplicitParams;
|
| 26 |
|
27 |
|
| - |
|
28 |
@Controller
|
| - |
|
29 |
@Transactional(rollbackFor=Throwable.class)
|
| 27 |
public class ContactUsController {
|
30 |
public class ContactUsController {
|
| 28 |
|
31 |
|
| 29 |
@Autowired
|
32 |
@Autowired
|
| 30 |
JavaMailSender mailSender;
|
33 |
JavaMailSender mailSender;
|
| 31 |
|
34 |
|