-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b9e884c
commit 62e70c4
Showing
15 changed files
with
1,984 additions
and
563 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,41 @@ | ||
syntax = "proto3"; | ||
|
||
import public "google/protobuf/timestamp.proto"; | ||
|
||
package protocol.payment.deduction.v1; | ||
|
||
// The greeting service definition. | ||
service DeductionAdminApi { | ||
rpc GetDeductionList(DeductionAdminReq) returns (DeductionAdminResp) {} | ||
rpc AdminOp(DeductionAdminReq) returns (DeductionAdminResp) {} | ||
// 获取扣费服务列表 | ||
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; | ||
uint32 detail_id = 6; | ||
google.protobuf.Timestamp start_time = 6; | ||
} | ||
|
||
message DeductionAdminResp { | ||
message DeductionResp { | ||
bool success = 1; | ||
repeated DeductionStruct data = 2; | ||
string message = 3; | ||
uint32 code = 4; | ||
} | ||
|
||
message DeductionAdminReq { | ||
DeductionStruct data = 1; | ||
message DeductionReq { | ||
string title = 1; | ||
string desc = 2; | ||
uint32 pay_method_id = 3; | ||
uint32 id = 4; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.