-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeduction.proto
38 lines (34 loc) · 1001 Bytes
/
deduction.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
syntax = "proto3";
package protocol.payment.deduction.v1;
// The greeting service definition.
service DeductionAdminApi {
// 获取扣费服务列表
rpc GetDeductionList(DeductionReq) returns (DeductionResp) {}
// 获取已失效扣费服务列表
rpc GetExpiredDeductionList(DeductionReq) returns (DeductionResp) {}
// 开通扣费服务
rpc OpenDeduction(DeductionReq) returns (DeductionResp) {}
//关闭扣费服务
rpc CloseDeduction(DeductionReq) returns (DeductionResp) {}
// 新增扣费服务
rpc CreateDeduction(DeductionReq) returns (DeductionResp) {}
}
message DeductionStruct {
string title = 1;
string desc = 2;
uint32 status = 3;
uint32 id = 4;
uint32 pay_method_id = 5;
}
message DeductionResp {
bool success = 1;
repeated DeductionStruct data = 2;
string message = 3;
uint32 code = 4;
}
message DeductionReq {
string title = 1;
string desc = 2;
uint32 pay_method_id = 3;
uint32 id = 4;
}