支持购买套餐/续费套餐/用户账户操作等

This commit is contained in:
刘祥超
2021-11-08 20:52:21 +08:00
parent b82732af42
commit d92e987f7a
16 changed files with 3379 additions and 163 deletions

View File

@@ -30,18 +30,20 @@ const (
const _ = proto.ProtoPackageIsVersion4
// 添加已购套餐
type CreateUserPlanRequest struct {
type BuyUserPlanRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
UserId int64 `protobuf:"varint,1,opt,name=userId,proto3" json:"userId,omitempty"`
PlanId int64 `protobuf:"varint,2,opt,name=planId,proto3" json:"planId,omitempty"`
DayTo string `protobuf:"bytes,3,opt,name=dayTo,proto3" json:"dayTo,omitempty"`
UserId int64 `protobuf:"varint,1,opt,name=userId,proto3" json:"userId,omitempty"`
PlanId int64 `protobuf:"varint,2,opt,name=planId,proto3" json:"planId,omitempty"`
DayTo string `protobuf:"bytes,3,opt,name=dayTo,proto3" json:"dayTo,omitempty"`
Period string `protobuf:"bytes,4,opt,name=period,proto3" json:"period,omitempty"`
CountPeriod int32 `protobuf:"varint,5,opt,name=countPeriod,proto3" json:"countPeriod,omitempty"`
}
func (x *CreateUserPlanRequest) Reset() {
*x = CreateUserPlanRequest{}
func (x *BuyUserPlanRequest) Reset() {
*x = BuyUserPlanRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_service_user_plan_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
@@ -49,13 +51,13 @@ func (x *CreateUserPlanRequest) Reset() {
}
}
func (x *CreateUserPlanRequest) String() string {
func (x *BuyUserPlanRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CreateUserPlanRequest) ProtoMessage() {}
func (*BuyUserPlanRequest) ProtoMessage() {}
func (x *CreateUserPlanRequest) ProtoReflect() protoreflect.Message {
func (x *BuyUserPlanRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_user_plan_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
@@ -67,33 +69,47 @@ func (x *CreateUserPlanRequest) ProtoReflect() protoreflect.Message {
return mi.MessageOf(x)
}
// Deprecated: Use CreateUserPlanRequest.ProtoReflect.Descriptor instead.
func (*CreateUserPlanRequest) Descriptor() ([]byte, []int) {
// Deprecated: Use BuyUserPlanRequest.ProtoReflect.Descriptor instead.
func (*BuyUserPlanRequest) Descriptor() ([]byte, []int) {
return file_service_user_plan_proto_rawDescGZIP(), []int{0}
}
func (x *CreateUserPlanRequest) GetUserId() int64 {
func (x *BuyUserPlanRequest) GetUserId() int64 {
if x != nil {
return x.UserId
}
return 0
}
func (x *CreateUserPlanRequest) GetPlanId() int64 {
func (x *BuyUserPlanRequest) GetPlanId() int64 {
if x != nil {
return x.PlanId
}
return 0
}
func (x *CreateUserPlanRequest) GetDayTo() string {
func (x *BuyUserPlanRequest) GetDayTo() string {
if x != nil {
return x.DayTo
}
return ""
}
type CreateUserPlanResponse struct {
func (x *BuyUserPlanRequest) GetPeriod() string {
if x != nil {
return x.Period
}
return ""
}
func (x *BuyUserPlanRequest) GetCountPeriod() int32 {
if x != nil {
return x.CountPeriod
}
return 0
}
type BuyUserPlanResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
@@ -101,8 +117,8 @@ type CreateUserPlanResponse struct {
UserPlanId int64 `protobuf:"varint,1,opt,name=userPlanId,proto3" json:"userPlanId,omitempty"`
}
func (x *CreateUserPlanResponse) Reset() {
*x = CreateUserPlanResponse{}
func (x *BuyUserPlanResponse) Reset() {
*x = BuyUserPlanResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_service_user_plan_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
@@ -110,13 +126,13 @@ func (x *CreateUserPlanResponse) Reset() {
}
}
func (x *CreateUserPlanResponse) String() string {
func (x *BuyUserPlanResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CreateUserPlanResponse) ProtoMessage() {}
func (*BuyUserPlanResponse) ProtoMessage() {}
func (x *CreateUserPlanResponse) ProtoReflect() protoreflect.Message {
func (x *BuyUserPlanResponse) ProtoReflect() protoreflect.Message {
mi := &file_service_user_plan_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
@@ -128,18 +144,90 @@ func (x *CreateUserPlanResponse) ProtoReflect() protoreflect.Message {
return mi.MessageOf(x)
}
// Deprecated: Use CreateUserPlanResponse.ProtoReflect.Descriptor instead.
func (*CreateUserPlanResponse) Descriptor() ([]byte, []int) {
// Deprecated: Use BuyUserPlanResponse.ProtoReflect.Descriptor instead.
func (*BuyUserPlanResponse) Descriptor() ([]byte, []int) {
return file_service_user_plan_proto_rawDescGZIP(), []int{1}
}
func (x *CreateUserPlanResponse) GetUserPlanId() int64 {
func (x *BuyUserPlanResponse) GetUserPlanId() int64 {
if x != nil {
return x.UserPlanId
}
return 0
}
// 续费套餐
type RenewUserPlanRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
UserPlanId int64 `protobuf:"varint,1,opt,name=userPlanId,proto3" json:"userPlanId,omitempty"`
DayTo string `protobuf:"bytes,3,opt,name=dayTo,proto3" json:"dayTo,omitempty"`
Period string `protobuf:"bytes,4,opt,name=period,proto3" json:"period,omitempty"`
CountPeriod int32 `protobuf:"varint,5,opt,name=countPeriod,proto3" json:"countPeriod,omitempty"`
}
func (x *RenewUserPlanRequest) Reset() {
*x = RenewUserPlanRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_service_user_plan_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *RenewUserPlanRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*RenewUserPlanRequest) ProtoMessage() {}
func (x *RenewUserPlanRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_user_plan_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use RenewUserPlanRequest.ProtoReflect.Descriptor instead.
func (*RenewUserPlanRequest) Descriptor() ([]byte, []int) {
return file_service_user_plan_proto_rawDescGZIP(), []int{2}
}
func (x *RenewUserPlanRequest) GetUserPlanId() int64 {
if x != nil {
return x.UserPlanId
}
return 0
}
func (x *RenewUserPlanRequest) GetDayTo() string {
if x != nil {
return x.DayTo
}
return ""
}
func (x *RenewUserPlanRequest) GetPeriod() string {
if x != nil {
return x.Period
}
return ""
}
func (x *RenewUserPlanRequest) GetCountPeriod() int32 {
if x != nil {
return x.CountPeriod
}
return 0
}
// 查找单个已购套餐信息
type FindEnabledUserPlanRequest struct {
state protoimpl.MessageState
@@ -152,7 +240,7 @@ type FindEnabledUserPlanRequest struct {
func (x *FindEnabledUserPlanRequest) Reset() {
*x = FindEnabledUserPlanRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_service_user_plan_proto_msgTypes[2]
mi := &file_service_user_plan_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -165,7 +253,7 @@ func (x *FindEnabledUserPlanRequest) String() string {
func (*FindEnabledUserPlanRequest) ProtoMessage() {}
func (x *FindEnabledUserPlanRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_user_plan_proto_msgTypes[2]
mi := &file_service_user_plan_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -178,7 +266,7 @@ func (x *FindEnabledUserPlanRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use FindEnabledUserPlanRequest.ProtoReflect.Descriptor instead.
func (*FindEnabledUserPlanRequest) Descriptor() ([]byte, []int) {
return file_service_user_plan_proto_rawDescGZIP(), []int{2}
return file_service_user_plan_proto_rawDescGZIP(), []int{3}
}
func (x *FindEnabledUserPlanRequest) GetUserPlanId() int64 {
@@ -199,7 +287,7 @@ type FindEnabledUserPlanResponse struct {
func (x *FindEnabledUserPlanResponse) Reset() {
*x = FindEnabledUserPlanResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_service_user_plan_proto_msgTypes[3]
mi := &file_service_user_plan_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -212,7 +300,7 @@ func (x *FindEnabledUserPlanResponse) String() string {
func (*FindEnabledUserPlanResponse) ProtoMessage() {}
func (x *FindEnabledUserPlanResponse) ProtoReflect() protoreflect.Message {
mi := &file_service_user_plan_proto_msgTypes[3]
mi := &file_service_user_plan_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -225,7 +313,7 @@ func (x *FindEnabledUserPlanResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use FindEnabledUserPlanResponse.ProtoReflect.Descriptor instead.
func (*FindEnabledUserPlanResponse) Descriptor() ([]byte, []int) {
return file_service_user_plan_proto_rawDescGZIP(), []int{3}
return file_service_user_plan_proto_rawDescGZIP(), []int{4}
}
func (x *FindEnabledUserPlanResponse) GetUserPlan() *UserPlan {
@@ -250,7 +338,7 @@ type UpdateUserPlanRequest struct {
func (x *UpdateUserPlanRequest) Reset() {
*x = UpdateUserPlanRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_service_user_plan_proto_msgTypes[4]
mi := &file_service_user_plan_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -263,7 +351,7 @@ func (x *UpdateUserPlanRequest) String() string {
func (*UpdateUserPlanRequest) ProtoMessage() {}
func (x *UpdateUserPlanRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_user_plan_proto_msgTypes[4]
mi := &file_service_user_plan_proto_msgTypes[5]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -276,7 +364,7 @@ func (x *UpdateUserPlanRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use UpdateUserPlanRequest.ProtoReflect.Descriptor instead.
func (*UpdateUserPlanRequest) Descriptor() ([]byte, []int) {
return file_service_user_plan_proto_rawDescGZIP(), []int{4}
return file_service_user_plan_proto_rawDescGZIP(), []int{5}
}
func (x *UpdateUserPlanRequest) GetUserPlanId() int64 {
@@ -319,7 +407,7 @@ type DeleteUserPlanRequest struct {
func (x *DeleteUserPlanRequest) Reset() {
*x = DeleteUserPlanRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_service_user_plan_proto_msgTypes[5]
mi := &file_service_user_plan_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -332,7 +420,7 @@ func (x *DeleteUserPlanRequest) String() string {
func (*DeleteUserPlanRequest) ProtoMessage() {}
func (x *DeleteUserPlanRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_user_plan_proto_msgTypes[5]
mi := &file_service_user_plan_proto_msgTypes[6]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -345,7 +433,7 @@ func (x *DeleteUserPlanRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use DeleteUserPlanRequest.ProtoReflect.Descriptor instead.
func (*DeleteUserPlanRequest) Descriptor() ([]byte, []int) {
return file_service_user_plan_proto_rawDescGZIP(), []int{5}
return file_service_user_plan_proto_rawDescGZIP(), []int{6}
}
func (x *DeleteUserPlanRequest) GetUserPlanId() int64 {
@@ -370,7 +458,7 @@ type CountAllEnabledUserPlansRequest struct {
func (x *CountAllEnabledUserPlansRequest) Reset() {
*x = CountAllEnabledUserPlansRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_service_user_plan_proto_msgTypes[6]
mi := &file_service_user_plan_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -383,7 +471,7 @@ func (x *CountAllEnabledUserPlansRequest) String() string {
func (*CountAllEnabledUserPlansRequest) ProtoMessage() {}
func (x *CountAllEnabledUserPlansRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_user_plan_proto_msgTypes[6]
mi := &file_service_user_plan_proto_msgTypes[7]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -396,7 +484,7 @@ func (x *CountAllEnabledUserPlansRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use CountAllEnabledUserPlansRequest.ProtoReflect.Descriptor instead.
func (*CountAllEnabledUserPlansRequest) Descriptor() ([]byte, []int) {
return file_service_user_plan_proto_rawDescGZIP(), []int{6}
return file_service_user_plan_proto_rawDescGZIP(), []int{7}
}
func (x *CountAllEnabledUserPlansRequest) GetIsAvailable() bool {
@@ -444,7 +532,7 @@ type ListEnabledUserPlansRequest struct {
func (x *ListEnabledUserPlansRequest) Reset() {
*x = ListEnabledUserPlansRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_service_user_plan_proto_msgTypes[7]
mi := &file_service_user_plan_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -457,7 +545,7 @@ func (x *ListEnabledUserPlansRequest) String() string {
func (*ListEnabledUserPlansRequest) ProtoMessage() {}
func (x *ListEnabledUserPlansRequest) ProtoReflect() protoreflect.Message {
mi := &file_service_user_plan_proto_msgTypes[7]
mi := &file_service_user_plan_proto_msgTypes[8]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -470,7 +558,7 @@ func (x *ListEnabledUserPlansRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use ListEnabledUserPlansRequest.ProtoReflect.Descriptor instead.
func (*ListEnabledUserPlansRequest) Descriptor() ([]byte, []int) {
return file_service_user_plan_proto_rawDescGZIP(), []int{7}
return file_service_user_plan_proto_rawDescGZIP(), []int{8}
}
func (x *ListEnabledUserPlansRequest) GetIsAvailable() bool {
@@ -526,7 +614,7 @@ type ListEnabledUserPlansResponse struct {
func (x *ListEnabledUserPlansResponse) Reset() {
*x = ListEnabledUserPlansResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_service_user_plan_proto_msgTypes[8]
mi := &file_service_user_plan_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -539,7 +627,7 @@ func (x *ListEnabledUserPlansResponse) String() string {
func (*ListEnabledUserPlansResponse) ProtoMessage() {}
func (x *ListEnabledUserPlansResponse) ProtoReflect() protoreflect.Message {
mi := &file_service_user_plan_proto_msgTypes[8]
mi := &file_service_user_plan_proto_msgTypes[9]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -552,7 +640,7 @@ func (x *ListEnabledUserPlansResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use ListEnabledUserPlansResponse.ProtoReflect.Descriptor instead.
func (*ListEnabledUserPlansResponse) Descriptor() ([]byte, []int) {
return file_service_user_plan_proto_rawDescGZIP(), []int{8}
return file_service_user_plan_proto_rawDescGZIP(), []int{9}
}
func (x *ListEnabledUserPlansResponse) GetUserPlans() []*UserPlan {
@@ -570,69 +658,84 @@ var file_service_user_plan_proto_rawDesc = []byte{
0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x72, 0x70, 0x63, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67,
0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73,
0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x70, 0x6c, 0x61, 0x6e,
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x5d, 0x0a, 0x15, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65,
0x55, 0x73, 0x65, 0x72, 0x50, 0x6c, 0x61, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52,
0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x6c, 0x61, 0x6e, 0x49,
0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x70, 0x6c, 0x61, 0x6e, 0x49, 0x64, 0x12,
0x14, 0x0a, 0x05, 0x64, 0x61, 0x79, 0x54, 0x6f, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05,
0x64, 0x61, 0x79, 0x54, 0x6f, 0x22, 0x38, 0x0a, 0x16, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x55,
0x73, 0x65, 0x72, 0x50, 0x6c, 0x61, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12,
0x1e, 0x0a, 0x0a, 0x75, 0x73, 0x65, 0x72, 0x50, 0x6c, 0x61, 0x6e, 0x49, 0x64, 0x18, 0x01, 0x20,
0x01, 0x28, 0x03, 0x52, 0x0a, 0x75, 0x73, 0x65, 0x72, 0x50, 0x6c, 0x61, 0x6e, 0x49, 0x64, 0x22,
0x3c, 0x0a, 0x1a, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x55, 0x73,
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x94, 0x01, 0x0a, 0x12, 0x42, 0x75, 0x79, 0x55, 0x73,
0x65, 0x72, 0x50, 0x6c, 0x61, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a,
0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x75,
0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x6c, 0x61, 0x6e, 0x49, 0x64, 0x18,
0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x70, 0x6c, 0x61, 0x6e, 0x49, 0x64, 0x12, 0x14, 0x0a,
0x05, 0x64, 0x61, 0x79, 0x54, 0x6f, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x64, 0x61,
0x79, 0x54, 0x6f, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x18, 0x04, 0x20,
0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x63,
0x6f, 0x75, 0x6e, 0x74, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05,
0x52, 0x0b, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x22, 0x35, 0x0a,
0x13, 0x42, 0x75, 0x79, 0x55, 0x73, 0x65, 0x72, 0x50, 0x6c, 0x61, 0x6e, 0x52, 0x65, 0x73, 0x70,
0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x75, 0x73, 0x65, 0x72, 0x50, 0x6c, 0x61, 0x6e,
0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x75, 0x73, 0x65, 0x72, 0x50, 0x6c,
0x61, 0x6e, 0x49, 0x64, 0x22, 0x86, 0x01, 0x0a, 0x14, 0x52, 0x65, 0x6e, 0x65, 0x77, 0x55, 0x73,
0x65, 0x72, 0x50, 0x6c, 0x61, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1e, 0x0a,
0x0a, 0x75, 0x73, 0x65, 0x72, 0x50, 0x6c, 0x61, 0x6e, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
0x03, 0x52, 0x0a, 0x75, 0x73, 0x65, 0x72, 0x50, 0x6c, 0x61, 0x6e, 0x49, 0x64, 0x22, 0x47, 0x0a,
0x1b, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x55, 0x73, 0x65, 0x72,
0x50, 0x6c, 0x61, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x28, 0x0a, 0x08,
0x75, 0x73, 0x65, 0x72, 0x50, 0x6c, 0x61, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0c,
0x2e, 0x70, 0x62, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x50, 0x6c, 0x61, 0x6e, 0x52, 0x08, 0x75, 0x73,
0x65, 0x72, 0x50, 0x6c, 0x61, 0x6e, 0x22, 0x79, 0x0a, 0x15, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65,
0x55, 0x73, 0x65, 0x72, 0x50, 0x6c, 0x61, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
0x1e, 0x0a, 0x0a, 0x75, 0x73, 0x65, 0x72, 0x50, 0x6c, 0x61, 0x6e, 0x49, 0x64, 0x18, 0x01, 0x20,
0x01, 0x28, 0x03, 0x52, 0x0a, 0x75, 0x73, 0x65, 0x72, 0x50, 0x6c, 0x61, 0x6e, 0x49, 0x64, 0x12,
0x16, 0x0a, 0x06, 0x70, 0x6c, 0x61, 0x6e, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52,
0x06, 0x70, 0x6c, 0x61, 0x6e, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x64, 0x61, 0x79, 0x54, 0x6f,
0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x64, 0x61, 0x79, 0x54, 0x6f, 0x12, 0x12, 0x0a,
0x04, 0x69, 0x73, 0x4f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x69, 0x73, 0x4f,
0x6e, 0x22, 0x37, 0x0a, 0x15, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x50,
0x6c, 0x61, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x75, 0x73,
0x65, 0x72, 0x50, 0x6c, 0x61, 0x6e, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a,
0x75, 0x73, 0x65, 0x72, 0x50, 0x6c, 0x61, 0x6e, 0x49, 0x64, 0x22, 0x9d, 0x01, 0x0a, 0x1f, 0x43,
0x6f, 0x75, 0x6e, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x55, 0x73,
0x65, 0x72, 0x50, 0x6c, 0x61, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x20,
0x0a, 0x0b, 0x69, 0x73, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x01, 0x20,
0x01, 0x28, 0x08, 0x52, 0x0b, 0x69, 0x73, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65,
0x12, 0x1c, 0x0a, 0x09, 0x69, 0x73, 0x45, 0x78, 0x70, 0x69, 0x72, 0x65, 0x64, 0x18, 0x02, 0x20,
0x01, 0x28, 0x08, 0x52, 0x09, 0x69, 0x73, 0x45, 0x78, 0x70, 0x69, 0x72, 0x65, 0x64, 0x12, 0x22,
0x0a, 0x0c, 0x65, 0x78, 0x70, 0x69, 0x72, 0x69, 0x6e, 0x67, 0x44, 0x61, 0x79, 0x73, 0x18, 0x03,
0x20, 0x01, 0x28, 0x05, 0x52, 0x0c, 0x65, 0x78, 0x70, 0x69, 0x72, 0x69, 0x6e, 0x67, 0x44, 0x61,
0x79, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x04, 0x20, 0x01,
0x28, 0x03, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x22, 0xc5, 0x01, 0x0a, 0x1b, 0x4c,
0x69, 0x73, 0x74, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x55, 0x73, 0x65, 0x72, 0x50, 0x6c,
0x61, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x69, 0x73,
0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52,
0x0b, 0x69, 0x73, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x1c, 0x0a, 0x09,
0x69, 0x73, 0x45, 0x78, 0x70, 0x69, 0x72, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52,
0x09, 0x69, 0x73, 0x45, 0x78, 0x70, 0x69, 0x72, 0x65, 0x64, 0x12, 0x22, 0x0a, 0x0c, 0x65, 0x78,
0x70, 0x69, 0x72, 0x69, 0x6e, 0x67, 0x44, 0x61, 0x79, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05,
0x52, 0x0c, 0x65, 0x78, 0x70, 0x69, 0x72, 0x69, 0x6e, 0x67, 0x44, 0x61, 0x79, 0x73, 0x12, 0x16,
0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06,
0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74,
0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x12, 0x12,
0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x73, 0x69,
0x7a, 0x65, 0x22, 0x4a, 0x0a, 0x1c, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65,
0x64, 0x55, 0x73, 0x65, 0x72, 0x50, 0x6c, 0x61, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
0x73, 0x65, 0x12, 0x2a, 0x0a, 0x09, 0x75, 0x73, 0x65, 0x72, 0x50, 0x6c, 0x61, 0x6e, 0x73, 0x18,
0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x50,
0x6c, 0x61, 0x6e, 0x52, 0x09, 0x75, 0x73, 0x65, 0x72, 0x50, 0x6c, 0x61, 0x6e, 0x73, 0x32, 0xde,
0x03, 0x0a, 0x0f, 0x55, 0x73, 0x65, 0x72, 0x50, 0x6c, 0x61, 0x6e, 0x53, 0x65, 0x72, 0x76, 0x69,
0x63, 0x65, 0x12, 0x47, 0x0a, 0x0e, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72,
0x50, 0x6c, 0x61, 0x6e, 0x12, 0x19, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65,
0x55, 0x73, 0x65, 0x72, 0x50, 0x6c, 0x61, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
0x1a, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x50,
0x6c, 0x61, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x56, 0x0a, 0x13, 0x66,
0x03, 0x52, 0x0a, 0x75, 0x73, 0x65, 0x72, 0x50, 0x6c, 0x61, 0x6e, 0x49, 0x64, 0x12, 0x14, 0x0a,
0x05, 0x64, 0x61, 0x79, 0x54, 0x6f, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x64, 0x61,
0x79, 0x54, 0x6f, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x18, 0x04, 0x20,
0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x63,
0x6f, 0x75, 0x6e, 0x74, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05,
0x52, 0x0b, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x50, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x22, 0x3c, 0x0a,
0x1a, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x55, 0x73, 0x65, 0x72,
0x50, 0x6c, 0x61, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x75,
0x73, 0x65, 0x72, 0x50, 0x6c, 0x61, 0x6e, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52,
0x0a, 0x75, 0x73, 0x65, 0x72, 0x50, 0x6c, 0x61, 0x6e, 0x49, 0x64, 0x22, 0x47, 0x0a, 0x1b, 0x46,
0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x55, 0x73, 0x65, 0x72, 0x50, 0x6c,
0x61, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x28, 0x0a, 0x08, 0x75, 0x73,
0x65, 0x72, 0x50, 0x6c, 0x61, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x70,
0x62, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x50, 0x6c, 0x61, 0x6e, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72,
0x50, 0x6c, 0x61, 0x6e, 0x22, 0x79, 0x0a, 0x15, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x55, 0x73,
0x65, 0x72, 0x50, 0x6c, 0x61, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1e, 0x0a,
0x0a, 0x75, 0x73, 0x65, 0x72, 0x50, 0x6c, 0x61, 0x6e, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
0x03, 0x52, 0x0a, 0x75, 0x73, 0x65, 0x72, 0x50, 0x6c, 0x61, 0x6e, 0x49, 0x64, 0x12, 0x16, 0x0a,
0x06, 0x70, 0x6c, 0x61, 0x6e, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x70,
0x6c, 0x61, 0x6e, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x64, 0x61, 0x79, 0x54, 0x6f, 0x18, 0x03,
0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x64, 0x61, 0x79, 0x54, 0x6f, 0x12, 0x12, 0x0a, 0x04, 0x69,
0x73, 0x4f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x69, 0x73, 0x4f, 0x6e, 0x22,
0x37, 0x0a, 0x15, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x50, 0x6c, 0x61,
0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x75, 0x73, 0x65, 0x72,
0x50, 0x6c, 0x61, 0x6e, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x75, 0x73,
0x65, 0x72, 0x50, 0x6c, 0x61, 0x6e, 0x49, 0x64, 0x22, 0x9d, 0x01, 0x0a, 0x1f, 0x43, 0x6f, 0x75,
0x6e, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x55, 0x73, 0x65, 0x72,
0x50, 0x6c, 0x61, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x20, 0x0a, 0x0b,
0x69, 0x73, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
0x08, 0x52, 0x0b, 0x69, 0x73, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x1c,
0x0a, 0x09, 0x69, 0x73, 0x45, 0x78, 0x70, 0x69, 0x72, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28,
0x08, 0x52, 0x09, 0x69, 0x73, 0x45, 0x78, 0x70, 0x69, 0x72, 0x65, 0x64, 0x12, 0x22, 0x0a, 0x0c,
0x65, 0x78, 0x70, 0x69, 0x72, 0x69, 0x6e, 0x67, 0x44, 0x61, 0x79, 0x73, 0x18, 0x03, 0x20, 0x01,
0x28, 0x05, 0x52, 0x0c, 0x65, 0x78, 0x70, 0x69, 0x72, 0x69, 0x6e, 0x67, 0x44, 0x61, 0x79, 0x73,
0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03,
0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x22, 0xc5, 0x01, 0x0a, 0x1b, 0x4c, 0x69, 0x73,
0x74, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x55, 0x73, 0x65, 0x72, 0x50, 0x6c, 0x61, 0x6e,
0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x69, 0x73, 0x41, 0x76,
0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x69,
0x73, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x69, 0x73,
0x45, 0x78, 0x70, 0x69, 0x72, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x69,
0x73, 0x45, 0x78, 0x70, 0x69, 0x72, 0x65, 0x64, 0x12, 0x22, 0x0a, 0x0c, 0x65, 0x78, 0x70, 0x69,
0x72, 0x69, 0x6e, 0x67, 0x44, 0x61, 0x79, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0c,
0x65, 0x78, 0x70, 0x69, 0x72, 0x69, 0x6e, 0x67, 0x44, 0x61, 0x79, 0x73, 0x12, 0x16, 0x0a, 0x06,
0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x75, 0x73,
0x65, 0x72, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x18, 0x05,
0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x12, 0x12, 0x0a, 0x04,
0x73, 0x69, 0x7a, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65,
0x22, 0x4a, 0x0a, 0x1c, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x55,
0x73, 0x65, 0x72, 0x50, 0x6c, 0x61, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
0x12, 0x2a, 0x0a, 0x09, 0x75, 0x73, 0x65, 0x72, 0x50, 0x6c, 0x61, 0x6e, 0x73, 0x18, 0x01, 0x20,
0x03, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x50, 0x6c, 0x61,
0x6e, 0x52, 0x09, 0x75, 0x73, 0x65, 0x72, 0x50, 0x6c, 0x61, 0x6e, 0x73, 0x32, 0x90, 0x04, 0x0a,
0x0f, 0x55, 0x73, 0x65, 0x72, 0x50, 0x6c, 0x61, 0x6e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65,
0x12, 0x3e, 0x0a, 0x0b, 0x62, 0x75, 0x79, 0x55, 0x73, 0x65, 0x72, 0x50, 0x6c, 0x61, 0x6e, 0x12,
0x16, 0x2e, 0x70, 0x62, 0x2e, 0x42, 0x75, 0x79, 0x55, 0x73, 0x65, 0x72, 0x50, 0x6c, 0x61, 0x6e,
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17, 0x2e, 0x70, 0x62, 0x2e, 0x42, 0x75, 0x79,
0x55, 0x73, 0x65, 0x72, 0x50, 0x6c, 0x61, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
0x12, 0x39, 0x0a, 0x0d, 0x72, 0x65, 0x6e, 0x65, 0x77, 0x55, 0x73, 0x65, 0x72, 0x50, 0x6c, 0x61,
0x6e, 0x12, 0x18, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x65, 0x6e, 0x65, 0x77, 0x55, 0x73, 0x65, 0x72,
0x50, 0x6c, 0x61, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62,
0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x56, 0x0a, 0x13, 0x66,
0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x55, 0x73, 0x65, 0x72, 0x50, 0x6c,
0x61, 0x6e, 0x12, 0x1e, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62,
0x6c, 0x65, 0x64, 0x55, 0x73, 0x65, 0x72, 0x50, 0x6c, 0x61, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65,
@@ -672,38 +775,41 @@ func file_service_user_plan_proto_rawDescGZIP() []byte {
return file_service_user_plan_proto_rawDescData
}
var file_service_user_plan_proto_msgTypes = make([]protoimpl.MessageInfo, 9)
var file_service_user_plan_proto_msgTypes = make([]protoimpl.MessageInfo, 10)
var file_service_user_plan_proto_goTypes = []interface{}{
(*CreateUserPlanRequest)(nil), // 0: pb.CreateUserPlanRequest
(*CreateUserPlanResponse)(nil), // 1: pb.CreateUserPlanResponse
(*FindEnabledUserPlanRequest)(nil), // 2: pb.FindEnabledUserPlanRequest
(*FindEnabledUserPlanResponse)(nil), // 3: pb.FindEnabledUserPlanResponse
(*UpdateUserPlanRequest)(nil), // 4: pb.UpdateUserPlanRequest
(*DeleteUserPlanRequest)(nil), // 5: pb.DeleteUserPlanRequest
(*CountAllEnabledUserPlansRequest)(nil), // 6: pb.CountAllEnabledUserPlansRequest
(*ListEnabledUserPlansRequest)(nil), // 7: pb.ListEnabledUserPlansRequest
(*ListEnabledUserPlansResponse)(nil), // 8: pb.ListEnabledUserPlansResponse
(*UserPlan)(nil), // 9: pb.UserPlan
(*RPCSuccess)(nil), // 10: pb.RPCSuccess
(*RPCCountResponse)(nil), // 11: pb.RPCCountResponse
(*BuyUserPlanRequest)(nil), // 0: pb.BuyUserPlanRequest
(*BuyUserPlanResponse)(nil), // 1: pb.BuyUserPlanResponse
(*RenewUserPlanRequest)(nil), // 2: pb.RenewUserPlanRequest
(*FindEnabledUserPlanRequest)(nil), // 3: pb.FindEnabledUserPlanRequest
(*FindEnabledUserPlanResponse)(nil), // 4: pb.FindEnabledUserPlanResponse
(*UpdateUserPlanRequest)(nil), // 5: pb.UpdateUserPlanRequest
(*DeleteUserPlanRequest)(nil), // 6: pb.DeleteUserPlanRequest
(*CountAllEnabledUserPlansRequest)(nil), // 7: pb.CountAllEnabledUserPlansRequest
(*ListEnabledUserPlansRequest)(nil), // 8: pb.ListEnabledUserPlansRequest
(*ListEnabledUserPlansResponse)(nil), // 9: pb.ListEnabledUserPlansResponse
(*UserPlan)(nil), // 10: pb.UserPlan
(*RPCSuccess)(nil), // 11: pb.RPCSuccess
(*RPCCountResponse)(nil), // 12: pb.RPCCountResponse
}
var file_service_user_plan_proto_depIdxs = []int32{
9, // 0: pb.FindEnabledUserPlanResponse.userPlan:type_name -> pb.UserPlan
9, // 1: pb.ListEnabledUserPlansResponse.userPlans:type_name -> pb.UserPlan
0, // 2: pb.UserPlanService.createUserPlan:input_type -> pb.CreateUserPlanRequest
2, // 3: pb.UserPlanService.findEnabledUserPlan:input_type -> pb.FindEnabledUserPlanRequest
4, // 4: pb.UserPlanService.updateUserPlan:input_type -> pb.UpdateUserPlanRequest
5, // 5: pb.UserPlanService.deleteUserPlan:input_type -> pb.DeleteUserPlanRequest
6, // 6: pb.UserPlanService.countAllEnabledUserPlans:input_type -> pb.CountAllEnabledUserPlansRequest
7, // 7: pb.UserPlanService.listEnabledUserPlans:input_type -> pb.ListEnabledUserPlansRequest
1, // 8: pb.UserPlanService.createUserPlan:output_type -> pb.CreateUserPlanResponse
3, // 9: pb.UserPlanService.findEnabledUserPlan:output_type -> pb.FindEnabledUserPlanResponse
10, // 10: pb.UserPlanService.updateUserPlan:output_type -> pb.RPCSuccess
10, // 11: pb.UserPlanService.deleteUserPlan:output_type -> pb.RPCSuccess
11, // 12: pb.UserPlanService.countAllEnabledUserPlans:output_type -> pb.RPCCountResponse
8, // 13: pb.UserPlanService.listEnabledUserPlans:output_type -> pb.ListEnabledUserPlansResponse
8, // [8:14] is the sub-list for method output_type
2, // [2:8] is the sub-list for method input_type
10, // 0: pb.FindEnabledUserPlanResponse.userPlan:type_name -> pb.UserPlan
10, // 1: pb.ListEnabledUserPlansResponse.userPlans:type_name -> pb.UserPlan
0, // 2: pb.UserPlanService.buyUserPlan:input_type -> pb.BuyUserPlanRequest
2, // 3: pb.UserPlanService.renewUserPlan:input_type -> pb.RenewUserPlanRequest
3, // 4: pb.UserPlanService.findEnabledUserPlan:input_type -> pb.FindEnabledUserPlanRequest
5, // 5: pb.UserPlanService.updateUserPlan:input_type -> pb.UpdateUserPlanRequest
6, // 6: pb.UserPlanService.deleteUserPlan:input_type -> pb.DeleteUserPlanRequest
7, // 7: pb.UserPlanService.countAllEnabledUserPlans:input_type -> pb.CountAllEnabledUserPlansRequest
8, // 8: pb.UserPlanService.listEnabledUserPlans:input_type -> pb.ListEnabledUserPlansRequest
1, // 9: pb.UserPlanService.buyUserPlan:output_type -> pb.BuyUserPlanResponse
11, // 10: pb.UserPlanService.renewUserPlan:output_type -> pb.RPCSuccess
4, // 11: pb.UserPlanService.findEnabledUserPlan:output_type -> pb.FindEnabledUserPlanResponse
11, // 12: pb.UserPlanService.updateUserPlan:output_type -> pb.RPCSuccess
11, // 13: pb.UserPlanService.deleteUserPlan:output_type -> pb.RPCSuccess
12, // 14: pb.UserPlanService.countAllEnabledUserPlans:output_type -> pb.RPCCountResponse
9, // 15: pb.UserPlanService.listEnabledUserPlans:output_type -> pb.ListEnabledUserPlansResponse
9, // [9:16] is the sub-list for method output_type
2, // [2:9] is the sub-list for method input_type
2, // [2:2] is the sub-list for extension type_name
2, // [2:2] is the sub-list for extension extendee
0, // [0:2] is the sub-list for field type_name
@@ -718,7 +824,7 @@ func file_service_user_plan_proto_init() {
file_models_model_user_plan_proto_init()
if !protoimpl.UnsafeEnabled {
file_service_user_plan_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*CreateUserPlanRequest); i {
switch v := v.(*BuyUserPlanRequest); i {
case 0:
return &v.state
case 1:
@@ -730,7 +836,7 @@ func file_service_user_plan_proto_init() {
}
}
file_service_user_plan_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*CreateUserPlanResponse); i {
switch v := v.(*BuyUserPlanResponse); i {
case 0:
return &v.state
case 1:
@@ -742,7 +848,7 @@ func file_service_user_plan_proto_init() {
}
}
file_service_user_plan_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*FindEnabledUserPlanRequest); i {
switch v := v.(*RenewUserPlanRequest); i {
case 0:
return &v.state
case 1:
@@ -754,7 +860,7 @@ func file_service_user_plan_proto_init() {
}
}
file_service_user_plan_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*FindEnabledUserPlanResponse); i {
switch v := v.(*FindEnabledUserPlanRequest); i {
case 0:
return &v.state
case 1:
@@ -766,7 +872,7 @@ func file_service_user_plan_proto_init() {
}
}
file_service_user_plan_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*UpdateUserPlanRequest); i {
switch v := v.(*FindEnabledUserPlanResponse); i {
case 0:
return &v.state
case 1:
@@ -778,7 +884,7 @@ func file_service_user_plan_proto_init() {
}
}
file_service_user_plan_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*DeleteUserPlanRequest); i {
switch v := v.(*UpdateUserPlanRequest); i {
case 0:
return &v.state
case 1:
@@ -790,7 +896,7 @@ func file_service_user_plan_proto_init() {
}
}
file_service_user_plan_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*CountAllEnabledUserPlansRequest); i {
switch v := v.(*DeleteUserPlanRequest); i {
case 0:
return &v.state
case 1:
@@ -802,7 +908,7 @@ func file_service_user_plan_proto_init() {
}
}
file_service_user_plan_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ListEnabledUserPlansRequest); i {
switch v := v.(*CountAllEnabledUserPlansRequest); i {
case 0:
return &v.state
case 1:
@@ -814,6 +920,18 @@ func file_service_user_plan_proto_init() {
}
}
file_service_user_plan_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ListEnabledUserPlansRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_service_user_plan_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ListEnabledUserPlansResponse); i {
case 0:
return &v.state
@@ -832,7 +950,7 @@ func file_service_user_plan_proto_init() {
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_service_user_plan_proto_rawDesc,
NumEnums: 0,
NumMessages: 9,
NumMessages: 10,
NumExtensions: 0,
NumServices: 1,
},
@@ -858,8 +976,10 @@ const _ = grpc.SupportPackageIsVersion6
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type UserPlanServiceClient interface {
// 添加已购套餐
CreateUserPlan(ctx context.Context, in *CreateUserPlanRequest, opts ...grpc.CallOption) (*CreateUserPlanResponse, error)
// 购套餐
BuyUserPlan(ctx context.Context, in *BuyUserPlanRequest, opts ...grpc.CallOption) (*BuyUserPlanResponse, error)
// 续费套餐
RenewUserPlan(ctx context.Context, in *RenewUserPlanRequest, opts ...grpc.CallOption) (*RPCSuccess, error)
// 查找单个已购套餐信息
FindEnabledUserPlan(ctx context.Context, in *FindEnabledUserPlanRequest, opts ...grpc.CallOption) (*FindEnabledUserPlanResponse, error)
// 修改已购套餐
@@ -880,9 +1000,18 @@ func NewUserPlanServiceClient(cc grpc.ClientConnInterface) UserPlanServiceClient
return &userPlanServiceClient{cc}
}
func (c *userPlanServiceClient) CreateUserPlan(ctx context.Context, in *CreateUserPlanRequest, opts ...grpc.CallOption) (*CreateUserPlanResponse, error) {
out := new(CreateUserPlanResponse)
err := c.cc.Invoke(ctx, "/pb.UserPlanService/createUserPlan", in, out, opts...)
func (c *userPlanServiceClient) BuyUserPlan(ctx context.Context, in *BuyUserPlanRequest, opts ...grpc.CallOption) (*BuyUserPlanResponse, error) {
out := new(BuyUserPlanResponse)
err := c.cc.Invoke(ctx, "/pb.UserPlanService/buyUserPlan", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *userPlanServiceClient) RenewUserPlan(ctx context.Context, in *RenewUserPlanRequest, opts ...grpc.CallOption) (*RPCSuccess, error) {
out := new(RPCSuccess)
err := c.cc.Invoke(ctx, "/pb.UserPlanService/renewUserPlan", in, out, opts...)
if err != nil {
return nil, err
}
@@ -936,8 +1065,10 @@ func (c *userPlanServiceClient) ListEnabledUserPlans(ctx context.Context, in *Li
// UserPlanServiceServer is the server API for UserPlanService service.
type UserPlanServiceServer interface {
// 添加已购套餐
CreateUserPlan(context.Context, *CreateUserPlanRequest) (*CreateUserPlanResponse, error)
// 购套餐
BuyUserPlan(context.Context, *BuyUserPlanRequest) (*BuyUserPlanResponse, error)
// 续费套餐
RenewUserPlan(context.Context, *RenewUserPlanRequest) (*RPCSuccess, error)
// 查找单个已购套餐信息
FindEnabledUserPlan(context.Context, *FindEnabledUserPlanRequest) (*FindEnabledUserPlanResponse, error)
// 修改已购套餐
@@ -954,8 +1085,11 @@ type UserPlanServiceServer interface {
type UnimplementedUserPlanServiceServer struct {
}
func (*UnimplementedUserPlanServiceServer) CreateUserPlan(context.Context, *CreateUserPlanRequest) (*CreateUserPlanResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method CreateUserPlan not implemented")
func (*UnimplementedUserPlanServiceServer) BuyUserPlan(context.Context, *BuyUserPlanRequest) (*BuyUserPlanResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method BuyUserPlan not implemented")
}
func (*UnimplementedUserPlanServiceServer) RenewUserPlan(context.Context, *RenewUserPlanRequest) (*RPCSuccess, error) {
return nil, status.Errorf(codes.Unimplemented, "method RenewUserPlan not implemented")
}
func (*UnimplementedUserPlanServiceServer) FindEnabledUserPlan(context.Context, *FindEnabledUserPlanRequest) (*FindEnabledUserPlanResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method FindEnabledUserPlan not implemented")
@@ -977,20 +1111,38 @@ func RegisterUserPlanServiceServer(s *grpc.Server, srv UserPlanServiceServer) {
s.RegisterService(&_UserPlanService_serviceDesc, srv)
}
func _UserPlanService_CreateUserPlan_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CreateUserPlanRequest)
func _UserPlanService_BuyUserPlan_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(BuyUserPlanRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(UserPlanServiceServer).CreateUserPlan(ctx, in)
return srv.(UserPlanServiceServer).BuyUserPlan(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.UserPlanService/CreateUserPlan",
FullMethod: "/pb.UserPlanService/BuyUserPlan",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(UserPlanServiceServer).CreateUserPlan(ctx, req.(*CreateUserPlanRequest))
return srv.(UserPlanServiceServer).BuyUserPlan(ctx, req.(*BuyUserPlanRequest))
}
return interceptor(ctx, in, info, handler)
}
func _UserPlanService_RenewUserPlan_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(RenewUserPlanRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(UserPlanServiceServer).RenewUserPlan(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pb.UserPlanService/RenewUserPlan",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(UserPlanServiceServer).RenewUserPlan(ctx, req.(*RenewUserPlanRequest))
}
return interceptor(ctx, in, info, handler)
}
@@ -1090,8 +1242,12 @@ var _UserPlanService_serviceDesc = grpc.ServiceDesc{
HandlerType: (*UserPlanServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "createUserPlan",
Handler: _UserPlanService_CreateUserPlan_Handler,
MethodName: "buyUserPlan",
Handler: _UserPlanService_BuyUserPlan_Handler,
},
{
MethodName: "renewUserPlan",
Handler: _UserPlanService_RenewUserPlan_Handler,
},
{
MethodName: "findEnabledUserPlan",