Subversion Repositories SmartDukaan

Rev

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

Rev 3103 Rev 3374
Line 1... Line 1...
1
namespace java in.shop2020.logistics
1
namespace java in.shop2020.logistics
2
namespace py shop2020.thriftpy.logistics
2
namespace py shop2020.thriftpy.logistics
3
 
3
 
-
 
4
include "GenericService.thrift"
-
 
5
 
4
enum StationType{
6
enum StationType{
5
	OWN_STATION = 0,		//The service provider's own station.
7
	OWN_STATION = 0,		//The service provider's own station.
6
	ASSOCIATE_STATION = 1	//An associate's station
8
	ASSOCIATE_STATION = 1	//An associate's station
7
}
9
}
8
 
10
 
Line 47... Line 49...
47
exception LogisticsServiceException{
49
exception LogisticsServiceException{
48
	1:i64 id,
50
	1:i64 id,
49
	2:string message
51
	2:string message
50
}
52
}
51
 
53
 
52
service LogisticsService{
54
service LogisticsService extends GenericService.GenericService{
53
	/**
-
 
54
	* For closing the open session in sqlalchemy
-
 
55
	*/
-
 
56
	void closeSession(),
-
 
57
	
-
 
58
	/**
55
	/**
59
	 Returns a provider for a given provider ID. Throws an exception if none found.
56
	 Returns a provider for a given provider ID. Throws an exception if none found.
60
	*/
57
	*/
61
	Provider getProvider(1:i64 providerId) throws (1:LogisticsServiceException lse),
58
	Provider getProvider(1:i64 providerId) throws (1:LogisticsServiceException lse),
62
	
59