mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-11-06 23:00:24 +08:00
套餐API增加查找套餐基本信息API
This commit is contained in:
@@ -626,6 +626,101 @@ func (x *FindEnabledPlanResponse) GetPlan() *Plan {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 查找套餐基本信息
|
||||||
|
type FindBasicPlanRequest struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
PlanId int64 `protobuf:"varint,1,opt,name=planId,proto3" json:"planId,omitempty"` // 套餐ID
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *FindBasicPlanRequest) Reset() {
|
||||||
|
*x = FindBasicPlanRequest{}
|
||||||
|
if protoimpl.UnsafeEnabled {
|
||||||
|
mi := &file_service_plan_proto_msgTypes[6]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *FindBasicPlanRequest) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*FindBasicPlanRequest) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *FindBasicPlanRequest) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_service_plan_proto_msgTypes[6]
|
||||||
|
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 FindBasicPlanRequest.ProtoReflect.Descriptor instead.
|
||||||
|
func (*FindBasicPlanRequest) Descriptor() ([]byte, []int) {
|
||||||
|
return file_service_plan_proto_rawDescGZIP(), []int{6}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *FindBasicPlanRequest) GetPlanId() int64 {
|
||||||
|
if x != nil {
|
||||||
|
return x.PlanId
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
type FindBasicPlanResponse struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
Plan *Plan `protobuf:"bytes,1,opt,name=plan,proto3" json:"plan,omitempty"` // 套餐信息(只读取基本信息)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *FindBasicPlanResponse) Reset() {
|
||||||
|
*x = FindBasicPlanResponse{}
|
||||||
|
if protoimpl.UnsafeEnabled {
|
||||||
|
mi := &file_service_plan_proto_msgTypes[7]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *FindBasicPlanResponse) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*FindBasicPlanResponse) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *FindBasicPlanResponse) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_service_plan_proto_msgTypes[7]
|
||||||
|
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 FindBasicPlanResponse.ProtoReflect.Descriptor instead.
|
||||||
|
func (*FindBasicPlanResponse) Descriptor() ([]byte, []int) {
|
||||||
|
return file_service_plan_proto_rawDescGZIP(), []int{7}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *FindBasicPlanResponse) GetPlan() *Plan {
|
||||||
|
if x != nil {
|
||||||
|
return x.Plan
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
// 计算套餐数量
|
// 计算套餐数量
|
||||||
type CountAllEnabledPlansRequest struct {
|
type CountAllEnabledPlansRequest struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState
|
||||||
@@ -636,7 +731,7 @@ type CountAllEnabledPlansRequest struct {
|
|||||||
func (x *CountAllEnabledPlansRequest) Reset() {
|
func (x *CountAllEnabledPlansRequest) Reset() {
|
||||||
*x = CountAllEnabledPlansRequest{}
|
*x = CountAllEnabledPlansRequest{}
|
||||||
if protoimpl.UnsafeEnabled {
|
if protoimpl.UnsafeEnabled {
|
||||||
mi := &file_service_plan_proto_msgTypes[6]
|
mi := &file_service_plan_proto_msgTypes[8]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
ms.StoreMessageInfo(mi)
|
ms.StoreMessageInfo(mi)
|
||||||
}
|
}
|
||||||
@@ -649,7 +744,7 @@ func (x *CountAllEnabledPlansRequest) String() string {
|
|||||||
func (*CountAllEnabledPlansRequest) ProtoMessage() {}
|
func (*CountAllEnabledPlansRequest) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *CountAllEnabledPlansRequest) ProtoReflect() protoreflect.Message {
|
func (x *CountAllEnabledPlansRequest) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_service_plan_proto_msgTypes[6]
|
mi := &file_service_plan_proto_msgTypes[8]
|
||||||
if protoimpl.UnsafeEnabled && x != nil {
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
if ms.LoadMessageInfo() == nil {
|
if ms.LoadMessageInfo() == nil {
|
||||||
@@ -662,7 +757,7 @@ func (x *CountAllEnabledPlansRequest) ProtoReflect() protoreflect.Message {
|
|||||||
|
|
||||||
// Deprecated: Use CountAllEnabledPlansRequest.ProtoReflect.Descriptor instead.
|
// Deprecated: Use CountAllEnabledPlansRequest.ProtoReflect.Descriptor instead.
|
||||||
func (*CountAllEnabledPlansRequest) Descriptor() ([]byte, []int) {
|
func (*CountAllEnabledPlansRequest) Descriptor() ([]byte, []int) {
|
||||||
return file_service_plan_proto_rawDescGZIP(), []int{6}
|
return file_service_plan_proto_rawDescGZIP(), []int{8}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 列出单页套餐
|
// 列出单页套餐
|
||||||
@@ -678,7 +773,7 @@ type ListEnabledPlansRequest struct {
|
|||||||
func (x *ListEnabledPlansRequest) Reset() {
|
func (x *ListEnabledPlansRequest) Reset() {
|
||||||
*x = ListEnabledPlansRequest{}
|
*x = ListEnabledPlansRequest{}
|
||||||
if protoimpl.UnsafeEnabled {
|
if protoimpl.UnsafeEnabled {
|
||||||
mi := &file_service_plan_proto_msgTypes[7]
|
mi := &file_service_plan_proto_msgTypes[9]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
ms.StoreMessageInfo(mi)
|
ms.StoreMessageInfo(mi)
|
||||||
}
|
}
|
||||||
@@ -691,7 +786,7 @@ func (x *ListEnabledPlansRequest) String() string {
|
|||||||
func (*ListEnabledPlansRequest) ProtoMessage() {}
|
func (*ListEnabledPlansRequest) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *ListEnabledPlansRequest) ProtoReflect() protoreflect.Message {
|
func (x *ListEnabledPlansRequest) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_service_plan_proto_msgTypes[7]
|
mi := &file_service_plan_proto_msgTypes[9]
|
||||||
if protoimpl.UnsafeEnabled && x != nil {
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
if ms.LoadMessageInfo() == nil {
|
if ms.LoadMessageInfo() == nil {
|
||||||
@@ -704,7 +799,7 @@ func (x *ListEnabledPlansRequest) ProtoReflect() protoreflect.Message {
|
|||||||
|
|
||||||
// Deprecated: Use ListEnabledPlansRequest.ProtoReflect.Descriptor instead.
|
// Deprecated: Use ListEnabledPlansRequest.ProtoReflect.Descriptor instead.
|
||||||
func (*ListEnabledPlansRequest) Descriptor() ([]byte, []int) {
|
func (*ListEnabledPlansRequest) Descriptor() ([]byte, []int) {
|
||||||
return file_service_plan_proto_rawDescGZIP(), []int{7}
|
return file_service_plan_proto_rawDescGZIP(), []int{9}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *ListEnabledPlansRequest) GetOffset() int64 {
|
func (x *ListEnabledPlansRequest) GetOffset() int64 {
|
||||||
@@ -732,7 +827,7 @@ type ListEnabledPlansResponse struct {
|
|||||||
func (x *ListEnabledPlansResponse) Reset() {
|
func (x *ListEnabledPlansResponse) Reset() {
|
||||||
*x = ListEnabledPlansResponse{}
|
*x = ListEnabledPlansResponse{}
|
||||||
if protoimpl.UnsafeEnabled {
|
if protoimpl.UnsafeEnabled {
|
||||||
mi := &file_service_plan_proto_msgTypes[8]
|
mi := &file_service_plan_proto_msgTypes[10]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
ms.StoreMessageInfo(mi)
|
ms.StoreMessageInfo(mi)
|
||||||
}
|
}
|
||||||
@@ -745,7 +840,7 @@ func (x *ListEnabledPlansResponse) String() string {
|
|||||||
func (*ListEnabledPlansResponse) ProtoMessage() {}
|
func (*ListEnabledPlansResponse) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *ListEnabledPlansResponse) ProtoReflect() protoreflect.Message {
|
func (x *ListEnabledPlansResponse) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_service_plan_proto_msgTypes[8]
|
mi := &file_service_plan_proto_msgTypes[10]
|
||||||
if protoimpl.UnsafeEnabled && x != nil {
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
if ms.LoadMessageInfo() == nil {
|
if ms.LoadMessageInfo() == nil {
|
||||||
@@ -758,7 +853,7 @@ func (x *ListEnabledPlansResponse) ProtoReflect() protoreflect.Message {
|
|||||||
|
|
||||||
// Deprecated: Use ListEnabledPlansResponse.ProtoReflect.Descriptor instead.
|
// Deprecated: Use ListEnabledPlansResponse.ProtoReflect.Descriptor instead.
|
||||||
func (*ListEnabledPlansResponse) Descriptor() ([]byte, []int) {
|
func (*ListEnabledPlansResponse) Descriptor() ([]byte, []int) {
|
||||||
return file_service_plan_proto_rawDescGZIP(), []int{8}
|
return file_service_plan_proto_rawDescGZIP(), []int{10}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *ListEnabledPlansResponse) GetPlans() []*Plan {
|
func (x *ListEnabledPlansResponse) GetPlans() []*Plan {
|
||||||
@@ -778,7 +873,7 @@ type FindAllAvailablePlansRequest struct {
|
|||||||
func (x *FindAllAvailablePlansRequest) Reset() {
|
func (x *FindAllAvailablePlansRequest) Reset() {
|
||||||
*x = FindAllAvailablePlansRequest{}
|
*x = FindAllAvailablePlansRequest{}
|
||||||
if protoimpl.UnsafeEnabled {
|
if protoimpl.UnsafeEnabled {
|
||||||
mi := &file_service_plan_proto_msgTypes[9]
|
mi := &file_service_plan_proto_msgTypes[11]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
ms.StoreMessageInfo(mi)
|
ms.StoreMessageInfo(mi)
|
||||||
}
|
}
|
||||||
@@ -791,7 +886,7 @@ func (x *FindAllAvailablePlansRequest) String() string {
|
|||||||
func (*FindAllAvailablePlansRequest) ProtoMessage() {}
|
func (*FindAllAvailablePlansRequest) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *FindAllAvailablePlansRequest) ProtoReflect() protoreflect.Message {
|
func (x *FindAllAvailablePlansRequest) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_service_plan_proto_msgTypes[9]
|
mi := &file_service_plan_proto_msgTypes[11]
|
||||||
if protoimpl.UnsafeEnabled && x != nil {
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
if ms.LoadMessageInfo() == nil {
|
if ms.LoadMessageInfo() == nil {
|
||||||
@@ -804,7 +899,7 @@ func (x *FindAllAvailablePlansRequest) ProtoReflect() protoreflect.Message {
|
|||||||
|
|
||||||
// Deprecated: Use FindAllAvailablePlansRequest.ProtoReflect.Descriptor instead.
|
// Deprecated: Use FindAllAvailablePlansRequest.ProtoReflect.Descriptor instead.
|
||||||
func (*FindAllAvailablePlansRequest) Descriptor() ([]byte, []int) {
|
func (*FindAllAvailablePlansRequest) Descriptor() ([]byte, []int) {
|
||||||
return file_service_plan_proto_rawDescGZIP(), []int{9}
|
return file_service_plan_proto_rawDescGZIP(), []int{11}
|
||||||
}
|
}
|
||||||
|
|
||||||
type FindAllAvailablePlansResponse struct {
|
type FindAllAvailablePlansResponse struct {
|
||||||
@@ -818,7 +913,7 @@ type FindAllAvailablePlansResponse struct {
|
|||||||
func (x *FindAllAvailablePlansResponse) Reset() {
|
func (x *FindAllAvailablePlansResponse) Reset() {
|
||||||
*x = FindAllAvailablePlansResponse{}
|
*x = FindAllAvailablePlansResponse{}
|
||||||
if protoimpl.UnsafeEnabled {
|
if protoimpl.UnsafeEnabled {
|
||||||
mi := &file_service_plan_proto_msgTypes[10]
|
mi := &file_service_plan_proto_msgTypes[12]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
ms.StoreMessageInfo(mi)
|
ms.StoreMessageInfo(mi)
|
||||||
}
|
}
|
||||||
@@ -831,7 +926,7 @@ func (x *FindAllAvailablePlansResponse) String() string {
|
|||||||
func (*FindAllAvailablePlansResponse) ProtoMessage() {}
|
func (*FindAllAvailablePlansResponse) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *FindAllAvailablePlansResponse) ProtoReflect() protoreflect.Message {
|
func (x *FindAllAvailablePlansResponse) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_service_plan_proto_msgTypes[10]
|
mi := &file_service_plan_proto_msgTypes[12]
|
||||||
if protoimpl.UnsafeEnabled && x != nil {
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
if ms.LoadMessageInfo() == nil {
|
if ms.LoadMessageInfo() == nil {
|
||||||
@@ -844,7 +939,7 @@ func (x *FindAllAvailablePlansResponse) ProtoReflect() protoreflect.Message {
|
|||||||
|
|
||||||
// Deprecated: Use FindAllAvailablePlansResponse.ProtoReflect.Descriptor instead.
|
// Deprecated: Use FindAllAvailablePlansResponse.ProtoReflect.Descriptor instead.
|
||||||
func (*FindAllAvailablePlansResponse) Descriptor() ([]byte, []int) {
|
func (*FindAllAvailablePlansResponse) Descriptor() ([]byte, []int) {
|
||||||
return file_service_plan_proto_rawDescGZIP(), []int{10}
|
return file_service_plan_proto_rawDescGZIP(), []int{12}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *FindAllAvailablePlansResponse) GetPlans() []*Plan {
|
func (x *FindAllAvailablePlansResponse) GetPlans() []*Plan {
|
||||||
@@ -864,7 +959,7 @@ type FindAllAvailableBasicPlansRequest struct {
|
|||||||
func (x *FindAllAvailableBasicPlansRequest) Reset() {
|
func (x *FindAllAvailableBasicPlansRequest) Reset() {
|
||||||
*x = FindAllAvailableBasicPlansRequest{}
|
*x = FindAllAvailableBasicPlansRequest{}
|
||||||
if protoimpl.UnsafeEnabled {
|
if protoimpl.UnsafeEnabled {
|
||||||
mi := &file_service_plan_proto_msgTypes[11]
|
mi := &file_service_plan_proto_msgTypes[13]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
ms.StoreMessageInfo(mi)
|
ms.StoreMessageInfo(mi)
|
||||||
}
|
}
|
||||||
@@ -877,7 +972,7 @@ func (x *FindAllAvailableBasicPlansRequest) String() string {
|
|||||||
func (*FindAllAvailableBasicPlansRequest) ProtoMessage() {}
|
func (*FindAllAvailableBasicPlansRequest) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *FindAllAvailableBasicPlansRequest) ProtoReflect() protoreflect.Message {
|
func (x *FindAllAvailableBasicPlansRequest) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_service_plan_proto_msgTypes[11]
|
mi := &file_service_plan_proto_msgTypes[13]
|
||||||
if protoimpl.UnsafeEnabled && x != nil {
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
if ms.LoadMessageInfo() == nil {
|
if ms.LoadMessageInfo() == nil {
|
||||||
@@ -890,7 +985,7 @@ func (x *FindAllAvailableBasicPlansRequest) ProtoReflect() protoreflect.Message
|
|||||||
|
|
||||||
// Deprecated: Use FindAllAvailableBasicPlansRequest.ProtoReflect.Descriptor instead.
|
// Deprecated: Use FindAllAvailableBasicPlansRequest.ProtoReflect.Descriptor instead.
|
||||||
func (*FindAllAvailableBasicPlansRequest) Descriptor() ([]byte, []int) {
|
func (*FindAllAvailableBasicPlansRequest) Descriptor() ([]byte, []int) {
|
||||||
return file_service_plan_proto_rawDescGZIP(), []int{11}
|
return file_service_plan_proto_rawDescGZIP(), []int{13}
|
||||||
}
|
}
|
||||||
|
|
||||||
type FindAllAvailableBasicPlansResponse struct {
|
type FindAllAvailableBasicPlansResponse struct {
|
||||||
@@ -904,7 +999,7 @@ type FindAllAvailableBasicPlansResponse struct {
|
|||||||
func (x *FindAllAvailableBasicPlansResponse) Reset() {
|
func (x *FindAllAvailableBasicPlansResponse) Reset() {
|
||||||
*x = FindAllAvailableBasicPlansResponse{}
|
*x = FindAllAvailableBasicPlansResponse{}
|
||||||
if protoimpl.UnsafeEnabled {
|
if protoimpl.UnsafeEnabled {
|
||||||
mi := &file_service_plan_proto_msgTypes[12]
|
mi := &file_service_plan_proto_msgTypes[14]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
ms.StoreMessageInfo(mi)
|
ms.StoreMessageInfo(mi)
|
||||||
}
|
}
|
||||||
@@ -917,7 +1012,7 @@ func (x *FindAllAvailableBasicPlansResponse) String() string {
|
|||||||
func (*FindAllAvailableBasicPlansResponse) ProtoMessage() {}
|
func (*FindAllAvailableBasicPlansResponse) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *FindAllAvailableBasicPlansResponse) ProtoReflect() protoreflect.Message {
|
func (x *FindAllAvailableBasicPlansResponse) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_service_plan_proto_msgTypes[12]
|
mi := &file_service_plan_proto_msgTypes[14]
|
||||||
if protoimpl.UnsafeEnabled && x != nil {
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
if ms.LoadMessageInfo() == nil {
|
if ms.LoadMessageInfo() == nil {
|
||||||
@@ -930,7 +1025,7 @@ func (x *FindAllAvailableBasicPlansResponse) ProtoReflect() protoreflect.Message
|
|||||||
|
|
||||||
// Deprecated: Use FindAllAvailableBasicPlansResponse.ProtoReflect.Descriptor instead.
|
// Deprecated: Use FindAllAvailableBasicPlansResponse.ProtoReflect.Descriptor instead.
|
||||||
func (*FindAllAvailableBasicPlansResponse) Descriptor() ([]byte, []int) {
|
func (*FindAllAvailableBasicPlansResponse) Descriptor() ([]byte, []int) {
|
||||||
return file_service_plan_proto_rawDescGZIP(), []int{12}
|
return file_service_plan_proto_rawDescGZIP(), []int{14}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *FindAllAvailableBasicPlansResponse) GetPlans() []*Plan {
|
func (x *FindAllAvailableBasicPlansResponse) GetPlans() []*Plan {
|
||||||
@@ -952,7 +1047,7 @@ type SortPlansRequest struct {
|
|||||||
func (x *SortPlansRequest) Reset() {
|
func (x *SortPlansRequest) Reset() {
|
||||||
*x = SortPlansRequest{}
|
*x = SortPlansRequest{}
|
||||||
if protoimpl.UnsafeEnabled {
|
if protoimpl.UnsafeEnabled {
|
||||||
mi := &file_service_plan_proto_msgTypes[13]
|
mi := &file_service_plan_proto_msgTypes[15]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
ms.StoreMessageInfo(mi)
|
ms.StoreMessageInfo(mi)
|
||||||
}
|
}
|
||||||
@@ -965,7 +1060,7 @@ func (x *SortPlansRequest) String() string {
|
|||||||
func (*SortPlansRequest) ProtoMessage() {}
|
func (*SortPlansRequest) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *SortPlansRequest) ProtoReflect() protoreflect.Message {
|
func (x *SortPlansRequest) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_service_plan_proto_msgTypes[13]
|
mi := &file_service_plan_proto_msgTypes[15]
|
||||||
if protoimpl.UnsafeEnabled && x != nil {
|
if protoimpl.UnsafeEnabled && x != nil {
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
if ms.LoadMessageInfo() == nil {
|
if ms.LoadMessageInfo() == nil {
|
||||||
@@ -978,7 +1073,7 @@ func (x *SortPlansRequest) ProtoReflect() protoreflect.Message {
|
|||||||
|
|
||||||
// Deprecated: Use SortPlansRequest.ProtoReflect.Descriptor instead.
|
// Deprecated: Use SortPlansRequest.ProtoReflect.Descriptor instead.
|
||||||
func (*SortPlansRequest) Descriptor() ([]byte, []int) {
|
func (*SortPlansRequest) Descriptor() ([]byte, []int) {
|
||||||
return file_service_plan_proto_rawDescGZIP(), []int{13}
|
return file_service_plan_proto_rawDescGZIP(), []int{15}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *SortPlansRequest) GetPlanIds() []int64 {
|
func (x *SortPlansRequest) GetPlanIds() []int64 {
|
||||||
@@ -1120,75 +1215,86 @@ var file_service_plan_proto_rawDesc = []byte{
|
|||||||
0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x50, 0x6c, 0x61, 0x6e, 0x52, 0x65, 0x73, 0x70,
|
0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x50, 0x6c, 0x61, 0x6e, 0x52, 0x65, 0x73, 0x70,
|
||||||
0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1c, 0x0a, 0x04, 0x70, 0x6c, 0x61, 0x6e, 0x18, 0x01, 0x20, 0x01,
|
0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1c, 0x0a, 0x04, 0x70, 0x6c, 0x61, 0x6e, 0x18, 0x01, 0x20, 0x01,
|
||||||
0x28, 0x0b, 0x32, 0x08, 0x2e, 0x70, 0x62, 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x52, 0x04, 0x70, 0x6c,
|
0x28, 0x0b, 0x32, 0x08, 0x2e, 0x70, 0x62, 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x52, 0x04, 0x70, 0x6c,
|
||||||
0x61, 0x6e, 0x22, 0x1d, 0x0a, 0x1b, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x6e,
|
0x61, 0x6e, 0x22, 0x2e, 0x0a, 0x14, 0x46, 0x69, 0x6e, 0x64, 0x42, 0x61, 0x73, 0x69, 0x63, 0x50,
|
||||||
0x61, 0x62, 0x6c, 0x65, 0x64, 0x50, 0x6c, 0x61, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
|
0x6c, 0x61, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x6c,
|
||||||
0x74, 0x22, 0x45, 0x0a, 0x17, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64,
|
0x61, 0x6e, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x70, 0x6c, 0x61, 0x6e,
|
||||||
0x50, 0x6c, 0x61, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06,
|
0x49, 0x64, 0x22, 0x35, 0x0a, 0x15, 0x46, 0x69, 0x6e, 0x64, 0x42, 0x61, 0x73, 0x69, 0x63, 0x50,
|
||||||
0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x6f, 0x66,
|
0x6c, 0x61, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1c, 0x0a, 0x04, 0x70,
|
||||||
0x66, 0x73, 0x65, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01,
|
0x6c, 0x61, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x08, 0x2e, 0x70, 0x62, 0x2e, 0x50,
|
||||||
0x28, 0x03, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x22, 0x3a, 0x0a, 0x18, 0x4c, 0x69, 0x73, 0x74,
|
0x6c, 0x61, 0x6e, 0x52, 0x04, 0x70, 0x6c, 0x61, 0x6e, 0x22, 0x1d, 0x0a, 0x1b, 0x43, 0x6f, 0x75,
|
||||||
0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x50, 0x6c, 0x61, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70,
|
0x6e, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x50, 0x6c, 0x61, 0x6e,
|
||||||
0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1e, 0x0a, 0x05, 0x70, 0x6c, 0x61, 0x6e, 0x73, 0x18, 0x01, 0x20,
|
0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x45, 0x0a, 0x17, 0x4c, 0x69, 0x73, 0x74,
|
||||||
0x03, 0x28, 0x0b, 0x32, 0x08, 0x2e, 0x70, 0x62, 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x52, 0x05, 0x70,
|
0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x50, 0x6c, 0x61, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75,
|
||||||
0x6c, 0x61, 0x6e, 0x73, 0x22, 0x1e, 0x0a, 0x1c, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x41,
|
0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x18, 0x01, 0x20,
|
||||||
0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x50, 0x6c, 0x61, 0x6e, 0x73, 0x52, 0x65, 0x71,
|
0x01, 0x28, 0x03, 0x52, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x73,
|
||||||
0x75, 0x65, 0x73, 0x74, 0x22, 0x3f, 0x0a, 0x1d, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x41,
|
0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x22,
|
||||||
0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x50, 0x6c, 0x61, 0x6e, 0x73, 0x52, 0x65, 0x73,
|
0x3a, 0x0a, 0x18, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x50, 0x6c,
|
||||||
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1e, 0x0a, 0x05, 0x70, 0x6c, 0x61, 0x6e, 0x73, 0x18, 0x01,
|
0x61, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1e, 0x0a, 0x05, 0x70,
|
||||||
0x20, 0x03, 0x28, 0x0b, 0x32, 0x08, 0x2e, 0x70, 0x62, 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x52, 0x05,
|
0x6c, 0x61, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x08, 0x2e, 0x70, 0x62, 0x2e,
|
||||||
0x70, 0x6c, 0x61, 0x6e, 0x73, 0x22, 0x23, 0x0a, 0x21, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c,
|
0x50, 0x6c, 0x61, 0x6e, 0x52, 0x05, 0x70, 0x6c, 0x61, 0x6e, 0x73, 0x22, 0x1e, 0x0a, 0x1c, 0x46,
|
||||||
0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x42, 0x61, 0x73, 0x69, 0x63, 0x50, 0x6c,
|
0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x50,
|
||||||
0x61, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x44, 0x0a, 0x22, 0x46, 0x69,
|
0x6c, 0x61, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x3f, 0x0a, 0x1d, 0x46,
|
||||||
0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x42, 0x61,
|
0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x50,
|
||||||
0x73, 0x69, 0x63, 0x50, 0x6c, 0x61, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
|
0x6c, 0x61, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1e, 0x0a, 0x05,
|
||||||
0x12, 0x1e, 0x0a, 0x05, 0x70, 0x6c, 0x61, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32,
|
0x70, 0x6c, 0x61, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x08, 0x2e, 0x70, 0x62,
|
||||||
0x08, 0x2e, 0x70, 0x62, 0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x52, 0x05, 0x70, 0x6c, 0x61, 0x6e, 0x73,
|
0x2e, 0x50, 0x6c, 0x61, 0x6e, 0x52, 0x05, 0x70, 0x6c, 0x61, 0x6e, 0x73, 0x22, 0x23, 0x0a, 0x21,
|
||||||
0x22, 0x2c, 0x0a, 0x10, 0x53, 0x6f, 0x72, 0x74, 0x50, 0x6c, 0x61, 0x6e, 0x73, 0x52, 0x65, 0x71,
|
|
||||||
0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x6c, 0x61, 0x6e, 0x49, 0x64, 0x73, 0x18,
|
|
||||||
0x01, 0x20, 0x03, 0x28, 0x03, 0x52, 0x07, 0x70, 0x6c, 0x61, 0x6e, 0x49, 0x64, 0x73, 0x32, 0x9c,
|
|
||||||
0x05, 0x0a, 0x0b, 0x50, 0x6c, 0x61, 0x6e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x3b,
|
|
||||||
0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x6c, 0x61, 0x6e, 0x12, 0x15, 0x2e, 0x70,
|
|
||||||
0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x6c, 0x61, 0x6e, 0x52, 0x65, 0x71, 0x75,
|
|
||||||
0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50,
|
|
||||||
0x6c, 0x61, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x33, 0x0a, 0x0a, 0x75,
|
|
||||||
0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x6c, 0x61, 0x6e, 0x12, 0x15, 0x2e, 0x70, 0x62, 0x2e, 0x55,
|
|
||||||
0x70, 0x64, 0x61, 0x74, 0x65, 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, 0x33, 0x0a, 0x0a, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x50, 0x6c, 0x61, 0x6e, 0x12, 0x15,
|
|
||||||
0x2e, 0x70, 0x62, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 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, 0x4a, 0x0a, 0x0f, 0x66, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61,
|
|
||||||
0x62, 0x6c, 0x65, 0x64, 0x50, 0x6c, 0x61, 0x6e, 0x12, 0x1a, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69,
|
|
||||||
0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x50, 0x6c, 0x61, 0x6e, 0x52, 0x65, 0x71,
|
|
||||||
0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e,
|
|
||||||
0x61, 0x62, 0x6c, 0x65, 0x64, 0x50, 0x6c, 0x61, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
|
|
||||||
0x65, 0x12, 0x4d, 0x0a, 0x14, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61,
|
|
||||||
0x62, 0x6c, 0x65, 0x64, 0x50, 0x6c, 0x61, 0x6e, 0x73, 0x12, 0x1f, 0x2e, 0x70, 0x62, 0x2e, 0x43,
|
|
||||||
0x6f, 0x75, 0x6e, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x50, 0x6c,
|
|
||||||
0x61, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x70, 0x62, 0x2e,
|
|
||||||
0x52, 0x50, 0x43, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
|
|
||||||
0x12, 0x4d, 0x0a, 0x10, 0x6c, 0x69, 0x73, 0x74, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x50,
|
|
||||||
0x6c, 0x61, 0x6e, 0x73, 0x12, 0x1b, 0x2e, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x6e,
|
|
||||||
0x61, 0x62, 0x6c, 0x65, 0x64, 0x50, 0x6c, 0x61, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
|
|
||||||
0x74, 0x1a, 0x1c, 0x2e, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x6e, 0x61, 0x62, 0x6c,
|
|
||||||
0x65, 0x64, 0x50, 0x6c, 0x61, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12,
|
|
||||||
0x5c, 0x0a, 0x15, 0x66, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x61,
|
|
||||||
0x62, 0x6c, 0x65, 0x50, 0x6c, 0x61, 0x6e, 0x73, 0x12, 0x20, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69,
|
|
||||||
0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x50, 0x6c,
|
|
||||||
0x61, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x70, 0x62, 0x2e,
|
|
||||||
0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65,
|
0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65,
|
||||||
0x50, 0x6c, 0x61, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6b, 0x0a,
|
0x42, 0x61, 0x73, 0x69, 0x63, 0x50, 0x6c, 0x61, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
|
||||||
0x1a, 0x66, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c,
|
0x74, 0x22, 0x44, 0x0a, 0x22, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x41, 0x76, 0x61, 0x69,
|
||||||
0x65, 0x42, 0x61, 0x73, 0x69, 0x63, 0x50, 0x6c, 0x61, 0x6e, 0x73, 0x12, 0x25, 0x2e, 0x70, 0x62,
|
0x6c, 0x61, 0x62, 0x6c, 0x65, 0x42, 0x61, 0x73, 0x69, 0x63, 0x50, 0x6c, 0x61, 0x6e, 0x73, 0x52,
|
||||||
0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c,
|
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1e, 0x0a, 0x05, 0x70, 0x6c, 0x61, 0x6e, 0x73,
|
||||||
0x65, 0x42, 0x61, 0x73, 0x69, 0x63, 0x50, 0x6c, 0x61, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65,
|
0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x08, 0x2e, 0x70, 0x62, 0x2e, 0x50, 0x6c, 0x61, 0x6e,
|
||||||
0x73, 0x74, 0x1a, 0x26, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x41,
|
0x52, 0x05, 0x70, 0x6c, 0x61, 0x6e, 0x73, 0x22, 0x2c, 0x0a, 0x10, 0x53, 0x6f, 0x72, 0x74, 0x50,
|
||||||
0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x42, 0x61, 0x73, 0x69, 0x63, 0x50, 0x6c, 0x61,
|
0x6c, 0x61, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x70,
|
||||||
0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x31, 0x0a, 0x09, 0x73, 0x6f,
|
0x6c, 0x61, 0x6e, 0x49, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x03, 0x52, 0x07, 0x70, 0x6c,
|
||||||
0x72, 0x74, 0x50, 0x6c, 0x61, 0x6e, 0x73, 0x12, 0x14, 0x2e, 0x70, 0x62, 0x2e, 0x53, 0x6f, 0x72,
|
0x61, 0x6e, 0x49, 0x64, 0x73, 0x32, 0xe2, 0x05, 0x0a, 0x0b, 0x50, 0x6c, 0x61, 0x6e, 0x53, 0x65,
|
||||||
0x74, 0x50, 0x6c, 0x61, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e,
|
0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x3b, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50,
|
||||||
0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x42, 0x06, 0x5a,
|
0x6c, 0x61, 0x6e, 0x12, 0x15, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50,
|
||||||
0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
0x6c, 0x61, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x70, 0x62, 0x2e,
|
||||||
|
0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x6c, 0x61, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
|
||||||
|
0x73, 0x65, 0x12, 0x33, 0x0a, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x6c, 0x61, 0x6e,
|
||||||
|
0x12, 0x15, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 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, 0x33, 0x0a, 0x0a, 0x64, 0x65, 0x6c, 0x65, 0x74,
|
||||||
|
0x65, 0x50, 0x6c, 0x61, 0x6e, 0x12, 0x15, 0x2e, 0x70, 0x62, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74,
|
||||||
|
0x65, 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, 0x4a, 0x0a, 0x0f,
|
||||||
|
0x66, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x50, 0x6c, 0x61, 0x6e, 0x12,
|
||||||
|
0x1a, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64,
|
||||||
|
0x50, 0x6c, 0x61, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x70, 0x62,
|
||||||
|
0x2e, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x50, 0x6c, 0x61, 0x6e,
|
||||||
|
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x44, 0x0a, 0x0d, 0x66, 0x69, 0x6e, 0x64,
|
||||||
|
0x42, 0x61, 0x73, 0x69, 0x63, 0x50, 0x6c, 0x61, 0x6e, 0x12, 0x18, 0x2e, 0x70, 0x62, 0x2e, 0x46,
|
||||||
|
0x69, 0x6e, 0x64, 0x42, 0x61, 0x73, 0x69, 0x63, 0x50, 0x6c, 0x61, 0x6e, 0x52, 0x65, 0x71, 0x75,
|
||||||
|
0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x42, 0x61, 0x73,
|
||||||
|
0x69, 0x63, 0x50, 0x6c, 0x61, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4d,
|
||||||
|
0x0a, 0x14, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65,
|
||||||
|
0x64, 0x50, 0x6c, 0x61, 0x6e, 0x73, 0x12, 0x1f, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x6f, 0x75, 0x6e,
|
||||||
|
0x74, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x50, 0x6c, 0x61, 0x6e, 0x73,
|
||||||
|
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43,
|
||||||
|
0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4d, 0x0a,
|
||||||
|
0x10, 0x6c, 0x69, 0x73, 0x74, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x50, 0x6c, 0x61, 0x6e,
|
||||||
|
0x73, 0x12, 0x1b, 0x2e, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x6e, 0x61, 0x62, 0x6c,
|
||||||
|
0x65, 0x64, 0x50, 0x6c, 0x61, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c,
|
||||||
|
0x2e, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x50,
|
||||||
|
0x6c, 0x61, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5c, 0x0a, 0x15,
|
||||||
|
0x66, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65,
|
||||||
|
0x50, 0x6c, 0x61, 0x6e, 0x73, 0x12, 0x20, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41,
|
||||||
|
0x6c, 0x6c, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x50, 0x6c, 0x61, 0x6e, 0x73,
|
||||||
|
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e,
|
||||||
|
0x64, 0x41, 0x6c, 0x6c, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x50, 0x6c, 0x61,
|
||||||
|
0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6b, 0x0a, 0x1a, 0x66, 0x69,
|
||||||
|
0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x42, 0x61,
|
||||||
|
0x73, 0x69, 0x63, 0x50, 0x6c, 0x61, 0x6e, 0x73, 0x12, 0x25, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69,
|
||||||
|
0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x42, 0x61,
|
||||||
|
0x73, 0x69, 0x63, 0x50, 0x6c, 0x61, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
|
||||||
|
0x26, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x41, 0x76, 0x61, 0x69,
|
||||||
|
0x6c, 0x61, 0x62, 0x6c, 0x65, 0x42, 0x61, 0x73, 0x69, 0x63, 0x50, 0x6c, 0x61, 0x6e, 0x73, 0x52,
|
||||||
|
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x31, 0x0a, 0x09, 0x73, 0x6f, 0x72, 0x74, 0x50,
|
||||||
|
0x6c, 0x61, 0x6e, 0x73, 0x12, 0x14, 0x2e, 0x70, 0x62, 0x2e, 0x53, 0x6f, 0x72, 0x74, 0x50, 0x6c,
|
||||||
|
0x61, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e,
|
||||||
|
0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f,
|
||||||
|
0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||||
}
|
}
|
||||||
|
|
||||||
var (
|
var (
|
||||||
@@ -1203,7 +1309,7 @@ func file_service_plan_proto_rawDescGZIP() []byte {
|
|||||||
return file_service_plan_proto_rawDescData
|
return file_service_plan_proto_rawDescData
|
||||||
}
|
}
|
||||||
|
|
||||||
var file_service_plan_proto_msgTypes = make([]protoimpl.MessageInfo, 14)
|
var file_service_plan_proto_msgTypes = make([]protoimpl.MessageInfo, 16)
|
||||||
var file_service_plan_proto_goTypes = []interface{}{
|
var file_service_plan_proto_goTypes = []interface{}{
|
||||||
(*CreatePlanRequest)(nil), // 0: pb.CreatePlanRequest
|
(*CreatePlanRequest)(nil), // 0: pb.CreatePlanRequest
|
||||||
(*CreatePlanResponse)(nil), // 1: pb.CreatePlanResponse
|
(*CreatePlanResponse)(nil), // 1: pb.CreatePlanResponse
|
||||||
@@ -1211,46 +1317,51 @@ var file_service_plan_proto_goTypes = []interface{}{
|
|||||||
(*DeletePlanRequest)(nil), // 3: pb.DeletePlanRequest
|
(*DeletePlanRequest)(nil), // 3: pb.DeletePlanRequest
|
||||||
(*FindEnabledPlanRequest)(nil), // 4: pb.FindEnabledPlanRequest
|
(*FindEnabledPlanRequest)(nil), // 4: pb.FindEnabledPlanRequest
|
||||||
(*FindEnabledPlanResponse)(nil), // 5: pb.FindEnabledPlanResponse
|
(*FindEnabledPlanResponse)(nil), // 5: pb.FindEnabledPlanResponse
|
||||||
(*CountAllEnabledPlansRequest)(nil), // 6: pb.CountAllEnabledPlansRequest
|
(*FindBasicPlanRequest)(nil), // 6: pb.FindBasicPlanRequest
|
||||||
(*ListEnabledPlansRequest)(nil), // 7: pb.ListEnabledPlansRequest
|
(*FindBasicPlanResponse)(nil), // 7: pb.FindBasicPlanResponse
|
||||||
(*ListEnabledPlansResponse)(nil), // 8: pb.ListEnabledPlansResponse
|
(*CountAllEnabledPlansRequest)(nil), // 8: pb.CountAllEnabledPlansRequest
|
||||||
(*FindAllAvailablePlansRequest)(nil), // 9: pb.FindAllAvailablePlansRequest
|
(*ListEnabledPlansRequest)(nil), // 9: pb.ListEnabledPlansRequest
|
||||||
(*FindAllAvailablePlansResponse)(nil), // 10: pb.FindAllAvailablePlansResponse
|
(*ListEnabledPlansResponse)(nil), // 10: pb.ListEnabledPlansResponse
|
||||||
(*FindAllAvailableBasicPlansRequest)(nil), // 11: pb.FindAllAvailableBasicPlansRequest
|
(*FindAllAvailablePlansRequest)(nil), // 11: pb.FindAllAvailablePlansRequest
|
||||||
(*FindAllAvailableBasicPlansResponse)(nil), // 12: pb.FindAllAvailableBasicPlansResponse
|
(*FindAllAvailablePlansResponse)(nil), // 12: pb.FindAllAvailablePlansResponse
|
||||||
(*SortPlansRequest)(nil), // 13: pb.SortPlansRequest
|
(*FindAllAvailableBasicPlansRequest)(nil), // 13: pb.FindAllAvailableBasicPlansRequest
|
||||||
(*Plan)(nil), // 14: pb.Plan
|
(*FindAllAvailableBasicPlansResponse)(nil), // 14: pb.FindAllAvailableBasicPlansResponse
|
||||||
(*RPCSuccess)(nil), // 15: pb.RPCSuccess
|
(*SortPlansRequest)(nil), // 15: pb.SortPlansRequest
|
||||||
(*RPCCountResponse)(nil), // 16: pb.RPCCountResponse
|
(*Plan)(nil), // 16: pb.Plan
|
||||||
|
(*RPCSuccess)(nil), // 17: pb.RPCSuccess
|
||||||
|
(*RPCCountResponse)(nil), // 18: pb.RPCCountResponse
|
||||||
}
|
}
|
||||||
var file_service_plan_proto_depIdxs = []int32{
|
var file_service_plan_proto_depIdxs = []int32{
|
||||||
14, // 0: pb.FindEnabledPlanResponse.plan:type_name -> pb.Plan
|
16, // 0: pb.FindEnabledPlanResponse.plan:type_name -> pb.Plan
|
||||||
14, // 1: pb.ListEnabledPlansResponse.plans:type_name -> pb.Plan
|
16, // 1: pb.FindBasicPlanResponse.plan:type_name -> pb.Plan
|
||||||
14, // 2: pb.FindAllAvailablePlansResponse.plans:type_name -> pb.Plan
|
16, // 2: pb.ListEnabledPlansResponse.plans:type_name -> pb.Plan
|
||||||
14, // 3: pb.FindAllAvailableBasicPlansResponse.plans:type_name -> pb.Plan
|
16, // 3: pb.FindAllAvailablePlansResponse.plans:type_name -> pb.Plan
|
||||||
0, // 4: pb.PlanService.createPlan:input_type -> pb.CreatePlanRequest
|
16, // 4: pb.FindAllAvailableBasicPlansResponse.plans:type_name -> pb.Plan
|
||||||
2, // 5: pb.PlanService.updatePlan:input_type -> pb.UpdatePlanRequest
|
0, // 5: pb.PlanService.createPlan:input_type -> pb.CreatePlanRequest
|
||||||
3, // 6: pb.PlanService.deletePlan:input_type -> pb.DeletePlanRequest
|
2, // 6: pb.PlanService.updatePlan:input_type -> pb.UpdatePlanRequest
|
||||||
4, // 7: pb.PlanService.findEnabledPlan:input_type -> pb.FindEnabledPlanRequest
|
3, // 7: pb.PlanService.deletePlan:input_type -> pb.DeletePlanRequest
|
||||||
6, // 8: pb.PlanService.countAllEnabledPlans:input_type -> pb.CountAllEnabledPlansRequest
|
4, // 8: pb.PlanService.findEnabledPlan:input_type -> pb.FindEnabledPlanRequest
|
||||||
7, // 9: pb.PlanService.listEnabledPlans:input_type -> pb.ListEnabledPlansRequest
|
6, // 9: pb.PlanService.findBasicPlan:input_type -> pb.FindBasicPlanRequest
|
||||||
9, // 10: pb.PlanService.findAllAvailablePlans:input_type -> pb.FindAllAvailablePlansRequest
|
8, // 10: pb.PlanService.countAllEnabledPlans:input_type -> pb.CountAllEnabledPlansRequest
|
||||||
11, // 11: pb.PlanService.findAllAvailableBasicPlans:input_type -> pb.FindAllAvailableBasicPlansRequest
|
9, // 11: pb.PlanService.listEnabledPlans:input_type -> pb.ListEnabledPlansRequest
|
||||||
13, // 12: pb.PlanService.sortPlans:input_type -> pb.SortPlansRequest
|
11, // 12: pb.PlanService.findAllAvailablePlans:input_type -> pb.FindAllAvailablePlansRequest
|
||||||
1, // 13: pb.PlanService.createPlan:output_type -> pb.CreatePlanResponse
|
13, // 13: pb.PlanService.findAllAvailableBasicPlans:input_type -> pb.FindAllAvailableBasicPlansRequest
|
||||||
15, // 14: pb.PlanService.updatePlan:output_type -> pb.RPCSuccess
|
15, // 14: pb.PlanService.sortPlans:input_type -> pb.SortPlansRequest
|
||||||
15, // 15: pb.PlanService.deletePlan:output_type -> pb.RPCSuccess
|
1, // 15: pb.PlanService.createPlan:output_type -> pb.CreatePlanResponse
|
||||||
5, // 16: pb.PlanService.findEnabledPlan:output_type -> pb.FindEnabledPlanResponse
|
17, // 16: pb.PlanService.updatePlan:output_type -> pb.RPCSuccess
|
||||||
16, // 17: pb.PlanService.countAllEnabledPlans:output_type -> pb.RPCCountResponse
|
17, // 17: pb.PlanService.deletePlan:output_type -> pb.RPCSuccess
|
||||||
8, // 18: pb.PlanService.listEnabledPlans:output_type -> pb.ListEnabledPlansResponse
|
5, // 18: pb.PlanService.findEnabledPlan:output_type -> pb.FindEnabledPlanResponse
|
||||||
10, // 19: pb.PlanService.findAllAvailablePlans:output_type -> pb.FindAllAvailablePlansResponse
|
7, // 19: pb.PlanService.findBasicPlan:output_type -> pb.FindBasicPlanResponse
|
||||||
12, // 20: pb.PlanService.findAllAvailableBasicPlans:output_type -> pb.FindAllAvailableBasicPlansResponse
|
18, // 20: pb.PlanService.countAllEnabledPlans:output_type -> pb.RPCCountResponse
|
||||||
15, // 21: pb.PlanService.sortPlans:output_type -> pb.RPCSuccess
|
10, // 21: pb.PlanService.listEnabledPlans:output_type -> pb.ListEnabledPlansResponse
|
||||||
13, // [13:22] is the sub-list for method output_type
|
12, // 22: pb.PlanService.findAllAvailablePlans:output_type -> pb.FindAllAvailablePlansResponse
|
||||||
4, // [4:13] is the sub-list for method input_type
|
14, // 23: pb.PlanService.findAllAvailableBasicPlans:output_type -> pb.FindAllAvailableBasicPlansResponse
|
||||||
4, // [4:4] is the sub-list for extension type_name
|
17, // 24: pb.PlanService.sortPlans:output_type -> pb.RPCSuccess
|
||||||
4, // [4:4] is the sub-list for extension extendee
|
15, // [15:25] is the sub-list for method output_type
|
||||||
0, // [0:4] is the sub-list for field type_name
|
5, // [5:15] is the sub-list for method input_type
|
||||||
|
5, // [5:5] is the sub-list for extension type_name
|
||||||
|
5, // [5:5] is the sub-list for extension extendee
|
||||||
|
0, // [0:5] is the sub-list for field type_name
|
||||||
}
|
}
|
||||||
|
|
||||||
func init() { file_service_plan_proto_init() }
|
func init() { file_service_plan_proto_init() }
|
||||||
@@ -1334,7 +1445,7 @@ func file_service_plan_proto_init() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
file_service_plan_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
|
file_service_plan_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
|
||||||
switch v := v.(*CountAllEnabledPlansRequest); i {
|
switch v := v.(*FindBasicPlanRequest); i {
|
||||||
case 0:
|
case 0:
|
||||||
return &v.state
|
return &v.state
|
||||||
case 1:
|
case 1:
|
||||||
@@ -1346,7 +1457,7 @@ func file_service_plan_proto_init() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
file_service_plan_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
|
file_service_plan_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
|
||||||
switch v := v.(*ListEnabledPlansRequest); i {
|
switch v := v.(*FindBasicPlanResponse); i {
|
||||||
case 0:
|
case 0:
|
||||||
return &v.state
|
return &v.state
|
||||||
case 1:
|
case 1:
|
||||||
@@ -1358,7 +1469,7 @@ func file_service_plan_proto_init() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
file_service_plan_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
|
file_service_plan_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
|
||||||
switch v := v.(*ListEnabledPlansResponse); i {
|
switch v := v.(*CountAllEnabledPlansRequest); i {
|
||||||
case 0:
|
case 0:
|
||||||
return &v.state
|
return &v.state
|
||||||
case 1:
|
case 1:
|
||||||
@@ -1370,7 +1481,7 @@ func file_service_plan_proto_init() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
file_service_plan_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
|
file_service_plan_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
|
||||||
switch v := v.(*FindAllAvailablePlansRequest); i {
|
switch v := v.(*ListEnabledPlansRequest); i {
|
||||||
case 0:
|
case 0:
|
||||||
return &v.state
|
return &v.state
|
||||||
case 1:
|
case 1:
|
||||||
@@ -1382,7 +1493,7 @@ func file_service_plan_proto_init() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
file_service_plan_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
|
file_service_plan_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
|
||||||
switch v := v.(*FindAllAvailablePlansResponse); i {
|
switch v := v.(*ListEnabledPlansResponse); i {
|
||||||
case 0:
|
case 0:
|
||||||
return &v.state
|
return &v.state
|
||||||
case 1:
|
case 1:
|
||||||
@@ -1394,7 +1505,7 @@ func file_service_plan_proto_init() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
file_service_plan_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
|
file_service_plan_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
|
||||||
switch v := v.(*FindAllAvailableBasicPlansRequest); i {
|
switch v := v.(*FindAllAvailablePlansRequest); i {
|
||||||
case 0:
|
case 0:
|
||||||
return &v.state
|
return &v.state
|
||||||
case 1:
|
case 1:
|
||||||
@@ -1406,7 +1517,7 @@ func file_service_plan_proto_init() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
file_service_plan_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
|
file_service_plan_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
|
||||||
switch v := v.(*FindAllAvailableBasicPlansResponse); i {
|
switch v := v.(*FindAllAvailablePlansResponse); i {
|
||||||
case 0:
|
case 0:
|
||||||
return &v.state
|
return &v.state
|
||||||
case 1:
|
case 1:
|
||||||
@@ -1418,6 +1529,30 @@ func file_service_plan_proto_init() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
file_service_plan_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} {
|
file_service_plan_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} {
|
||||||
|
switch v := v.(*FindAllAvailableBasicPlansRequest); i {
|
||||||
|
case 0:
|
||||||
|
return &v.state
|
||||||
|
case 1:
|
||||||
|
return &v.sizeCache
|
||||||
|
case 2:
|
||||||
|
return &v.unknownFields
|
||||||
|
default:
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
}
|
||||||
|
file_service_plan_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} {
|
||||||
|
switch v := v.(*FindAllAvailableBasicPlansResponse); i {
|
||||||
|
case 0:
|
||||||
|
return &v.state
|
||||||
|
case 1:
|
||||||
|
return &v.sizeCache
|
||||||
|
case 2:
|
||||||
|
return &v.unknownFields
|
||||||
|
default:
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
}
|
||||||
|
file_service_plan_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} {
|
||||||
switch v := v.(*SortPlansRequest); i {
|
switch v := v.(*SortPlansRequest); i {
|
||||||
case 0:
|
case 0:
|
||||||
return &v.state
|
return &v.state
|
||||||
@@ -1436,7 +1571,7 @@ func file_service_plan_proto_init() {
|
|||||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||||
RawDescriptor: file_service_plan_proto_rawDesc,
|
RawDescriptor: file_service_plan_proto_rawDesc,
|
||||||
NumEnums: 0,
|
NumEnums: 0,
|
||||||
NumMessages: 14,
|
NumMessages: 16,
|
||||||
NumExtensions: 0,
|
NumExtensions: 0,
|
||||||
NumServices: 1,
|
NumServices: 1,
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -23,6 +23,7 @@ const (
|
|||||||
PlanService_UpdatePlan_FullMethodName = "/pb.PlanService/updatePlan"
|
PlanService_UpdatePlan_FullMethodName = "/pb.PlanService/updatePlan"
|
||||||
PlanService_DeletePlan_FullMethodName = "/pb.PlanService/deletePlan"
|
PlanService_DeletePlan_FullMethodName = "/pb.PlanService/deletePlan"
|
||||||
PlanService_FindEnabledPlan_FullMethodName = "/pb.PlanService/findEnabledPlan"
|
PlanService_FindEnabledPlan_FullMethodName = "/pb.PlanService/findEnabledPlan"
|
||||||
|
PlanService_FindBasicPlan_FullMethodName = "/pb.PlanService/findBasicPlan"
|
||||||
PlanService_CountAllEnabledPlans_FullMethodName = "/pb.PlanService/countAllEnabledPlans"
|
PlanService_CountAllEnabledPlans_FullMethodName = "/pb.PlanService/countAllEnabledPlans"
|
||||||
PlanService_ListEnabledPlans_FullMethodName = "/pb.PlanService/listEnabledPlans"
|
PlanService_ListEnabledPlans_FullMethodName = "/pb.PlanService/listEnabledPlans"
|
||||||
PlanService_FindAllAvailablePlans_FullMethodName = "/pb.PlanService/findAllAvailablePlans"
|
PlanService_FindAllAvailablePlans_FullMethodName = "/pb.PlanService/findAllAvailablePlans"
|
||||||
@@ -42,6 +43,8 @@ type PlanServiceClient interface {
|
|||||||
DeletePlan(ctx context.Context, in *DeletePlanRequest, opts ...grpc.CallOption) (*RPCSuccess, error)
|
DeletePlan(ctx context.Context, in *DeletePlanRequest, opts ...grpc.CallOption) (*RPCSuccess, error)
|
||||||
// 查找单个套餐
|
// 查找单个套餐
|
||||||
FindEnabledPlan(ctx context.Context, in *FindEnabledPlanRequest, opts ...grpc.CallOption) (*FindEnabledPlanResponse, error)
|
FindEnabledPlan(ctx context.Context, in *FindEnabledPlanRequest, opts ...grpc.CallOption) (*FindEnabledPlanResponse, error)
|
||||||
|
// 查找套餐基本信息
|
||||||
|
FindBasicPlan(ctx context.Context, in *FindBasicPlanRequest, opts ...grpc.CallOption) (*FindBasicPlanResponse, error)
|
||||||
// 计算套餐数量
|
// 计算套餐数量
|
||||||
CountAllEnabledPlans(ctx context.Context, in *CountAllEnabledPlansRequest, opts ...grpc.CallOption) (*RPCCountResponse, error)
|
CountAllEnabledPlans(ctx context.Context, in *CountAllEnabledPlansRequest, opts ...grpc.CallOption) (*RPCCountResponse, error)
|
||||||
// 列出单页套餐
|
// 列出单页套餐
|
||||||
@@ -98,6 +101,15 @@ func (c *planServiceClient) FindEnabledPlan(ctx context.Context, in *FindEnabled
|
|||||||
return out, nil
|
return out, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (c *planServiceClient) FindBasicPlan(ctx context.Context, in *FindBasicPlanRequest, opts ...grpc.CallOption) (*FindBasicPlanResponse, error) {
|
||||||
|
out := new(FindBasicPlanResponse)
|
||||||
|
err := c.cc.Invoke(ctx, PlanService_FindBasicPlan_FullMethodName, in, out, opts...)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return out, nil
|
||||||
|
}
|
||||||
|
|
||||||
func (c *planServiceClient) CountAllEnabledPlans(ctx context.Context, in *CountAllEnabledPlansRequest, opts ...grpc.CallOption) (*RPCCountResponse, error) {
|
func (c *planServiceClient) CountAllEnabledPlans(ctx context.Context, in *CountAllEnabledPlansRequest, opts ...grpc.CallOption) (*RPCCountResponse, error) {
|
||||||
out := new(RPCCountResponse)
|
out := new(RPCCountResponse)
|
||||||
err := c.cc.Invoke(ctx, PlanService_CountAllEnabledPlans_FullMethodName, in, out, opts...)
|
err := c.cc.Invoke(ctx, PlanService_CountAllEnabledPlans_FullMethodName, in, out, opts...)
|
||||||
@@ -155,6 +167,8 @@ type PlanServiceServer interface {
|
|||||||
DeletePlan(context.Context, *DeletePlanRequest) (*RPCSuccess, error)
|
DeletePlan(context.Context, *DeletePlanRequest) (*RPCSuccess, error)
|
||||||
// 查找单个套餐
|
// 查找单个套餐
|
||||||
FindEnabledPlan(context.Context, *FindEnabledPlanRequest) (*FindEnabledPlanResponse, error)
|
FindEnabledPlan(context.Context, *FindEnabledPlanRequest) (*FindEnabledPlanResponse, error)
|
||||||
|
// 查找套餐基本信息
|
||||||
|
FindBasicPlan(context.Context, *FindBasicPlanRequest) (*FindBasicPlanResponse, error)
|
||||||
// 计算套餐数量
|
// 计算套餐数量
|
||||||
CountAllEnabledPlans(context.Context, *CountAllEnabledPlansRequest) (*RPCCountResponse, error)
|
CountAllEnabledPlans(context.Context, *CountAllEnabledPlansRequest) (*RPCCountResponse, error)
|
||||||
// 列出单页套餐
|
// 列出单页套餐
|
||||||
@@ -183,6 +197,9 @@ func (UnimplementedPlanServiceServer) DeletePlan(context.Context, *DeletePlanReq
|
|||||||
func (UnimplementedPlanServiceServer) FindEnabledPlan(context.Context, *FindEnabledPlanRequest) (*FindEnabledPlanResponse, error) {
|
func (UnimplementedPlanServiceServer) FindEnabledPlan(context.Context, *FindEnabledPlanRequest) (*FindEnabledPlanResponse, error) {
|
||||||
return nil, status.Errorf(codes.Unimplemented, "method FindEnabledPlan not implemented")
|
return nil, status.Errorf(codes.Unimplemented, "method FindEnabledPlan not implemented")
|
||||||
}
|
}
|
||||||
|
func (UnimplementedPlanServiceServer) FindBasicPlan(context.Context, *FindBasicPlanRequest) (*FindBasicPlanResponse, error) {
|
||||||
|
return nil, status.Errorf(codes.Unimplemented, "method FindBasicPlan not implemented")
|
||||||
|
}
|
||||||
func (UnimplementedPlanServiceServer) CountAllEnabledPlans(context.Context, *CountAllEnabledPlansRequest) (*RPCCountResponse, error) {
|
func (UnimplementedPlanServiceServer) CountAllEnabledPlans(context.Context, *CountAllEnabledPlansRequest) (*RPCCountResponse, error) {
|
||||||
return nil, status.Errorf(codes.Unimplemented, "method CountAllEnabledPlans not implemented")
|
return nil, status.Errorf(codes.Unimplemented, "method CountAllEnabledPlans not implemented")
|
||||||
}
|
}
|
||||||
@@ -282,6 +299,24 @@ func _PlanService_FindEnabledPlan_Handler(srv interface{}, ctx context.Context,
|
|||||||
return interceptor(ctx, in, info, handler)
|
return interceptor(ctx, in, info, handler)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func _PlanService_FindBasicPlan_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||||
|
in := new(FindBasicPlanRequest)
|
||||||
|
if err := dec(in); err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
if interceptor == nil {
|
||||||
|
return srv.(PlanServiceServer).FindBasicPlan(ctx, in)
|
||||||
|
}
|
||||||
|
info := &grpc.UnaryServerInfo{
|
||||||
|
Server: srv,
|
||||||
|
FullMethod: PlanService_FindBasicPlan_FullMethodName,
|
||||||
|
}
|
||||||
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||||
|
return srv.(PlanServiceServer).FindBasicPlan(ctx, req.(*FindBasicPlanRequest))
|
||||||
|
}
|
||||||
|
return interceptor(ctx, in, info, handler)
|
||||||
|
}
|
||||||
|
|
||||||
func _PlanService_CountAllEnabledPlans_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
func _PlanService_CountAllEnabledPlans_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||||
in := new(CountAllEnabledPlansRequest)
|
in := new(CountAllEnabledPlansRequest)
|
||||||
if err := dec(in); err != nil {
|
if err := dec(in); err != nil {
|
||||||
@@ -395,6 +430,10 @@ var PlanService_ServiceDesc = grpc.ServiceDesc{
|
|||||||
MethodName: "findEnabledPlan",
|
MethodName: "findEnabledPlan",
|
||||||
Handler: _PlanService_FindEnabledPlan_Handler,
|
Handler: _PlanService_FindEnabledPlan_Handler,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
MethodName: "findBasicPlan",
|
||||||
|
Handler: _PlanService_FindBasicPlan_Handler,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
MethodName: "countAllEnabledPlans",
|
MethodName: "countAllEnabledPlans",
|
||||||
Handler: _PlanService_CountAllEnabledPlans_Handler,
|
Handler: _PlanService_CountAllEnabledPlans_Handler,
|
||||||
|
|||||||
@@ -20,6 +20,9 @@ service PlanService {
|
|||||||
// 查找单个套餐
|
// 查找单个套餐
|
||||||
rpc findEnabledPlan(FindEnabledPlanRequest) returns (FindEnabledPlanResponse);
|
rpc findEnabledPlan(FindEnabledPlanRequest) returns (FindEnabledPlanResponse);
|
||||||
|
|
||||||
|
// 查找套餐基本信息
|
||||||
|
rpc findBasicPlan(FindBasicPlanRequest) returns (FindBasicPlanResponse);
|
||||||
|
|
||||||
// 计算套餐数量
|
// 计算套餐数量
|
||||||
rpc countAllEnabledPlans(CountAllEnabledPlansRequest) returns (RPCCountResponse);
|
rpc countAllEnabledPlans(CountAllEnabledPlansRequest) returns (RPCCountResponse);
|
||||||
|
|
||||||
@@ -104,6 +107,15 @@ message FindEnabledPlanResponse {
|
|||||||
Plan plan = 1; // 套餐信息
|
Plan plan = 1; // 套餐信息
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 查找套餐基本信息
|
||||||
|
message FindBasicPlanRequest {
|
||||||
|
int64 planId = 1; // 套餐ID
|
||||||
|
}
|
||||||
|
|
||||||
|
message FindBasicPlanResponse {
|
||||||
|
Plan plan = 1; // 套餐信息(只读取基本信息)
|
||||||
|
}
|
||||||
|
|
||||||
// 计算套餐数量
|
// 计算套餐数量
|
||||||
message CountAllEnabledPlansRequest {
|
message CountAllEnabledPlansRequest {
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user