From 43d9126f7c0061e4e7b73b97e57c36a7c9a2a333 Mon Sep 17 00:00:00 2001 From: listen <494177603@qq.com> Date: Wed, 29 Sep 2021 19:05:00 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- coupon.pb.go | 6 +++--- coupon.proto | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) 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