// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.36.11 // protoc v7.34.0 // source: activity.proto package activity import ( common "github.com/topfans/backend/pkg/proto/common" _ "google.golang.org/genproto/googleapis/api/annotations" 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 Activity struct { state protoimpl.MessageState `protogen:"open.v1"` Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` ActivityType string `protobuf:"bytes,2,opt,name=activity_type,json=activityType,proto3" json:"activity_type,omitempty"` Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"` Theme string `protobuf:"bytes,17,opt,name=theme,proto3" json:"theme,omitempty"` // 中文主题 Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` StarId int64 `protobuf:"varint,5,opt,name=star_id,json=starId,proto3" json:"star_id,omitempty"` StartTime int64 `protobuf:"varint,6,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` EndTime int64 `protobuf:"varint,7,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` TargetProgress int64 `protobuf:"varint,8,opt,name=target_progress,json=targetProgress,proto3" json:"target_progress,omitempty"` CurrentProgress int64 `protobuf:"varint,9,opt,name=current_progress,json=currentProgress,proto3" json:"current_progress,omitempty"` Status string `protobuf:"bytes,10,opt,name=status,proto3" json:"status,omitempty"` CurrentStage string `protobuf:"bytes,11,opt,name=current_stage,json=currentStage,proto3" json:"current_stage,omitempty"` // 当前阶段: early/mid/late/completed Items []*ActivityItem `protobuf:"bytes,12,rep,name=items,proto3" json:"items,omitempty"` CoverImage string `protobuf:"bytes,13,opt,name=cover_image,json=coverImage,proto3" json:"cover_image,omitempty"` // 封面图 BannerImage string `protobuf:"bytes,14,opt,name=banner_image,json=bannerImage,proto3" json:"banner_image,omitempty"` // 横幅图 CurrentStageBackground string `protobuf:"bytes,15,opt,name=current_stage_background,json=currentStageBackground,proto3" json:"current_stage_background,omitempty"` // 当前阶段背景图 CurrentStageTitle string `protobuf:"bytes,16,opt,name=current_stage_title,json=currentStageTitle,proto3" json:"current_stage_title,omitempty"` // 当前阶段标题 unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *Activity) Reset() { *x = Activity{} mi := &file_activity_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *Activity) String() string { return protoimpl.X.MessageStringOf(x) } func (*Activity) ProtoMessage() {} func (x *Activity) ProtoReflect() protoreflect.Message { mi := &file_activity_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 Activity.ProtoReflect.Descriptor instead. func (*Activity) Descriptor() ([]byte, []int) { return file_activity_proto_rawDescGZIP(), []int{0} } func (x *Activity) GetId() int64 { if x != nil { return x.Id } return 0 } func (x *Activity) GetActivityType() string { if x != nil { return x.ActivityType } return "" } func (x *Activity) GetTitle() string { if x != nil { return x.Title } return "" } func (x *Activity) GetTheme() string { if x != nil { return x.Theme } return "" } func (x *Activity) GetDescription() string { if x != nil { return x.Description } return "" } func (x *Activity) GetStarId() int64 { if x != nil { return x.StarId } return 0 } func (x *Activity) GetStartTime() int64 { if x != nil { return x.StartTime } return 0 } func (x *Activity) GetEndTime() int64 { if x != nil { return x.EndTime } return 0 } func (x *Activity) GetTargetProgress() int64 { if x != nil { return x.TargetProgress } return 0 } func (x *Activity) GetCurrentProgress() int64 { if x != nil { return x.CurrentProgress } return 0 } func (x *Activity) GetStatus() string { if x != nil { return x.Status } return "" } func (x *Activity) GetCurrentStage() string { if x != nil { return x.CurrentStage } return "" } func (x *Activity) GetItems() []*ActivityItem { if x != nil { return x.Items } return nil } func (x *Activity) GetCoverImage() string { if x != nil { return x.CoverImage } return "" } func (x *Activity) GetBannerImage() string { if x != nil { return x.BannerImage } return "" } func (x *Activity) GetCurrentStageBackground() string { if x != nil { return x.CurrentStageBackground } return "" } func (x *Activity) GetCurrentStageTitle() string { if x != nil { return x.CurrentStageTitle } return "" } // 活动道具 type ActivityItem struct { state protoimpl.MessageState `protogen:"open.v1"` Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` ItemType string `protobuf:"bytes,2,opt,name=item_type,json=itemType,proto3" json:"item_type,omitempty"` ItemName string `protobuf:"bytes,3,opt,name=item_name,json=itemName,proto3" json:"item_name,omitempty"` IconUrl string `protobuf:"bytes,4,opt,name=icon_url,json=iconUrl,proto3" json:"icon_url,omitempty"` CrystalCost int32 `protobuf:"varint,5,opt,name=crystal_cost,json=crystalCost,proto3" json:"crystal_cost,omitempty"` ContributionPoints int32 `protobuf:"varint,6,opt,name=contribution_points,json=contributionPoints,proto3" json:"contribution_points,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *ActivityItem) Reset() { *x = ActivityItem{} mi := &file_activity_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *ActivityItem) String() string { return protoimpl.X.MessageStringOf(x) } func (*ActivityItem) ProtoMessage() {} func (x *ActivityItem) ProtoReflect() protoreflect.Message { mi := &file_activity_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 ActivityItem.ProtoReflect.Descriptor instead. func (*ActivityItem) Descriptor() ([]byte, []int) { return file_activity_proto_rawDescGZIP(), []int{1} } func (x *ActivityItem) GetId() int64 { if x != nil { return x.Id } return 0 } func (x *ActivityItem) GetItemType() string { if x != nil { return x.ItemType } return "" } func (x *ActivityItem) GetItemName() string { if x != nil { return x.ItemName } return "" } func (x *ActivityItem) GetIconUrl() string { if x != nil { return x.IconUrl } return "" } func (x *ActivityItem) GetCrystalCost() int32 { if x != nil { return x.CrystalCost } return 0 } func (x *ActivityItem) GetContributionPoints() int32 { if x != nil { return x.ContributionPoints } return 0 } // 活动道具列表响应 type ActivityItemsResponse struct { state protoimpl.MessageState `protogen:"open.v1"` Items []*ActivityItem `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *ActivityItemsResponse) Reset() { *x = ActivityItemsResponse{} mi := &file_activity_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *ActivityItemsResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*ActivityItemsResponse) ProtoMessage() {} func (x *ActivityItemsResponse) ProtoReflect() protoreflect.Message { mi := &file_activity_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 ActivityItemsResponse.ProtoReflect.Descriptor instead. func (*ActivityItemsResponse) Descriptor() ([]byte, []int) { return file_activity_proto_rawDescGZIP(), []int{2} } func (x *ActivityItemsResponse) GetItems() []*ActivityItem { if x != nil { return x.Items } return nil } // 购买道具请求 type PurchaseItemRequest struct { state protoimpl.MessageState `protogen:"open.v1"` ActivityId int64 `protobuf:"varint,1,opt,name=activity_id,json=activityId,proto3" json:"activity_id,omitempty"` ItemType string `protobuf:"bytes,2,opt,name=item_type,json=itemType,proto3" json:"item_type,omitempty"` Quantity int32 `protobuf:"varint,3,opt,name=quantity,proto3" json:"quantity,omitempty"` StarId int64 `protobuf:"varint,4,opt,name=star_id,json=starId,proto3" json:"star_id,omitempty"` UserId int64 `protobuf:"varint,5,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // 当前用户ID unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *PurchaseItemRequest) Reset() { *x = PurchaseItemRequest{} mi := &file_activity_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *PurchaseItemRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*PurchaseItemRequest) ProtoMessage() {} func (x *PurchaseItemRequest) ProtoReflect() protoreflect.Message { mi := &file_activity_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 PurchaseItemRequest.ProtoReflect.Descriptor instead. func (*PurchaseItemRequest) Descriptor() ([]byte, []int) { return file_activity_proto_rawDescGZIP(), []int{3} } func (x *PurchaseItemRequest) GetActivityId() int64 { if x != nil { return x.ActivityId } return 0 } func (x *PurchaseItemRequest) GetItemType() string { if x != nil { return x.ItemType } return "" } func (x *PurchaseItemRequest) GetQuantity() int32 { if x != nil { return x.Quantity } return 0 } func (x *PurchaseItemRequest) GetStarId() int64 { if x != nil { return x.StarId } return 0 } func (x *PurchaseItemRequest) GetUserId() int64 { if x != nil { return x.UserId } return 0 } // 购买道具响应 type PurchaseItemResponse struct { state protoimpl.MessageState `protogen:"open.v1"` Base *common.BaseResponse `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` TotalCrystalSpent int64 `protobuf:"varint,2,opt,name=total_crystal_spent,json=totalCrystalSpent,proto3" json:"total_crystal_spent,omitempty"` // 本次消费水晶 TotalContribution int64 `protobuf:"varint,3,opt,name=total_contribution,json=totalContribution,proto3" json:"total_contribution,omitempty"` // 本次获得贡献点 CurrentProgress int64 `protobuf:"varint,4,opt,name=current_progress,json=currentProgress,proto3" json:"current_progress,omitempty"` // 当前活动进度 RemainingBalance int64 `protobuf:"varint,5,opt,name=remaining_balance,json=remainingBalance,proto3" json:"remaining_balance,omitempty"` // 剩余水晶余额 unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *PurchaseItemResponse) Reset() { *x = PurchaseItemResponse{} mi := &file_activity_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *PurchaseItemResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*PurchaseItemResponse) ProtoMessage() {} func (x *PurchaseItemResponse) ProtoReflect() protoreflect.Message { mi := &file_activity_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 PurchaseItemResponse.ProtoReflect.Descriptor instead. func (*PurchaseItemResponse) Descriptor() ([]byte, []int) { return file_activity_proto_rawDescGZIP(), []int{4} } func (x *PurchaseItemResponse) GetBase() *common.BaseResponse { if x != nil { return x.Base } return nil } func (x *PurchaseItemResponse) GetTotalCrystalSpent() int64 { if x != nil { return x.TotalCrystalSpent } return 0 } func (x *PurchaseItemResponse) GetTotalContribution() int64 { if x != nil { return x.TotalContribution } return 0 } func (x *PurchaseItemResponse) GetCurrentProgress() int64 { if x != nil { return x.CurrentProgress } return 0 } func (x *PurchaseItemResponse) GetRemainingBalance() int64 { if x != nil { return x.RemainingBalance } return 0 } // 贡献点排名请求 type ContributionRankingRequest struct { state protoimpl.MessageState `protogen:"open.v1"` ActivityId int64 `protobuf:"varint,1,opt,name=activity_id,json=activityId,proto3" json:"activity_id,omitempty"` StarId int64 `protobuf:"varint,2,opt,name=star_id,json=starId,proto3" json:"star_id,omitempty"` Page int32 `protobuf:"varint,3,opt,name=page,proto3" json:"page,omitempty"` PageSize int32 `protobuf:"varint,4,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` UserId int64 `protobuf:"varint,5,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // 当前用户ID,用于获取自己的排名 unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *ContributionRankingRequest) Reset() { *x = ContributionRankingRequest{} mi := &file_activity_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *ContributionRankingRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*ContributionRankingRequest) ProtoMessage() {} func (x *ContributionRankingRequest) ProtoReflect() protoreflect.Message { mi := &file_activity_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 ContributionRankingRequest.ProtoReflect.Descriptor instead. func (*ContributionRankingRequest) Descriptor() ([]byte, []int) { return file_activity_proto_rawDescGZIP(), []int{5} } func (x *ContributionRankingRequest) GetActivityId() int64 { if x != nil { return x.ActivityId } return 0 } func (x *ContributionRankingRequest) GetStarId() int64 { if x != nil { return x.StarId } return 0 } func (x *ContributionRankingRequest) GetPage() int32 { if x != nil { return x.Page } return 0 } func (x *ContributionRankingRequest) GetPageSize() int32 { if x != nil { return x.PageSize } return 0 } func (x *ContributionRankingRequest) GetUserId() int64 { if x != nil { return x.UserId } return 0 } // 贡献点排名项 type ContributionRankingItem struct { state protoimpl.MessageState `protogen:"open.v1"` Rank int32 `protobuf:"varint,1,opt,name=rank,proto3" json:"rank,omitempty"` UserId int64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` Nickname string `protobuf:"bytes,3,opt,name=nickname,proto3" json:"nickname,omitempty"` AvatarUrl string `protobuf:"bytes,4,opt,name=avatar_url,json=avatarUrl,proto3" json:"avatar_url,omitempty"` TotalContribution int64 `protobuf:"varint,5,opt,name=total_contribution,json=totalContribution,proto3" json:"total_contribution,omitempty"` TotalCrystalSpent int64 `protobuf:"varint,6,opt,name=total_crystal_spent,json=totalCrystalSpent,proto3" json:"total_crystal_spent,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *ContributionRankingItem) Reset() { *x = ContributionRankingItem{} mi := &file_activity_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *ContributionRankingItem) String() string { return protoimpl.X.MessageStringOf(x) } func (*ContributionRankingItem) ProtoMessage() {} func (x *ContributionRankingItem) ProtoReflect() protoreflect.Message { mi := &file_activity_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 ContributionRankingItem.ProtoReflect.Descriptor instead. func (*ContributionRankingItem) Descriptor() ([]byte, []int) { return file_activity_proto_rawDescGZIP(), []int{6} } func (x *ContributionRankingItem) GetRank() int32 { if x != nil { return x.Rank } return 0 } func (x *ContributionRankingItem) GetUserId() int64 { if x != nil { return x.UserId } return 0 } func (x *ContributionRankingItem) GetNickname() string { if x != nil { return x.Nickname } return "" } func (x *ContributionRankingItem) GetAvatarUrl() string { if x != nil { return x.AvatarUrl } return "" } func (x *ContributionRankingItem) GetTotalContribution() int64 { if x != nil { return x.TotalContribution } return 0 } func (x *ContributionRankingItem) GetTotalCrystalSpent() int64 { if x != nil { return x.TotalCrystalSpent } return 0 } // 贡献点排名响应 type ContributionRankingResponse struct { state protoimpl.MessageState `protogen:"open.v1"` Base *common.BaseResponse `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` Items []*ContributionRankingItem `protobuf:"bytes,2,rep,name=items,proto3" json:"items,omitempty"` MyContribution *MyContribution `protobuf:"bytes,3,opt,name=my_contribution,json=myContribution,proto3" json:"my_contribution,omitempty"` Page int32 `protobuf:"varint,4,opt,name=page,proto3" json:"page,omitempty"` PageSize int32 `protobuf:"varint,5,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` Total int32 `protobuf:"varint,6,opt,name=total,proto3" json:"total,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *ContributionRankingResponse) Reset() { *x = ContributionRankingResponse{} mi := &file_activity_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *ContributionRankingResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*ContributionRankingResponse) ProtoMessage() {} func (x *ContributionRankingResponse) ProtoReflect() protoreflect.Message { mi := &file_activity_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 ContributionRankingResponse.ProtoReflect.Descriptor instead. func (*ContributionRankingResponse) Descriptor() ([]byte, []int) { return file_activity_proto_rawDescGZIP(), []int{7} } func (x *ContributionRankingResponse) GetBase() *common.BaseResponse { if x != nil { return x.Base } return nil } func (x *ContributionRankingResponse) GetItems() []*ContributionRankingItem { if x != nil { return x.Items } return nil } func (x *ContributionRankingResponse) GetMyContribution() *MyContribution { if x != nil { return x.MyContribution } return nil } func (x *ContributionRankingResponse) GetPage() int32 { if x != nil { return x.Page } return 0 } func (x *ContributionRankingResponse) GetPageSize() int32 { if x != nil { return x.PageSize } return 0 } func (x *ContributionRankingResponse) GetTotal() int32 { if x != nil { return x.Total } return 0 } // 我的贡献信息 type MyContribution struct { state protoimpl.MessageState `protogen:"open.v1"` Rank int32 `protobuf:"varint,1,opt,name=rank,proto3" json:"rank,omitempty"` TotalContribution int64 `protobuf:"varint,2,opt,name=total_contribution,json=totalContribution,proto3" json:"total_contribution,omitempty"` TotalCrystalSpent int64 `protobuf:"varint,3,opt,name=total_crystal_spent,json=totalCrystalSpent,proto3" json:"total_crystal_spent,omitempty"` Status string `protobuf:"bytes,4,opt,name=status,proto3" json:"status,omitempty"` // ranked/unranked Nickname string `protobuf:"bytes,5,opt,name=nickname,proto3" json:"nickname,omitempty"` AvatarUrl string `protobuf:"bytes,6,opt,name=avatar_url,json=avatarUrl,proto3" json:"avatar_url,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *MyContribution) Reset() { *x = MyContribution{} mi := &file_activity_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *MyContribution) String() string { return protoimpl.X.MessageStringOf(x) } func (*MyContribution) ProtoMessage() {} func (x *MyContribution) ProtoReflect() protoreflect.Message { mi := &file_activity_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 MyContribution.ProtoReflect.Descriptor instead. func (*MyContribution) Descriptor() ([]byte, []int) { return file_activity_proto_rawDescGZIP(), []int{8} } func (x *MyContribution) GetRank() int32 { if x != nil { return x.Rank } return 0 } func (x *MyContribution) GetTotalContribution() int64 { if x != nil { return x.TotalContribution } return 0 } func (x *MyContribution) GetTotalCrystalSpent() int64 { if x != nil { return x.TotalCrystalSpent } return 0 } func (x *MyContribution) GetStatus() string { if x != nil { return x.Status } return "" } func (x *MyContribution) GetNickname() string { if x != nil { return x.Nickname } return "" } func (x *MyContribution) GetAvatarUrl() string { if x != nil { return x.AvatarUrl } return "" } // 活动列表请求 type GetActivityListRequest struct { state protoimpl.MessageState `protogen:"open.v1"` StarId int64 `protobuf:"varint,1,opt,name=star_id,json=starId,proto3" json:"star_id,omitempty"` Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` // 可选: pending/active/completed/expired Page int32 `protobuf:"varint,3,opt,name=page,proto3" json:"page,omitempty"` PageSize int32 `protobuf:"varint,4,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *GetActivityListRequest) Reset() { *x = GetActivityListRequest{} mi := &file_activity_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *GetActivityListRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*GetActivityListRequest) ProtoMessage() {} func (x *GetActivityListRequest) ProtoReflect() protoreflect.Message { mi := &file_activity_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 GetActivityListRequest.ProtoReflect.Descriptor instead. func (*GetActivityListRequest) Descriptor() ([]byte, []int) { return file_activity_proto_rawDescGZIP(), []int{9} } func (x *GetActivityListRequest) GetStarId() int64 { if x != nil { return x.StarId } return 0 } func (x *GetActivityListRequest) GetStatus() string { if x != nil { return x.Status } return "" } func (x *GetActivityListRequest) GetPage() int32 { if x != nil { return x.Page } return 0 } func (x *GetActivityListRequest) GetPageSize() int32 { if x != nil { return x.PageSize } return 0 } // 活动列表响应 type GetActivityListResponse struct { state protoimpl.MessageState `protogen:"open.v1"` Base *common.BaseResponse `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` Activities []*Activity `protobuf:"bytes,2,rep,name=activities,proto3" json:"activities,omitempty"` Page int32 `protobuf:"varint,3,opt,name=page,proto3" json:"page,omitempty"` PageSize int32 `protobuf:"varint,4,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` Total int32 `protobuf:"varint,5,opt,name=total,proto3" json:"total,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *GetActivityListResponse) Reset() { *x = GetActivityListResponse{} mi := &file_activity_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *GetActivityListResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*GetActivityListResponse) ProtoMessage() {} func (x *GetActivityListResponse) ProtoReflect() protoreflect.Message { mi := &file_activity_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 GetActivityListResponse.ProtoReflect.Descriptor instead. func (*GetActivityListResponse) Descriptor() ([]byte, []int) { return file_activity_proto_rawDescGZIP(), []int{10} } func (x *GetActivityListResponse) GetBase() *common.BaseResponse { if x != nil { return x.Base } return nil } func (x *GetActivityListResponse) GetActivities() []*Activity { if x != nil { return x.Activities } return nil } func (x *GetActivityListResponse) GetPage() int32 { if x != nil { return x.Page } return 0 } func (x *GetActivityListResponse) GetPageSize() int32 { if x != nil { return x.PageSize } return 0 } func (x *GetActivityListResponse) GetTotal() int32 { if x != nil { return x.Total } return 0 } // 进度信息请求 type GetProgressRequest struct { state protoimpl.MessageState `protogen:"open.v1"` ActivityId int64 `protobuf:"varint,1,opt,name=activity_id,json=activityId,proto3" json:"activity_id,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *GetProgressRequest) Reset() { *x = GetProgressRequest{} mi := &file_activity_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *GetProgressRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*GetProgressRequest) ProtoMessage() {} func (x *GetProgressRequest) ProtoReflect() protoreflect.Message { mi := &file_activity_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 GetProgressRequest.ProtoReflect.Descriptor instead. func (*GetProgressRequest) Descriptor() ([]byte, []int) { return file_activity_proto_rawDescGZIP(), []int{11} } func (x *GetProgressRequest) GetActivityId() int64 { if x != nil { return x.ActivityId } return 0 } // 进度信息响应 type GetProgressResponse struct { state protoimpl.MessageState `protogen:"open.v1"` Base *common.BaseResponse `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` ActivityId int64 `protobuf:"varint,2,opt,name=activity_id,json=activityId,proto3" json:"activity_id,omitempty"` CurrentProgress int64 `protobuf:"varint,3,opt,name=current_progress,json=currentProgress,proto3" json:"current_progress,omitempty"` TargetProgress int64 `protobuf:"varint,4,opt,name=target_progress,json=targetProgress,proto3" json:"target_progress,omitempty"` CurrentStage string `protobuf:"bytes,5,opt,name=current_stage,json=currentStage,proto3" json:"current_stage,omitempty"` // early/mid/late/completed EndTime int64 `protobuf:"varint,6,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` Status string `protobuf:"bytes,7,opt,name=status,proto3" json:"status,omitempty"` // pending/active/completed/expired unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *GetProgressResponse) Reset() { *x = GetProgressResponse{} mi := &file_activity_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *GetProgressResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*GetProgressResponse) ProtoMessage() {} func (x *GetProgressResponse) ProtoReflect() protoreflect.Message { mi := &file_activity_proto_msgTypes[12] 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 GetProgressResponse.ProtoReflect.Descriptor instead. func (*GetProgressResponse) Descriptor() ([]byte, []int) { return file_activity_proto_rawDescGZIP(), []int{12} } func (x *GetProgressResponse) GetBase() *common.BaseResponse { if x != nil { return x.Base } return nil } func (x *GetProgressResponse) GetActivityId() int64 { if x != nil { return x.ActivityId } return 0 } func (x *GetProgressResponse) GetCurrentProgress() int64 { if x != nil { return x.CurrentProgress } return 0 } func (x *GetProgressResponse) GetTargetProgress() int64 { if x != nil { return x.TargetProgress } return 0 } func (x *GetProgressResponse) GetCurrentStage() string { if x != nil { return x.CurrentStage } return "" } func (x *GetProgressResponse) GetEndTime() int64 { if x != nil { return x.EndTime } return 0 } func (x *GetProgressResponse) GetStatus() string { if x != nil { return x.Status } return "" } var File_activity_proto protoreflect.FileDescriptor const file_activity_proto_rawDesc = "" + "\n" + "\x0eactivity.proto\x12\x10topfans.activity\x1a\x12proto/common.proto\x1a\x1cgoogle/api/annotations.proto\"\xd5\x04\n" + "\bActivity\x12\x0e\n" + "\x02id\x18\x01 \x01(\x03R\x02id\x12#\n" + "\ractivity_type\x18\x02 \x01(\tR\factivityType\x12\x14\n" + "\x05title\x18\x03 \x01(\tR\x05title\x12\x14\n" + "\x05theme\x18\x11 \x01(\tR\x05theme\x12 \n" + "\vdescription\x18\x04 \x01(\tR\vdescription\x12\x17\n" + "\astar_id\x18\x05 \x01(\x03R\x06starId\x12\x1d\n" + "\n" + "start_time\x18\x06 \x01(\x03R\tstartTime\x12\x19\n" + "\bend_time\x18\a \x01(\x03R\aendTime\x12'\n" + "\x0ftarget_progress\x18\b \x01(\x03R\x0etargetProgress\x12)\n" + "\x10current_progress\x18\t \x01(\x03R\x0fcurrentProgress\x12\x16\n" + "\x06status\x18\n" + " \x01(\tR\x06status\x12#\n" + "\rcurrent_stage\x18\v \x01(\tR\fcurrentStage\x124\n" + "\x05items\x18\f \x03(\v2\x1e.topfans.activity.ActivityItemR\x05items\x12\x1f\n" + "\vcover_image\x18\r \x01(\tR\n" + "coverImage\x12!\n" + "\fbanner_image\x18\x0e \x01(\tR\vbannerImage\x128\n" + "\x18current_stage_background\x18\x0f \x01(\tR\x16currentStageBackground\x12.\n" + "\x13current_stage_title\x18\x10 \x01(\tR\x11currentStageTitle\"\xc7\x01\n" + "\fActivityItem\x12\x0e\n" + "\x02id\x18\x01 \x01(\x03R\x02id\x12\x1b\n" + "\titem_type\x18\x02 \x01(\tR\bitemType\x12\x1b\n" + "\titem_name\x18\x03 \x01(\tR\bitemName\x12\x19\n" + "\bicon_url\x18\x04 \x01(\tR\aiconUrl\x12!\n" + "\fcrystal_cost\x18\x05 \x01(\x05R\vcrystalCost\x12/\n" + "\x13contribution_points\x18\x06 \x01(\x05R\x12contributionPoints\"M\n" + "\x15ActivityItemsResponse\x124\n" + "\x05items\x18\x01 \x03(\v2\x1e.topfans.activity.ActivityItemR\x05items\"\xa1\x01\n" + "\x13PurchaseItemRequest\x12\x1f\n" + "\vactivity_id\x18\x01 \x01(\x03R\n" + "activityId\x12\x1b\n" + "\titem_type\x18\x02 \x01(\tR\bitemType\x12\x1a\n" + "\bquantity\x18\x03 \x01(\x05R\bquantity\x12\x17\n" + "\astar_id\x18\x04 \x01(\x03R\x06starId\x12\x17\n" + "\auser_id\x18\x05 \x01(\x03R\x06userId\"\xff\x01\n" + "\x14PurchaseItemResponse\x120\n" + "\x04base\x18\x01 \x01(\v2\x1c.topfans.common.BaseResponseR\x04base\x12.\n" + "\x13total_crystal_spent\x18\x02 \x01(\x03R\x11totalCrystalSpent\x12-\n" + "\x12total_contribution\x18\x03 \x01(\x03R\x11totalContribution\x12)\n" + "\x10current_progress\x18\x04 \x01(\x03R\x0fcurrentProgress\x12+\n" + "\x11remaining_balance\x18\x05 \x01(\x03R\x10remainingBalance\"\xa0\x01\n" + "\x1aContributionRankingRequest\x12\x1f\n" + "\vactivity_id\x18\x01 \x01(\x03R\n" + "activityId\x12\x17\n" + "\astar_id\x18\x02 \x01(\x03R\x06starId\x12\x12\n" + "\x04page\x18\x03 \x01(\x05R\x04page\x12\x1b\n" + "\tpage_size\x18\x04 \x01(\x05R\bpageSize\x12\x17\n" + "\auser_id\x18\x05 \x01(\x03R\x06userId\"\xe0\x01\n" + "\x17ContributionRankingItem\x12\x12\n" + "\x04rank\x18\x01 \x01(\x05R\x04rank\x12\x17\n" + "\auser_id\x18\x02 \x01(\x03R\x06userId\x12\x1a\n" + "\bnickname\x18\x03 \x01(\tR\bnickname\x12\x1d\n" + "\n" + "avatar_url\x18\x04 \x01(\tR\tavatarUrl\x12-\n" + "\x12total_contribution\x18\x05 \x01(\x03R\x11totalContribution\x12.\n" + "\x13total_crystal_spent\x18\x06 \x01(\x03R\x11totalCrystalSpent\"\xa2\x02\n" + "\x1bContributionRankingResponse\x120\n" + "\x04base\x18\x01 \x01(\v2\x1c.topfans.common.BaseResponseR\x04base\x12?\n" + "\x05items\x18\x02 \x03(\v2).topfans.activity.ContributionRankingItemR\x05items\x12I\n" + "\x0fmy_contribution\x18\x03 \x01(\v2 .topfans.activity.MyContributionR\x0emyContribution\x12\x12\n" + "\x04page\x18\x04 \x01(\x05R\x04page\x12\x1b\n" + "\tpage_size\x18\x05 \x01(\x05R\bpageSize\x12\x14\n" + "\x05total\x18\x06 \x01(\x05R\x05total\"\xd6\x01\n" + "\x0eMyContribution\x12\x12\n" + "\x04rank\x18\x01 \x01(\x05R\x04rank\x12-\n" + "\x12total_contribution\x18\x02 \x01(\x03R\x11totalContribution\x12.\n" + "\x13total_crystal_spent\x18\x03 \x01(\x03R\x11totalCrystalSpent\x12\x16\n" + "\x06status\x18\x04 \x01(\tR\x06status\x12\x1a\n" + "\bnickname\x18\x05 \x01(\tR\bnickname\x12\x1d\n" + "\n" + "avatar_url\x18\x06 \x01(\tR\tavatarUrl\"z\n" + "\x16GetActivityListRequest\x12\x17\n" + "\astar_id\x18\x01 \x01(\x03R\x06starId\x12\x16\n" + "\x06status\x18\x02 \x01(\tR\x06status\x12\x12\n" + "\x04page\x18\x03 \x01(\x05R\x04page\x12\x1b\n" + "\tpage_size\x18\x04 \x01(\x05R\bpageSize\"\xce\x01\n" + "\x17GetActivityListResponse\x120\n" + "\x04base\x18\x01 \x01(\v2\x1c.topfans.common.BaseResponseR\x04base\x12:\n" + "\n" + "activities\x18\x02 \x03(\v2\x1a.topfans.activity.ActivityR\n" + "activities\x12\x12\n" + "\x04page\x18\x03 \x01(\x05R\x04page\x12\x1b\n" + "\tpage_size\x18\x04 \x01(\x05R\bpageSize\x12\x14\n" + "\x05total\x18\x05 \x01(\x05R\x05total\"5\n" + "\x12GetProgressRequest\x12\x1f\n" + "\vactivity_id\x18\x01 \x01(\x03R\n" + "activityId\"\x94\x02\n" + "\x13GetProgressResponse\x120\n" + "\x04base\x18\x01 \x01(\v2\x1c.topfans.common.BaseResponseR\x04base\x12\x1f\n" + "\vactivity_id\x18\x02 \x01(\x03R\n" + "activityId\x12)\n" + "\x10current_progress\x18\x03 \x01(\x03R\x0fcurrentProgress\x12'\n" + "\x0ftarget_progress\x18\x04 \x01(\x03R\x0etargetProgress\x12#\n" + "\rcurrent_stage\x18\x05 \x01(\tR\fcurrentStage\x12\x19\n" + "\bend_time\x18\x06 \x01(\x03R\aendTime\x12\x16\n" + "\x06status\x18\a \x01(\tR\x06status2\xf5\x06\n" + "\x0fActivityService\x12\x82\x01\n" + "\x0fGetActivityList\x12(.topfans.activity.GetActivityListRequest\x1a).topfans.activity.GetActivityListResponse\"\x1a\x82\xd3\xe4\x93\x02\x14\x12\x12/api/v1/activities\x12y\n" + "\vGetActivity\x12$.topfans.activity.GetProgressRequest\x1a\x1a.topfans.activity.Activity\"(\x82\xd3\xe4\x93\x02\"\x12 /api/v1/activities/{activity_id}\x12\x91\x01\n" + "\x10GetActivityItems\x12$.topfans.activity.GetProgressRequest\x1a'.topfans.activity.ActivityItemsResponse\".\x82\xd3\xe4\x93\x02(\x12&/api/v1/activities/{activity_id}/items\x12\x8d\x01\n" + "\vGetProgress\x12$.topfans.activity.GetProgressRequest\x1a%.topfans.activity.GetProgressResponse\"1\x82\xd3\xe4\x93\x02+\x12)/api/v1/activities/{activity_id}/progress\x12\x93\x01\n" + "\fPurchaseItem\x12%.topfans.activity.PurchaseItemRequest\x1a&.topfans.activity.PurchaseItemResponse\"4\x82\xd3\xe4\x93\x02.:\x01*\")/api/v1/activities/{activity_id}/purchase\x12\xa7\x01\n" + "\x16GetContributionRanking\x12,.topfans.activity.ContributionRankingRequest\x1a-.topfans.activity.ContributionRankingResponse\"0\x82\xd3\xe4\x93\x02*\x12(/api/v1/activities/{activity_id}/rankingB8Z6github.com/topfans/backend/pkg/proto/activity;activityb\x06proto3" var ( file_activity_proto_rawDescOnce sync.Once file_activity_proto_rawDescData []byte ) func file_activity_proto_rawDescGZIP() []byte { file_activity_proto_rawDescOnce.Do(func() { file_activity_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_activity_proto_rawDesc), len(file_activity_proto_rawDesc))) }) return file_activity_proto_rawDescData } var file_activity_proto_msgTypes = make([]protoimpl.MessageInfo, 13) var file_activity_proto_goTypes = []any{ (*Activity)(nil), // 0: topfans.activity.Activity (*ActivityItem)(nil), // 1: topfans.activity.ActivityItem (*ActivityItemsResponse)(nil), // 2: topfans.activity.ActivityItemsResponse (*PurchaseItemRequest)(nil), // 3: topfans.activity.PurchaseItemRequest (*PurchaseItemResponse)(nil), // 4: topfans.activity.PurchaseItemResponse (*ContributionRankingRequest)(nil), // 5: topfans.activity.ContributionRankingRequest (*ContributionRankingItem)(nil), // 6: topfans.activity.ContributionRankingItem (*ContributionRankingResponse)(nil), // 7: topfans.activity.ContributionRankingResponse (*MyContribution)(nil), // 8: topfans.activity.MyContribution (*GetActivityListRequest)(nil), // 9: topfans.activity.GetActivityListRequest (*GetActivityListResponse)(nil), // 10: topfans.activity.GetActivityListResponse (*GetProgressRequest)(nil), // 11: topfans.activity.GetProgressRequest (*GetProgressResponse)(nil), // 12: topfans.activity.GetProgressResponse (*common.BaseResponse)(nil), // 13: topfans.common.BaseResponse } var file_activity_proto_depIdxs = []int32{ 1, // 0: topfans.activity.Activity.items:type_name -> topfans.activity.ActivityItem 1, // 1: topfans.activity.ActivityItemsResponse.items:type_name -> topfans.activity.ActivityItem 13, // 2: topfans.activity.PurchaseItemResponse.base:type_name -> topfans.common.BaseResponse 13, // 3: topfans.activity.ContributionRankingResponse.base:type_name -> topfans.common.BaseResponse 6, // 4: topfans.activity.ContributionRankingResponse.items:type_name -> topfans.activity.ContributionRankingItem 8, // 5: topfans.activity.ContributionRankingResponse.my_contribution:type_name -> topfans.activity.MyContribution 13, // 6: topfans.activity.GetActivityListResponse.base:type_name -> topfans.common.BaseResponse 0, // 7: topfans.activity.GetActivityListResponse.activities:type_name -> topfans.activity.Activity 13, // 8: topfans.activity.GetProgressResponse.base:type_name -> topfans.common.BaseResponse 9, // 9: topfans.activity.ActivityService.GetActivityList:input_type -> topfans.activity.GetActivityListRequest 11, // 10: topfans.activity.ActivityService.GetActivity:input_type -> topfans.activity.GetProgressRequest 11, // 11: topfans.activity.ActivityService.GetActivityItems:input_type -> topfans.activity.GetProgressRequest 11, // 12: topfans.activity.ActivityService.GetProgress:input_type -> topfans.activity.GetProgressRequest 3, // 13: topfans.activity.ActivityService.PurchaseItem:input_type -> topfans.activity.PurchaseItemRequest 5, // 14: topfans.activity.ActivityService.GetContributionRanking:input_type -> topfans.activity.ContributionRankingRequest 10, // 15: topfans.activity.ActivityService.GetActivityList:output_type -> topfans.activity.GetActivityListResponse 0, // 16: topfans.activity.ActivityService.GetActivity:output_type -> topfans.activity.Activity 2, // 17: topfans.activity.ActivityService.GetActivityItems:output_type -> topfans.activity.ActivityItemsResponse 12, // 18: topfans.activity.ActivityService.GetProgress:output_type -> topfans.activity.GetProgressResponse 4, // 19: topfans.activity.ActivityService.PurchaseItem:output_type -> topfans.activity.PurchaseItemResponse 7, // 20: topfans.activity.ActivityService.GetContributionRanking:output_type -> topfans.activity.ContributionRankingResponse 15, // [15:21] is the sub-list for method output_type 9, // [9:15] is the sub-list for method input_type 9, // [9:9] is the sub-list for extension type_name 9, // [9:9] is the sub-list for extension extendee 0, // [0:9] is the sub-list for field type_name } func init() { file_activity_proto_init() } func file_activity_proto_init() { if File_activity_proto != nil { return } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: unsafe.Slice(unsafe.StringData(file_activity_proto_rawDesc), len(file_activity_proto_rawDesc)), NumEnums: 0, NumMessages: 13, NumExtensions: 0, NumServices: 1, }, GoTypes: file_activity_proto_goTypes, DependencyIndexes: file_activity_proto_depIdxs, MessageInfos: file_activity_proto_msgTypes, }.Build() File_activity_proto = out.File file_activity_proto_goTypes = nil file_activity_proto_depIdxs = nil }