diff --git a/coupon.pb.go b/coupon.pb.go index aabad07..ab2daf3 100644 --- a/coupon.pb.go +++ b/coupon.pb.go @@ -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 diff --git a/coupon.proto b/coupon.proto index e8b7661..f00b91b 100644 --- a/coupon.proto +++ b/coupon.proto @@ -20,4 +20,5 @@ message CouponResponse { service CouponService { rpc isAvailable (CouponRequest) returns (CouponResponse); // 优惠券是否可用 rpc use (CouponRequest) returns (CouponResponse); // 使用优惠券 + rpc GetCouponInfo (CouponRequest) returns (CouponResponse) //获取优惠券信息 } \ No newline at end of file