You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
1010 B
46 lines
1010 B
syntax = "proto3"; |
|
|
|
package gift.v1; |
|
|
|
option go_package = "v1"; |
|
|
|
import "github.com/gogo/protobuf/gogoproto/gogo.proto"; |
|
|
|
service Gift { |
|
|
|
/** 增加包裹道具 |
|
* |
|
*/ |
|
rpc addFreeGift (GiftAddFreeGiftReq) returns (GiftAddFreeGiftResp); |
|
} |
|
|
|
|
|
|
|
message GiftAddFreeGiftReq { |
|
// 用户uid |
|
int64 uid = 1 [(gogoproto.jsontag) = "uid"]; |
|
// 礼物id |
|
int64 giftid = 2 [(gogoproto.jsontag) = "giftid"]; |
|
// 数量 |
|
int64 num = 3 [(gogoproto.jsontag) = "num"]; |
|
// 过期时间 |
|
int64 expireat = 4 [(gogoproto.jsontag) = "expireat"]; |
|
// |
|
string code = 5 [(gogoproto.jsontag) = "code"]; |
|
// |
|
string caller = 6 [(gogoproto.jsontag) = "caller"]; |
|
} |
|
|
|
message GiftAddFreeGiftResp { |
|
// |
|
int64 code = 1 [(gogoproto.jsontag) = "code"]; |
|
// |
|
string msg = 2 [(gogoproto.jsontag) = "msg"]; |
|
// |
|
Data data = 3 [(gogoproto.jsontag) = "data"]; |
|
|
|
message Data { |
|
// |
|
int64 bag_id = 1 [(gogoproto.jsontag) = "bag_id"]; |
|
} |
|
} |