Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
3893 chandransh 1
namespace java in.shop2020.content
2
namespace py shop2020.thriftpy.content
3
 
4
include "GenericService.thrift"
5
 
3896 chandransh 6
exception ContentServiceException{
7
	1:i64 id,
8
	2:string message
9
}
10
 
19686 kshitij.so 11
struct BulkContentUpload{
12
	1:i64 new_entity_id,
13
	2:i64 category_id,
14
	3:string compatibility,
15
	4:i32 battery_type,
16
	5:string battery_capacity,
17
	6:string summary,
18
	7:i64 existing_entity_id,
19
	8:string brand,
20
	9:string model_name,
21
	10:string model_number
22
}
23
 
24
struct BulkContentUploadResult{
25
	1:i64 entity_id,
26
	2:string message
27
}
28
 
3893 chandransh 29
service ContentService extends GenericService.GenericService {
3896 chandransh 30
	/**
31
	Push the content of the given entity to production
32
	*/
19686 kshitij.so 33
	bool pushContentToProduction(1:i64 entityId) throws (1:ContentServiceException cse)
34
 
35
	list<BulkContentUploadResult> uploadContent(1:list<BulkContentUpload> bulkUploadContentList)
36
 
3893 chandransh 37
}