Browse Source

增加方法

master
listen 2 years ago
parent
commit
43d9126f7c
2 changed files with 4 additions and 3 deletions
  1. +3
    -3
      coupon.pb.go
  2. +1
    -0
      coupon.proto

+ 3
- 3
coupon.pb.go View File

@ -14,15 +14,15 @@ It has these top-level messages:
*/
package couponrpc
import proto "github.com/chai2010/protorpc/proto"
import math "math"
import "github.com/chai2010/protorpc/proto"
import "math"
import "io"
import "log"
import "net"
import "net/rpc"
import "time"
import protorpc "github.com/chai2010/protorpc"
import "github.com/chai2010/protorpc"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal


+ 1
- 0
coupon.proto View File

@ -20,4 +20,5 @@ message CouponResponse {
service CouponService {
rpc isAvailable (CouponRequest) returns (CouponResponse); //
rpc use (CouponRequest) returns (CouponResponse); // 使
rpc GetCouponInfo (CouponRequest) returns (CouponResponse) //
}

Loading…
Cancel
Save