-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(http-mock-gen): methods should in serverName, to fix generater error
- Loading branch information
1 parent
727c2ab
commit 6633b8a
Showing
2 changed files
with
46 additions
and
1 deletion.
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
44 changes: 44 additions & 0 deletions
44
packages/grpc-mock/test/proto-servers/server2/activity2-new.proto
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 |
---|---|---|
@@ -0,0 +1,44 @@ | ||
syntax = "proto3"; | ||
|
||
package activity_package_new; | ||
|
||
|
||
// 活动服务 | ||
service ActivityService2 { | ||
// 新增活动 | ||
rpc Create(CreateActivityRequest2New) returns (CreateActivityResponse2New); | ||
} | ||
|
||
message CreateActivityRequest2New { | ||
// 活动Id | ||
string activityId = 1; | ||
} | ||
|
||
message CreateActivityResponse2New { | ||
// 活动名称 | ||
string activityName = 1; | ||
// key:活动ID, value: 资源提供方(0:配置 1:分销通:中介门店 2:分销通项目地址) | ||
// @required | ||
map<string,ResourceProviders> activityResourceProviders = 2; | ||
|
||
// 微信订阅通知模板列表 | ||
// { | ||
// "a-id": "模板a", | ||
// "b-id": "模板b", | ||
// } | ||
// @required | ||
map<string,string> templates = 3; | ||
// @required | ||
map<int32,string> intKeyTemplates = 4; | ||
// number类型 | ||
int32 count = 5; | ||
// string 转 number类型 | ||
int64 longCount = 6; | ||
// bool类型 | ||
bool isGood = 7; | ||
} | ||
|
||
message ResourceProviders{ | ||
// @required | ||
repeated int32 resourceProviders = 1; | ||
} |