880 lines
28 KiB
Go
880 lines
28 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.11
|
|
// protoc v3.19.6
|
|
// source: service_user_plan.proto
|
|
|
|
package pb
|
|
|
|
import (
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
reflect "reflect"
|
|
sync "sync"
|
|
unsafe "unsafe"
|
|
)
|
|
|
|
const (
|
|
// Verify that this generated code is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
|
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
)
|
|
|
|
// 添加已购套餐
|
|
type BuyUserPlanRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
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"`
|
|
Name string `protobuf:"bytes,6,opt,name=name,proto3" json:"name,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *BuyUserPlanRequest) Reset() {
|
|
*x = BuyUserPlanRequest{}
|
|
mi := &file_service_user_plan_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *BuyUserPlanRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*BuyUserPlanRequest) ProtoMessage() {}
|
|
|
|
func (x *BuyUserPlanRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_user_plan_proto_msgTypes[0]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use BuyUserPlanRequest.ProtoReflect.Descriptor instead.
|
|
func (*BuyUserPlanRequest) Descriptor() ([]byte, []int) {
|
|
return file_service_user_plan_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *BuyUserPlanRequest) GetUserId() int64 {
|
|
if x != nil {
|
|
return x.UserId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *BuyUserPlanRequest) GetPlanId() int64 {
|
|
if x != nil {
|
|
return x.PlanId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *BuyUserPlanRequest) GetDayTo() string {
|
|
if x != nil {
|
|
return x.DayTo
|
|
}
|
|
return ""
|
|
}
|
|
|
|
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
|
|
}
|
|
|
|
func (x *BuyUserPlanRequest) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type BuyUserPlanResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
UserPlanId int64 `protobuf:"varint,1,opt,name=userPlanId,proto3" json:"userPlanId,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *BuyUserPlanResponse) Reset() {
|
|
*x = BuyUserPlanResponse{}
|
|
mi := &file_service_user_plan_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *BuyUserPlanResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*BuyUserPlanResponse) ProtoMessage() {}
|
|
|
|
func (x *BuyUserPlanResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_user_plan_proto_msgTypes[1]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use BuyUserPlanResponse.ProtoReflect.Descriptor instead.
|
|
func (*BuyUserPlanResponse) Descriptor() ([]byte, []int) {
|
|
return file_service_user_plan_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *BuyUserPlanResponse) GetUserPlanId() int64 {
|
|
if x != nil {
|
|
return x.UserPlanId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// 续费套餐
|
|
type RenewUserPlanRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
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"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *RenewUserPlanRequest) Reset() {
|
|
*x = RenewUserPlanRequest{}
|
|
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 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 `protogen:"open.v1"`
|
|
UserPlanId int64 `protobuf:"varint,1,opt,name=userPlanId,proto3" json:"userPlanId,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *FindEnabledUserPlanRequest) Reset() {
|
|
*x = FindEnabledUserPlanRequest{}
|
|
mi := &file_service_user_plan_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *FindEnabledUserPlanRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*FindEnabledUserPlanRequest) ProtoMessage() {}
|
|
|
|
func (x *FindEnabledUserPlanRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_user_plan_proto_msgTypes[3]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use FindEnabledUserPlanRequest.ProtoReflect.Descriptor instead.
|
|
func (*FindEnabledUserPlanRequest) Descriptor() ([]byte, []int) {
|
|
return file_service_user_plan_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
func (x *FindEnabledUserPlanRequest) GetUserPlanId() int64 {
|
|
if x != nil {
|
|
return x.UserPlanId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type FindEnabledUserPlanResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
UserPlan *UserPlan `protobuf:"bytes,1,opt,name=userPlan,proto3" json:"userPlan,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *FindEnabledUserPlanResponse) Reset() {
|
|
*x = FindEnabledUserPlanResponse{}
|
|
mi := &file_service_user_plan_proto_msgTypes[4]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *FindEnabledUserPlanResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*FindEnabledUserPlanResponse) ProtoMessage() {}
|
|
|
|
func (x *FindEnabledUserPlanResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_user_plan_proto_msgTypes[4]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use FindEnabledUserPlanResponse.ProtoReflect.Descriptor instead.
|
|
func (*FindEnabledUserPlanResponse) Descriptor() ([]byte, []int) {
|
|
return file_service_user_plan_proto_rawDescGZIP(), []int{4}
|
|
}
|
|
|
|
func (x *FindEnabledUserPlanResponse) GetUserPlan() *UserPlan {
|
|
if x != nil {
|
|
return x.UserPlan
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// 修改已购套餐
|
|
type UpdateUserPlanRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
UserPlanId int64 `protobuf:"varint,1,opt,name=userPlanId,proto3" json:"userPlanId,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"`
|
|
IsOn bool `protobuf:"varint,4,opt,name=isOn,proto3" json:"isOn,omitempty"`
|
|
Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *UpdateUserPlanRequest) Reset() {
|
|
*x = UpdateUserPlanRequest{}
|
|
mi := &file_service_user_plan_proto_msgTypes[5]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *UpdateUserPlanRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*UpdateUserPlanRequest) ProtoMessage() {}
|
|
|
|
func (x *UpdateUserPlanRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_user_plan_proto_msgTypes[5]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use UpdateUserPlanRequest.ProtoReflect.Descriptor instead.
|
|
func (*UpdateUserPlanRequest) Descriptor() ([]byte, []int) {
|
|
return file_service_user_plan_proto_rawDescGZIP(), []int{5}
|
|
}
|
|
|
|
func (x *UpdateUserPlanRequest) GetUserPlanId() int64 {
|
|
if x != nil {
|
|
return x.UserPlanId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *UpdateUserPlanRequest) GetPlanId() int64 {
|
|
if x != nil {
|
|
return x.PlanId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *UpdateUserPlanRequest) GetDayTo() string {
|
|
if x != nil {
|
|
return x.DayTo
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UpdateUserPlanRequest) GetIsOn() bool {
|
|
if x != nil {
|
|
return x.IsOn
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *UpdateUserPlanRequest) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// 删除已购套餐
|
|
type DeleteUserPlanRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
UserPlanId int64 `protobuf:"varint,1,opt,name=userPlanId,proto3" json:"userPlanId,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *DeleteUserPlanRequest) Reset() {
|
|
*x = DeleteUserPlanRequest{}
|
|
mi := &file_service_user_plan_proto_msgTypes[6]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *DeleteUserPlanRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DeleteUserPlanRequest) ProtoMessage() {}
|
|
|
|
func (x *DeleteUserPlanRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_user_plan_proto_msgTypes[6]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use DeleteUserPlanRequest.ProtoReflect.Descriptor instead.
|
|
func (*DeleteUserPlanRequest) Descriptor() ([]byte, []int) {
|
|
return file_service_user_plan_proto_rawDescGZIP(), []int{6}
|
|
}
|
|
|
|
func (x *DeleteUserPlanRequest) GetUserPlanId() int64 {
|
|
if x != nil {
|
|
return x.UserPlanId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// 计算已购套餐数
|
|
type CountAllEnabledUserPlansRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
IsAvailable bool `protobuf:"varint,1,opt,name=isAvailable,proto3" json:"isAvailable,omitempty"`
|
|
IsExpired bool `protobuf:"varint,2,opt,name=isExpired,proto3" json:"isExpired,omitempty"`
|
|
ExpiringDays int32 `protobuf:"varint,3,opt,name=expiringDays,proto3" json:"expiringDays,omitempty"`
|
|
UserId int64 `protobuf:"varint,4,opt,name=userId,proto3" json:"userId,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CountAllEnabledUserPlansRequest) Reset() {
|
|
*x = CountAllEnabledUserPlansRequest{}
|
|
mi := &file_service_user_plan_proto_msgTypes[7]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CountAllEnabledUserPlansRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CountAllEnabledUserPlansRequest) ProtoMessage() {}
|
|
|
|
func (x *CountAllEnabledUserPlansRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_user_plan_proto_msgTypes[7]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use CountAllEnabledUserPlansRequest.ProtoReflect.Descriptor instead.
|
|
func (*CountAllEnabledUserPlansRequest) Descriptor() ([]byte, []int) {
|
|
return file_service_user_plan_proto_rawDescGZIP(), []int{7}
|
|
}
|
|
|
|
func (x *CountAllEnabledUserPlansRequest) GetIsAvailable() bool {
|
|
if x != nil {
|
|
return x.IsAvailable
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *CountAllEnabledUserPlansRequest) GetIsExpired() bool {
|
|
if x != nil {
|
|
return x.IsExpired
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *CountAllEnabledUserPlansRequest) GetExpiringDays() int32 {
|
|
if x != nil {
|
|
return x.ExpiringDays
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *CountAllEnabledUserPlansRequest) GetUserId() int64 {
|
|
if x != nil {
|
|
return x.UserId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// 列出单页已购套餐
|
|
type ListEnabledUserPlansRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
IsAvailable bool `protobuf:"varint,1,opt,name=isAvailable,proto3" json:"isAvailable,omitempty"`
|
|
IsExpired bool `protobuf:"varint,2,opt,name=isExpired,proto3" json:"isExpired,omitempty"`
|
|
ExpiringDays int32 `protobuf:"varint,3,opt,name=expiringDays,proto3" json:"expiringDays,omitempty"`
|
|
UserId int64 `protobuf:"varint,4,opt,name=userId,proto3" json:"userId,omitempty"`
|
|
Offset int64 `protobuf:"varint,5,opt,name=offset,proto3" json:"offset,omitempty"`
|
|
Size int64 `protobuf:"varint,6,opt,name=size,proto3" json:"size,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ListEnabledUserPlansRequest) Reset() {
|
|
*x = ListEnabledUserPlansRequest{}
|
|
mi := &file_service_user_plan_proto_msgTypes[8]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ListEnabledUserPlansRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ListEnabledUserPlansRequest) ProtoMessage() {}
|
|
|
|
func (x *ListEnabledUserPlansRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_user_plan_proto_msgTypes[8]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ListEnabledUserPlansRequest.ProtoReflect.Descriptor instead.
|
|
func (*ListEnabledUserPlansRequest) Descriptor() ([]byte, []int) {
|
|
return file_service_user_plan_proto_rawDescGZIP(), []int{8}
|
|
}
|
|
|
|
func (x *ListEnabledUserPlansRequest) GetIsAvailable() bool {
|
|
if x != nil {
|
|
return x.IsAvailable
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *ListEnabledUserPlansRequest) GetIsExpired() bool {
|
|
if x != nil {
|
|
return x.IsExpired
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *ListEnabledUserPlansRequest) GetExpiringDays() int32 {
|
|
if x != nil {
|
|
return x.ExpiringDays
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *ListEnabledUserPlansRequest) GetUserId() int64 {
|
|
if x != nil {
|
|
return x.UserId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *ListEnabledUserPlansRequest) GetOffset() int64 {
|
|
if x != nil {
|
|
return x.Offset
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *ListEnabledUserPlansRequest) GetSize() int64 {
|
|
if x != nil {
|
|
return x.Size
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type ListEnabledUserPlansResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
UserPlans []*UserPlan `protobuf:"bytes,1,rep,name=userPlans,proto3" json:"userPlans,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ListEnabledUserPlansResponse) Reset() {
|
|
*x = ListEnabledUserPlansResponse{}
|
|
mi := &file_service_user_plan_proto_msgTypes[9]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ListEnabledUserPlansResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ListEnabledUserPlansResponse) ProtoMessage() {}
|
|
|
|
func (x *ListEnabledUserPlansResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_user_plan_proto_msgTypes[9]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ListEnabledUserPlansResponse.ProtoReflect.Descriptor instead.
|
|
func (*ListEnabledUserPlansResponse) Descriptor() ([]byte, []int) {
|
|
return file_service_user_plan_proto_rawDescGZIP(), []int{9}
|
|
}
|
|
|
|
func (x *ListEnabledUserPlansResponse) GetUserPlans() []*UserPlan {
|
|
if x != nil {
|
|
return x.UserPlans
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// 查找所有服务可用的套餐
|
|
type FindAllEnabledUserPlansForServerRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
UserId int64 `protobuf:"varint,1,opt,name=userId,proto3" json:"userId,omitempty"`
|
|
ServerId int64 `protobuf:"varint,2,opt,name=serverId,proto3" json:"serverId,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *FindAllEnabledUserPlansForServerRequest) Reset() {
|
|
*x = FindAllEnabledUserPlansForServerRequest{}
|
|
mi := &file_service_user_plan_proto_msgTypes[10]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *FindAllEnabledUserPlansForServerRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*FindAllEnabledUserPlansForServerRequest) ProtoMessage() {}
|
|
|
|
func (x *FindAllEnabledUserPlansForServerRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_user_plan_proto_msgTypes[10]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use FindAllEnabledUserPlansForServerRequest.ProtoReflect.Descriptor instead.
|
|
func (*FindAllEnabledUserPlansForServerRequest) Descriptor() ([]byte, []int) {
|
|
return file_service_user_plan_proto_rawDescGZIP(), []int{10}
|
|
}
|
|
|
|
func (x *FindAllEnabledUserPlansForServerRequest) GetUserId() int64 {
|
|
if x != nil {
|
|
return x.UserId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *FindAllEnabledUserPlansForServerRequest) GetServerId() int64 {
|
|
if x != nil {
|
|
return x.ServerId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type FindAllEnabledUserPlansForServerResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
UserPlans []*UserPlan `protobuf:"bytes,1,rep,name=userPlans,proto3" json:"userPlans,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *FindAllEnabledUserPlansForServerResponse) Reset() {
|
|
*x = FindAllEnabledUserPlansForServerResponse{}
|
|
mi := &file_service_user_plan_proto_msgTypes[11]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *FindAllEnabledUserPlansForServerResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*FindAllEnabledUserPlansForServerResponse) ProtoMessage() {}
|
|
|
|
func (x *FindAllEnabledUserPlansForServerResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_service_user_plan_proto_msgTypes[11]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use FindAllEnabledUserPlansForServerResponse.ProtoReflect.Descriptor instead.
|
|
func (*FindAllEnabledUserPlansForServerResponse) Descriptor() ([]byte, []int) {
|
|
return file_service_user_plan_proto_rawDescGZIP(), []int{11}
|
|
}
|
|
|
|
func (x *FindAllEnabledUserPlansForServerResponse) GetUserPlans() []*UserPlan {
|
|
if x != nil {
|
|
return x.UserPlans
|
|
}
|
|
return nil
|
|
}
|
|
|
|
var File_service_user_plan_proto protoreflect.FileDescriptor
|
|
|
|
const file_service_user_plan_proto_rawDesc = "" +
|
|
"\n" +
|
|
"\x17service_user_plan.proto\x12\x02pb\x1a\x19models/rpc_messages.proto\x1a\x1cmodels/model_user_plan.proto\"\xa8\x01\n" +
|
|
"\x12BuyUserPlanRequest\x12\x16\n" +
|
|
"\x06userId\x18\x01 \x01(\x03R\x06userId\x12\x16\n" +
|
|
"\x06planId\x18\x02 \x01(\x03R\x06planId\x12\x14\n" +
|
|
"\x05dayTo\x18\x03 \x01(\tR\x05dayTo\x12\x16\n" +
|
|
"\x06period\x18\x04 \x01(\tR\x06period\x12 \n" +
|
|
"\vcountPeriod\x18\x05 \x01(\x05R\vcountPeriod\x12\x12\n" +
|
|
"\x04name\x18\x06 \x01(\tR\x04name\"5\n" +
|
|
"\x13BuyUserPlanResponse\x12\x1e\n" +
|
|
"\n" +
|
|
"userPlanId\x18\x01 \x01(\x03R\n" +
|
|
"userPlanId\"\x86\x01\n" +
|
|
"\x14RenewUserPlanRequest\x12\x1e\n" +
|
|
"\n" +
|
|
"userPlanId\x18\x01 \x01(\x03R\n" +
|
|
"userPlanId\x12\x14\n" +
|
|
"\x05dayTo\x18\x03 \x01(\tR\x05dayTo\x12\x16\n" +
|
|
"\x06period\x18\x04 \x01(\tR\x06period\x12 \n" +
|
|
"\vcountPeriod\x18\x05 \x01(\x05R\vcountPeriod\"<\n" +
|
|
"\x1aFindEnabledUserPlanRequest\x12\x1e\n" +
|
|
"\n" +
|
|
"userPlanId\x18\x01 \x01(\x03R\n" +
|
|
"userPlanId\"G\n" +
|
|
"\x1bFindEnabledUserPlanResponse\x12(\n" +
|
|
"\buserPlan\x18\x01 \x01(\v2\f.pb.UserPlanR\buserPlan\"\x8d\x01\n" +
|
|
"\x15UpdateUserPlanRequest\x12\x1e\n" +
|
|
"\n" +
|
|
"userPlanId\x18\x01 \x01(\x03R\n" +
|
|
"userPlanId\x12\x16\n" +
|
|
"\x06planId\x18\x02 \x01(\x03R\x06planId\x12\x14\n" +
|
|
"\x05dayTo\x18\x03 \x01(\tR\x05dayTo\x12\x12\n" +
|
|
"\x04isOn\x18\x04 \x01(\bR\x04isOn\x12\x12\n" +
|
|
"\x04name\x18\x05 \x01(\tR\x04name\"7\n" +
|
|
"\x15DeleteUserPlanRequest\x12\x1e\n" +
|
|
"\n" +
|
|
"userPlanId\x18\x01 \x01(\x03R\n" +
|
|
"userPlanId\"\x9d\x01\n" +
|
|
"\x1fCountAllEnabledUserPlansRequest\x12 \n" +
|
|
"\visAvailable\x18\x01 \x01(\bR\visAvailable\x12\x1c\n" +
|
|
"\tisExpired\x18\x02 \x01(\bR\tisExpired\x12\"\n" +
|
|
"\fexpiringDays\x18\x03 \x01(\x05R\fexpiringDays\x12\x16\n" +
|
|
"\x06userId\x18\x04 \x01(\x03R\x06userId\"\xc5\x01\n" +
|
|
"\x1bListEnabledUserPlansRequest\x12 \n" +
|
|
"\visAvailable\x18\x01 \x01(\bR\visAvailable\x12\x1c\n" +
|
|
"\tisExpired\x18\x02 \x01(\bR\tisExpired\x12\"\n" +
|
|
"\fexpiringDays\x18\x03 \x01(\x05R\fexpiringDays\x12\x16\n" +
|
|
"\x06userId\x18\x04 \x01(\x03R\x06userId\x12\x16\n" +
|
|
"\x06offset\x18\x05 \x01(\x03R\x06offset\x12\x12\n" +
|
|
"\x04size\x18\x06 \x01(\x03R\x04size\"J\n" +
|
|
"\x1cListEnabledUserPlansResponse\x12*\n" +
|
|
"\tuserPlans\x18\x01 \x03(\v2\f.pb.UserPlanR\tuserPlans\"]\n" +
|
|
"'FindAllEnabledUserPlansForServerRequest\x12\x16\n" +
|
|
"\x06userId\x18\x01 \x01(\x03R\x06userId\x12\x1a\n" +
|
|
"\bserverId\x18\x02 \x01(\x03R\bserverId\"V\n" +
|
|
"(FindAllEnabledUserPlansForServerResponse\x12*\n" +
|
|
"\tuserPlans\x18\x01 \x03(\v2\f.pb.UserPlanR\tuserPlans2\x8f\x05\n" +
|
|
"\x0fUserPlanService\x12>\n" +
|
|
"\vbuyUserPlan\x12\x16.pb.BuyUserPlanRequest\x1a\x17.pb.BuyUserPlanResponse\x129\n" +
|
|
"\rrenewUserPlan\x12\x18.pb.RenewUserPlanRequest\x1a\x0e.pb.RPCSuccess\x12V\n" +
|
|
"\x13findEnabledUserPlan\x12\x1e.pb.FindEnabledUserPlanRequest\x1a\x1f.pb.FindEnabledUserPlanResponse\x12;\n" +
|
|
"\x0eupdateUserPlan\x12\x19.pb.UpdateUserPlanRequest\x1a\x0e.pb.RPCSuccess\x12;\n" +
|
|
"\x0edeleteUserPlan\x12\x19.pb.DeleteUserPlanRequest\x1a\x0e.pb.RPCSuccess\x12U\n" +
|
|
"\x18countAllEnabledUserPlans\x12#.pb.CountAllEnabledUserPlansRequest\x1a\x14.pb.RPCCountResponse\x12Y\n" +
|
|
"\x14listEnabledUserPlans\x12\x1f.pb.ListEnabledUserPlansRequest\x1a .pb.ListEnabledUserPlansResponse\x12}\n" +
|
|
" findAllEnabledUserPlansForServer\x12+.pb.FindAllEnabledUserPlansForServerRequest\x1a,.pb.FindAllEnabledUserPlansForServerResponseB\x06Z\x04./pbb\x06proto3"
|
|
|
|
var (
|
|
file_service_user_plan_proto_rawDescOnce sync.Once
|
|
file_service_user_plan_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_service_user_plan_proto_rawDescGZIP() []byte {
|
|
file_service_user_plan_proto_rawDescOnce.Do(func() {
|
|
file_service_user_plan_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_service_user_plan_proto_rawDesc), len(file_service_user_plan_proto_rawDesc)))
|
|
})
|
|
return file_service_user_plan_proto_rawDescData
|
|
}
|
|
|
|
var file_service_user_plan_proto_msgTypes = make([]protoimpl.MessageInfo, 12)
|
|
var file_service_user_plan_proto_goTypes = []any{
|
|
(*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
|
|
(*FindAllEnabledUserPlansForServerRequest)(nil), // 10: pb.FindAllEnabledUserPlansForServerRequest
|
|
(*FindAllEnabledUserPlansForServerResponse)(nil), // 11: pb.FindAllEnabledUserPlansForServerResponse
|
|
(*UserPlan)(nil), // 12: pb.UserPlan
|
|
(*RPCSuccess)(nil), // 13: pb.RPCSuccess
|
|
(*RPCCountResponse)(nil), // 14: pb.RPCCountResponse
|
|
}
|
|
var file_service_user_plan_proto_depIdxs = []int32{
|
|
12, // 0: pb.FindEnabledUserPlanResponse.userPlan:type_name -> pb.UserPlan
|
|
12, // 1: pb.ListEnabledUserPlansResponse.userPlans:type_name -> pb.UserPlan
|
|
12, // 2: pb.FindAllEnabledUserPlansForServerResponse.userPlans:type_name -> pb.UserPlan
|
|
0, // 3: pb.UserPlanService.buyUserPlan:input_type -> pb.BuyUserPlanRequest
|
|
2, // 4: pb.UserPlanService.renewUserPlan:input_type -> pb.RenewUserPlanRequest
|
|
3, // 5: pb.UserPlanService.findEnabledUserPlan:input_type -> pb.FindEnabledUserPlanRequest
|
|
5, // 6: pb.UserPlanService.updateUserPlan:input_type -> pb.UpdateUserPlanRequest
|
|
6, // 7: pb.UserPlanService.deleteUserPlan:input_type -> pb.DeleteUserPlanRequest
|
|
7, // 8: pb.UserPlanService.countAllEnabledUserPlans:input_type -> pb.CountAllEnabledUserPlansRequest
|
|
8, // 9: pb.UserPlanService.listEnabledUserPlans:input_type -> pb.ListEnabledUserPlansRequest
|
|
10, // 10: pb.UserPlanService.findAllEnabledUserPlansForServer:input_type -> pb.FindAllEnabledUserPlansForServerRequest
|
|
1, // 11: pb.UserPlanService.buyUserPlan:output_type -> pb.BuyUserPlanResponse
|
|
13, // 12: pb.UserPlanService.renewUserPlan:output_type -> pb.RPCSuccess
|
|
4, // 13: pb.UserPlanService.findEnabledUserPlan:output_type -> pb.FindEnabledUserPlanResponse
|
|
13, // 14: pb.UserPlanService.updateUserPlan:output_type -> pb.RPCSuccess
|
|
13, // 15: pb.UserPlanService.deleteUserPlan:output_type -> pb.RPCSuccess
|
|
14, // 16: pb.UserPlanService.countAllEnabledUserPlans:output_type -> pb.RPCCountResponse
|
|
9, // 17: pb.UserPlanService.listEnabledUserPlans:output_type -> pb.ListEnabledUserPlansResponse
|
|
11, // 18: pb.UserPlanService.findAllEnabledUserPlansForServer:output_type -> pb.FindAllEnabledUserPlansForServerResponse
|
|
11, // [11:19] is the sub-list for method output_type
|
|
3, // [3:11] is the sub-list for method input_type
|
|
3, // [3:3] is the sub-list for extension type_name
|
|
3, // [3:3] is the sub-list for extension extendee
|
|
0, // [0:3] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_service_user_plan_proto_init() }
|
|
func file_service_user_plan_proto_init() {
|
|
if File_service_user_plan_proto != nil {
|
|
return
|
|
}
|
|
file_models_rpc_messages_proto_init()
|
|
file_models_model_user_plan_proto_init()
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_service_user_plan_proto_rawDesc), len(file_service_user_plan_proto_rawDesc)),
|
|
NumEnums: 0,
|
|
NumMessages: 12,
|
|
NumExtensions: 0,
|
|
NumServices: 1,
|
|
},
|
|
GoTypes: file_service_user_plan_proto_goTypes,
|
|
DependencyIndexes: file_service_user_plan_proto_depIdxs,
|
|
MessageInfos: file_service_user_plan_proto_msgTypes,
|
|
}.Build()
|
|
File_service_user_plan_proto = out.File
|
|
file_service_user_plan_proto_goTypes = nil
|
|
file_service_user_plan_proto_depIdxs = nil
|
|
}
|