Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
21934 amit.gupta 1
package in.shop2020.serving.controllers;
2
 
3
import in.shop2020.model.v1.user.Counter;
4
import in.shop2020.thrift.clients.UserClient;
5
 
6
import com.google.gson.Gson;
7
 
8
public class VerifyDocController extends BaseController {
9
 
10
	String gstIn;
11
	long userId;
12
	private String response;
13
 
14
 
15
	public String index() throws Exception {
16
		UserClient userServiceClient = new UserClient();
17
        in.shop2020.model.v1.user.UserContextService.Client userClient = userServiceClient.getClient();
18
        Counter counter = new Counter();
19
        counter.setGstIn(gstIn);
20
        this.response = new Gson().toJson(userClient.registerCounter(counter, userId));
21
        return "index";
22
	}
23
 
24
 
25
	public String getResponse() {
26
		return response;
27
	}
28
 
29
	public String getGstIn() {
30
		return gstIn;
31
	}
32
 
33
	public void setGstIn(String gstIn) {
34
		this.gstIn = gstIn;
35
	}
36
 
37
 
38
 
39
	public long getUserId() {
40
		return userId;
41
	}
42
 
43
 
44
	public void setUserId(long userId) {
45
		this.userId = userId;
46
	}
47
 
48
 
49
 
50
 
51
 
52
 
53
}