| Line 1... |
Line 1... |
| 1 |
package com.spice.profitmandi.web.controller;
|
1 |
package com.spice.profitmandi.web.controller;
|
| 2 |
|
2 |
|
| 3 |
import java.time.LocalDateTime;
|
3 |
import java.time.LocalDateTime;
|
| 4 |
|
- |
|
| 5 |
import java.util.HashMap;
|
4 |
import java.util.HashMap;
|
| 6 |
import java.util.Map;
|
5 |
import java.util.Map;
|
| 7 |
import java.util.Set;
|
6 |
import java.util.Set;
|
| 8 |
import java.util.function.Predicate;
|
7 |
import java.util.function.Predicate;
|
| 9 |
|
8 |
|
| Line 25... |
Line 24... |
| 25 |
import com.spice.profitmandi.common.ResponseCodeHolder;
|
24 |
import com.spice.profitmandi.common.ResponseCodeHolder;
|
| 26 |
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
|
25 |
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
|
| 27 |
import com.spice.profitmandi.common.model.ProfitMandiConstants;
|
26 |
import com.spice.profitmandi.common.model.ProfitMandiConstants;
|
| 28 |
import com.spice.profitmandi.common.model.UserInfo;
|
27 |
import com.spice.profitmandi.common.model.UserInfo;
|
| 29 |
import com.spice.profitmandi.common.util.JWTUtil;
|
28 |
import com.spice.profitmandi.common.util.JWTUtil;
|
| 30 |
import com.spice.profitmandi.dao.entity.Permission;
|
29 |
import com.spice.profitmandi.dao.entity.dtr.Permission;
|
| 31 |
import com.spice.profitmandi.dao.entity.Retailer;
|
30 |
import com.spice.profitmandi.dao.entity.dtr.Retailer;
|
| 32 |
import com.spice.profitmandi.dao.entity.Role;
|
31 |
import com.spice.profitmandi.dao.entity.dtr.Role;
|
| 33 |
import com.spice.profitmandi.dao.entity.User;
|
32 |
import com.spice.profitmandi.dao.entity.dtr.User;
|
| 34 |
import com.spice.profitmandi.dao.entity.UserRole;
|
33 |
import com.spice.profitmandi.dao.entity.dtr.UserRole;
|
| 35 |
import com.spice.profitmandi.dao.enumuration.RoleType;
|
34 |
import com.spice.profitmandi.dao.enumuration.dtr.RoleType;
|
| 36 |
import com.spice.profitmandi.dao.model.UserCart;
|
35 |
import com.spice.profitmandi.dao.model.UserCart;
|
| 37 |
import com.spice.profitmandi.dao.repository.PermissionRepository;
|
36 |
import com.spice.profitmandi.dao.repository.dtr.PermissionRepository;
|
| 38 |
import com.spice.profitmandi.dao.repository.RetailerRepository;
|
37 |
import com.spice.profitmandi.dao.repository.dtr.RetailerRepository;
|
| 39 |
import com.spice.profitmandi.dao.repository.RoleRepository;
|
38 |
import com.spice.profitmandi.dao.repository.dtr.RoleRepository;
|
| 40 |
import com.spice.profitmandi.dao.repository.UserAccountRepository;
|
39 |
import com.spice.profitmandi.dao.repository.dtr.UserAccountRepository;
|
| 41 |
import com.spice.profitmandi.dao.repository.UserRepository;
|
40 |
import com.spice.profitmandi.dao.repository.dtr.UserRepository;
|
| 42 |
import com.spice.profitmandi.dao.repository.UserRoleRepository;
|
41 |
import com.spice.profitmandi.dao.repository.dtr.UserRoleRepository;
|
| 43 |
import com.spice.profitmandi.dao.util.UserToRetailerMigrationUtil;
|
42 |
import com.spice.profitmandi.dao.util.UserToRetailerMigrationUtil;
|
| 44 |
import com.spice.profitmandi.web.enumuration.UserStatus;
|
43 |
import com.spice.profitmandi.web.enumuration.UserStatus;
|
| 45 |
import com.spice.profitmandi.web.model.ProfitMandiResponse;
|
44 |
import com.spice.profitmandi.web.model.ProfitMandiResponse;
|
| 46 |
import com.spice.profitmandi.web.model.ResponseStatus;
|
45 |
import com.spice.profitmandi.web.model.ResponseStatus;
|
| 47 |
import com.spice.profitmandi.web.processor.GoogleLoginProcessor;
|
46 |
import com.spice.profitmandi.web.processor.GoogleLoginProcessor;
|