ampedxx-wechat-protocal 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b8e043e694acbb7dbfab5768ca691200bc828d98
4
- data.tar.gz: a3b939d81706a0d0ba765b776648e8573fdd75dd
3
+ metadata.gz: 97b2060ab5e183b785165d1b264014b19349c298
4
+ data.tar.gz: e6c23df9559ae9e468c536f7c3117ebf91f3b077
5
5
  SHA512:
6
- metadata.gz: 0f7d3e0551ced11a60a3dca3a27f01fccc5cbd61d508dd1bf8f53d679f2b7c1244d7a51fa9db07d3543891cce188c3da3112958b790709c0a21778e730cfa615
7
- data.tar.gz: cf7386d540698c3ca683747749cd4b3ccb10414e66308c79ce529053ffd43e778302b05a8dc9e90642c168e4529a824d6900f8fce4dfb274be9380d306d539f0
6
+ metadata.gz: c7b088e89030bb7f6d484eefc41be5bd4cd4df76c149c15270adf8a6f8aa73b1b789f29e6a716ea061b0b17bca7821e2d0d0e6b28ff6225f130dfb35e52a7491
7
+ data.tar.gz: 9ce2b31111ea91aeaf4bc1c92742b4897a3654a3d8d0f4af81b80554a8fd3335ddb06f9fa9da11d14dbb8efeb81a18ea73dce546ee705cd77d6c029dc0823a1c
@@ -0,0 +1,56 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: notification.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ Google::Protobuf::DescriptorPool.generated_pool.build do
7
+ add_message "atyun.AliSmsRequest" do
8
+ optional :access_key_secret, :string, 1
9
+ optional :access_key_id, :string, 2
10
+ optional :sign_name, :string, 3
11
+ optional :phone, :string, 4
12
+ optional :template_code, :string, 5
13
+ optional :content, :string, 6
14
+ end
15
+ add_message "atyun.AliSmsReply" do
16
+ optional :status, :message, 1, "atyun.NotificationStatus"
17
+ end
18
+ add_message "atyun.NotificationStatus" do
19
+ optional :code, :string, 1
20
+ optional :message, :string, 2
21
+ end
22
+ add_message "atyun.SendCloudEmailRequest" do
23
+ optional :to, :string, 1
24
+ optional :api_user, :string, 2
25
+ optional :api_key, :string, 3
26
+ optional :from, :string, 4
27
+ optional :from_name, :string, 5
28
+ optional :subject, :string, 6
29
+ optional :html, :string, 7
30
+ end
31
+ add_message "atyun.SendCloudEmailReply" do
32
+ optional :status, :message, 1, "atyun.NotificationStatus"
33
+ end
34
+ add_message "atyun.SendCloudSmsRequest" do
35
+ optional :url, :string, 1
36
+ optional :u, :string, 2
37
+ optional :p, :string, 3
38
+ optional :phone, :string, 4
39
+ optional :content, :string, 5
40
+ optional :template_id, :string, 6
41
+ optional :msg_type, :string, 7
42
+ end
43
+ add_message "atyun.SendCloudSmsReply" do
44
+ optional :status, :message, 1, "atyun.NotificationStatus"
45
+ end
46
+ end
47
+
48
+ module Atyun
49
+ AliSmsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("atyun.AliSmsRequest").msgclass
50
+ AliSmsReply = Google::Protobuf::DescriptorPool.generated_pool.lookup("atyun.AliSmsReply").msgclass
51
+ NotificationStatus = Google::Protobuf::DescriptorPool.generated_pool.lookup("atyun.NotificationStatus").msgclass
52
+ SendCloudEmailRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("atyun.SendCloudEmailRequest").msgclass
53
+ SendCloudEmailReply = Google::Protobuf::DescriptorPool.generated_pool.lookup("atyun.SendCloudEmailReply").msgclass
54
+ SendCloudSmsRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("atyun.SendCloudSmsRequest").msgclass
55
+ SendCloudSmsReply = Google::Protobuf::DescriptorPool.generated_pool.lookup("atyun.SendCloudSmsReply").msgclass
56
+ end
@@ -0,0 +1,28 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: notification.proto for package 'atyun'
3
+
4
+ require 'grpc'
5
+ require 'notification_pb'
6
+
7
+ module Atyun
8
+ module Notification
9
+ # 短信和邮件服务
10
+ class Service
11
+
12
+ include GRPC::GenericService
13
+
14
+ self.marshal_class_method = :encode
15
+ self.unmarshal_class_method = :decode
16
+ self.service_name = 'atyun.notification'
17
+
18
+ # 阿里云短信
19
+ rpc :SendAliSms, AliSmsRequest, AliSmsReply
20
+ # sendcloud 短信
21
+ rpc :SendSendCloudSms, SendCloudSmsRequest, SendCloudSmsReply
22
+ # sendcloud 邮件
23
+ rpc :SendSendCloudEmail, SendCloudEmailRequest, SendCloudEmailReply
24
+ end
25
+
26
+ Stub = Service.rpc_stub_class
27
+ end
28
+ end
@@ -0,0 +1,73 @@
1
+ syntax = "proto3";
2
+
3
+ option java_multiple_files = true;
4
+ option java_package = "io.grpc.examples.helloworld";
5
+ option java_outer_classname = "HelloWorldProto";
6
+ option objc_class_prefix = "HLW";
7
+
8
+ package atyun;
9
+
10
+ // 短信和邮件服务
11
+ service notification {
12
+
13
+ //阿里云短信
14
+ rpc SendAliSms (AliSmsRequest) returns (AliSmsReply){
15
+ }
16
+
17
+ //sendcloud 短信
18
+ rpc SendSendCloudSms (SendCloudSmsRequest) returns (SendCloudSmsReply){
19
+
20
+ }
21
+
22
+ //sendcloud 邮件
23
+ rpc SendSendCloudEmail (SendCloudEmailRequest) returns (SendCloudEmailReply) {
24
+
25
+ }
26
+
27
+ }
28
+
29
+ message AliSmsRequest {
30
+ string access_key_secret = 1;
31
+ string access_key_id = 2;
32
+ string sign_name = 3;
33
+ string phone = 4;
34
+ string template_code = 5;
35
+ string content = 6;
36
+ }
37
+
38
+ message AliSmsReply {
39
+ NotificationStatus status = 1;
40
+ }
41
+
42
+ message NotificationStatus{
43
+ string code = 1;
44
+ string message = 2;
45
+ }
46
+
47
+ message SendCloudEmailRequest{
48
+ string to = 1;
49
+ string api_user = 2;
50
+ string api_key = 3;
51
+ string from = 4;
52
+ string from_name = 5;
53
+ string subject = 6;
54
+ string html = 7;
55
+ }
56
+
57
+ message SendCloudEmailReply{
58
+ NotificationStatus status = 1;
59
+ }
60
+
61
+ message SendCloudSmsRequest{
62
+ string url = 1;
63
+ string u = 2;
64
+ string p = 3;
65
+ string phone = 4;
66
+ string content = 5;
67
+ string template_id = 6;
68
+ string msg_type = 7;
69
+ }
70
+
71
+ message SendCloudSmsReply{
72
+ NotificationStatus status = 1;
73
+ }
@@ -1,5 +1,5 @@
1
1
  module Wechat
2
2
  module Protocal
3
- VERSION = "0.1.2"
3
+ VERSION = "0.1.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ampedxx-wechat-protocal
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - icepoint0
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-06-11 00:00:00.000000000 Z
11
+ date: 2018-06-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -69,6 +69,9 @@ files:
69
69
  - Rakefile
70
70
  - bin/console
71
71
  - bin/setup
72
+ - lib/notification_pb.rb
73
+ - lib/notification_services_pb.rb
74
+ - lib/protocals/notification.proto
72
75
  - lib/protocals/wechat.proto
73
76
  - lib/wechat/protocal.rb
74
77
  - lib/wechat/protocal/version.rb