Subversion Repositories SmartDukaan

Rev

Rev 28323 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
28323 amit.gupta 1
package com.spice.profitmandi.web.services;
2
 
3
import java.util.HashMap;
4
 
5
import org.springframework.beans.factory.annotation.Autowired;
6
import org.springframework.beans.factory.annotation.Value;
28329 amit.gupta 7
import org.springframework.cache.annotation.Cacheable;
28323 amit.gupta 8
import org.springframework.stereotype.Component;
9
 
10
import com.spice.profitmandi.common.web.client.RestClient;
11
 
12
@Component
13
public class PartnerIndexService {
14
	@Autowired 
15
	RestClient restClient;
16
 
17
	@Value("${store.app.url}")
18
	String storeAppUrl;
19
 
28329 amit.gupta 20
	@Cacheable(value = "partnerPage", cacheManager = "oneDayCacheManager")
28323 amit.gupta 21
	public String getPartnerIndexHtml() throws Exception {
22
		return restClient.get(storeAppUrl, new HashMap<String, String> (), new HashMap<String, String> ());
23
	}
24
}