Subversion Repositories SmartDukaan

Rev

Rev 3339 | Rev 3379 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3339 Rev 3374
Line 1... Line 1...
1
namespace java in.shop2020.model.v1.user
1
namespace java in.shop2020.model.v1.user
2
namespace py shop2020.thriftpy.model.v1.user
2
namespace py shop2020.thriftpy.model.v1.user
3
 
3
 
-
 
4
include "GenericService.thrift"
-
 
5
 
4
/**
6
/**
5
Exceptions
7
Exceptions
6
*/
8
*/
7
exception AuthenticationException{
9
exception AuthenticationException{
8
	1:string message,
10
	1:string message,
Line 314... Line 316...
314
}
316
}
315
 
317
 
316
/**
318
/**
317
Promotion Service
319
Promotion Service
318
*/
320
*/
319
service PromotionService{
321
service PromotionService extends GenericService.GenericService{
320
	/**
322
	/**
321
	* For closing the open session in sqlalchemy
323
	* For closing the open session in sqlalchemy
322
	*/
324
	*/
323
	void closeSession(),
325
	void closeSession(),
324
	
326
	
Line 332... Line 334...
332
}
334
}
333
 
335
 
334
/**
336
/**
335
service
337
service
336
*/
338
*/
337
service UserContextService{
339
service UserContextService extends GenericService.GenericService{
338
	/**
-
 
339
	* For closing the open session in sqlalchemy
-
 
340
	*/
-
 
341
	void closeSession(),
-
 
342
	
340
	
343
	User createAnonymousUser(1:string jsessionId) throws (1:UserContextException ucex),
341
	User createAnonymousUser(1:string jsessionId) throws (1:UserContextException ucex),
344
	User getUserById(1:i64 userId) throws (1:UserContextException ucex),
342
	User getUserById(1:i64 userId) throws (1:UserContextException ucex),
345
	User getUserByEmail(1:string email) throws (1:UserContextException ucex),
343
	User getUserByEmail(1:string email) throws (1:UserContextException ucex),
346
    User getUserByMobileNumber(1:i64 mobileNumber) throws (1:UserContextException ucex),
344
    User getUserByMobileNumber(1:i64 mobileNumber) throws (1:UserContextException ucex),