| Line 30... |
Line 30... |
| 30 |
import org.springframework.web.bind.annotation.RequestMapping;
|
30 |
import org.springframework.web.bind.annotation.RequestMapping;
|
| 31 |
import org.springframework.web.bind.annotation.RequestMethod;
|
31 |
import org.springframework.web.bind.annotation.RequestMethod;
|
| 32 |
import org.springframework.web.bind.annotation.RequestParam;
|
32 |
import org.springframework.web.bind.annotation.RequestParam;
|
| 33 |
|
33 |
|
| 34 |
import com.fasterxml.jackson.annotation.JsonProperty;
|
34 |
import com.fasterxml.jackson.annotation.JsonProperty;
|
| - |
|
35 |
import com.fasterxml.jackson.databind.ObjectMapper;
|
| - |
|
36 |
import com.google.gson.Gson;
|
| 35 |
import com.spice.profitmandi.common.ResponseCodeHolder;
|
37 |
import com.spice.profitmandi.common.ResponseCodeHolder;
|
| 36 |
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
|
38 |
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
|
| 37 |
import com.spice.profitmandi.common.model.CustomRetailer;
|
39 |
import com.spice.profitmandi.common.model.CustomRetailer;
|
| 38 |
import com.spice.profitmandi.common.model.GoogleLoginRequest;
|
40 |
import com.spice.profitmandi.common.model.GoogleLoginRequest;
|
| 39 |
import com.spice.profitmandi.common.model.ProfitMandiConstants;
|
41 |
import com.spice.profitmandi.common.model.ProfitMandiConstants;
|
| Line 151... |
Line 153... |
| 151 |
@Autowired
|
153 |
@Autowired
|
| 152 |
private RoleRepository roleRepository;
|
154 |
private RoleRepository roleRepository;
|
| 153 |
|
155 |
|
| 154 |
@Autowired
|
156 |
@Autowired
|
| 155 |
private AuthRepository authRepository;
|
157 |
private AuthRepository authRepository;
|
| - |
|
158 |
|
| - |
|
159 |
@Autowired
|
| - |
|
160 |
private ObjectMapper objectMapper;
|
| - |
|
161 |
|
| 156 |
|
162 |
|
| 157 |
@Autowired
|
163 |
@Autowired
|
| 158 |
private RetailerService retailerService;
|
164 |
private RetailerService retailerService;
|
| 159 |
|
165 |
|
| 160 |
@Autowired
|
166 |
@Autowired
|
| 161 |
private RefferalRepository refferalRepository;
|
167 |
private RefferalRepository refferalRepository;
|
| Line 514... |
Line 520... |
| 514 |
List<MobileAppSettingsWrapper> mobileSettingsWrappersList = mobileAppSettings.stream()
|
520 |
List<MobileAppSettingsWrapper> mobileSettingsWrappersList = mobileAppSettings.stream()
|
| 515 |
.map(x -> new MobileAppSettingsWrapper(x)).collect(Collectors.toList());
|
521 |
.map(x -> new MobileAppSettingsWrapper(x)).collect(Collectors.toList());
|
| 516 |
SettingsWrapper wrapper = new SettingsWrapper(mobileSettingsWrappersList);
|
522 |
SettingsWrapper wrapper = new SettingsWrapper(mobileSettingsWrappersList);
|
| 517 |
|
523 |
|
| 518 |
LOGGER.info("Wrapper {}", wrapper);
|
524 |
LOGGER.info("Wrapper {}", wrapper);
|
| 519 |
return responseSender.ok(wrapper);
|
525 |
return responseSender.ok(objectMapper.writeValueAsString(wrapper));
|
| 520 |
}
|
526 |
}
|
| 521 |
|
527 |
|
| 522 |
@RequestMapping(value = "/getPartners", method = RequestMethod.GET)
|
528 |
@RequestMapping(value = "/getPartners", method = RequestMethod.GET)
|
| 523 |
@ApiImplicitParams({
|
529 |
@ApiImplicitParams({
|
| 524 |
@ApiImplicitParam(name = "Auth-Token", value = "Auth-Token", required = true, dataType = "string", paramType = "header") })
|
530 |
@ApiImplicitParam(name = "Auth-Token", value = "Auth-Token", required = true, dataType = "string", paramType = "header") })
|