758 lines
24 KiB
Go
758 lines
24 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||
// versions:
|
||
// protoc-gen-go v1.36.11
|
||
// protoc v7.34.0
|
||
// source: starbook.proto
|
||
|
||
package starbook
|
||
|
||
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 GetStarbookHomeRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *GetStarbookHomeRequest) Reset() {
|
||
*x = GetStarbookHomeRequest{}
|
||
mi := &file_starbook_proto_msgTypes[0]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *GetStarbookHomeRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*GetStarbookHomeRequest) ProtoMessage() {}
|
||
|
||
func (x *GetStarbookHomeRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_starbook_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 GetStarbookHomeRequest.ProtoReflect.Descriptor instead.
|
||
func (*GetStarbookHomeRequest) Descriptor() ([]byte, []int) {
|
||
return file_starbook_proto_rawDescGZIP(), []int{0}
|
||
}
|
||
|
||
// 星册首页响应
|
||
type GetStarbookHomeResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Base *common.BaseResponse `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"`
|
||
Data *StarbookHomeData `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *GetStarbookHomeResponse) Reset() {
|
||
*x = GetStarbookHomeResponse{}
|
||
mi := &file_starbook_proto_msgTypes[1]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *GetStarbookHomeResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*GetStarbookHomeResponse) ProtoMessage() {}
|
||
|
||
func (x *GetStarbookHomeResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_starbook_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 GetStarbookHomeResponse.ProtoReflect.Descriptor instead.
|
||
func (*GetStarbookHomeResponse) Descriptor() ([]byte, []int) {
|
||
return file_starbook_proto_rawDescGZIP(), []int{1}
|
||
}
|
||
|
||
func (x *GetStarbookHomeResponse) GetBase() *common.BaseResponse {
|
||
if x != nil {
|
||
return x.Base
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *GetStarbookHomeResponse) GetData() *StarbookHomeData {
|
||
if x != nil {
|
||
return x.Data
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// 星册首页数据
|
||
type StarbookHomeData struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Groups []*AssetGroup `protobuf:"bytes,1,rep,name=groups,proto3" json:"groups,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *StarbookHomeData) Reset() {
|
||
*x = StarbookHomeData{}
|
||
mi := &file_starbook_proto_msgTypes[2]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *StarbookHomeData) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*StarbookHomeData) ProtoMessage() {}
|
||
|
||
func (x *StarbookHomeData) ProtoReflect() protoreflect.Message {
|
||
mi := &file_starbook_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 StarbookHomeData.ProtoReflect.Descriptor instead.
|
||
func (*StarbookHomeData) Descriptor() ([]byte, []int) {
|
||
return file_starbook_proto_rawDescGZIP(), []int{2}
|
||
}
|
||
|
||
func (x *StarbookHomeData) GetGroups() []*AssetGroup {
|
||
if x != nil {
|
||
return x.Groups
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// 资产分组
|
||
type AssetGroup struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` // 'regular' / 'collection' / 'activity'
|
||
Category string `protobuf:"bytes,2,opt,name=category,proto3" json:"category,omitempty"` // 'castlove'(regular) / collection_category / activity_type
|
||
CategoryName string `protobuf:"bytes,3,opt,name=category_name,json=categoryName,proto3" json:"category_name,omitempty"`
|
||
// regular 使用 grades 分组;collection/activity 使用 flat items 列表
|
||
Grades []*GradeSection `protobuf:"bytes,4,rep,name=grades,proto3" json:"grades,omitempty"` // 仅 regular 时有效
|
||
Items []*AssetItem `protobuf:"bytes,5,rep,name=items,proto3" json:"items,omitempty"` // collection / activity 时有效
|
||
TotalCount int32 `protobuf:"varint,6,opt,name=total_count,json=totalCount,proto3" json:"total_count,omitempty"`
|
||
HasMore bool `protobuf:"varint,7,opt,name=has_more,json=hasMore,proto3" json:"has_more,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *AssetGroup) Reset() {
|
||
*x = AssetGroup{}
|
||
mi := &file_starbook_proto_msgTypes[3]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *AssetGroup) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*AssetGroup) ProtoMessage() {}
|
||
|
||
func (x *AssetGroup) ProtoReflect() protoreflect.Message {
|
||
mi := &file_starbook_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 AssetGroup.ProtoReflect.Descriptor instead.
|
||
func (*AssetGroup) Descriptor() ([]byte, []int) {
|
||
return file_starbook_proto_rawDescGZIP(), []int{3}
|
||
}
|
||
|
||
func (x *AssetGroup) GetType() string {
|
||
if x != nil {
|
||
return x.Type
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *AssetGroup) GetCategory() string {
|
||
if x != nil {
|
||
return x.Category
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *AssetGroup) GetCategoryName() string {
|
||
if x != nil {
|
||
return x.CategoryName
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *AssetGroup) GetGrades() []*GradeSection {
|
||
if x != nil {
|
||
return x.Grades
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *AssetGroup) GetItems() []*AssetItem {
|
||
if x != nil {
|
||
return x.Items
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *AssetGroup) GetTotalCount() int32 {
|
||
if x != nil {
|
||
return x.TotalCount
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *AssetGroup) GetHasMore() bool {
|
||
if x != nil {
|
||
return x.HasMore
|
||
}
|
||
return false
|
||
}
|
||
|
||
// 等级分组(仅 regular 类型使用)
|
||
type GradeSection struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Grade int32 `protobuf:"varint,1,opt,name=grade,proto3" json:"grade,omitempty"` // 等级:1/2/3/4/5...
|
||
Items []*AssetItem `protobuf:"bytes,2,rep,name=items,proto3" json:"items,omitempty"`
|
||
TotalCount int32 `protobuf:"varint,3,opt,name=total_count,json=totalCount,proto3" json:"total_count,omitempty"`
|
||
HasMore bool `protobuf:"varint,4,opt,name=has_more,json=hasMore,proto3" json:"has_more,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *GradeSection) Reset() {
|
||
*x = GradeSection{}
|
||
mi := &file_starbook_proto_msgTypes[4]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *GradeSection) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*GradeSection) ProtoMessage() {}
|
||
|
||
func (x *GradeSection) ProtoReflect() protoreflect.Message {
|
||
mi := &file_starbook_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 GradeSection.ProtoReflect.Descriptor instead.
|
||
func (*GradeSection) Descriptor() ([]byte, []int) {
|
||
return file_starbook_proto_rawDescGZIP(), []int{4}
|
||
}
|
||
|
||
func (x *GradeSection) GetGrade() int32 {
|
||
if x != nil {
|
||
return x.Grade
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *GradeSection) GetItems() []*AssetItem {
|
||
if x != nil {
|
||
return x.Items
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *GradeSection) GetTotalCount() int32 {
|
||
if x != nil {
|
||
return x.TotalCount
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *GradeSection) GetHasMore() bool {
|
||
if x != nil {
|
||
return x.HasMore
|
||
}
|
||
return false
|
||
}
|
||
|
||
// 资产项
|
||
type AssetItem struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
AssetId int64 `protobuf:"varint,1,opt,name=asset_id,json=assetId,proto3" json:"asset_id,omitempty"`
|
||
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
|
||
CoverUrlSigned string `protobuf:"bytes,3,opt,name=cover_url_signed,json=coverUrlSigned,proto3" json:"cover_url_signed,omitempty"` // 预签名封面URL
|
||
LikeCount int32 `protobuf:"varint,4,opt,name=like_count,json=likeCount,proto3" json:"like_count,omitempty"`
|
||
CreatedAt int64 `protobuf:"varint,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
|
||
Category string `protobuf:"bytes,6,opt,name=category,proto3" json:"category,omitempty"` // regular: 'castlove' / collection: category / activity: activity_type
|
||
Grade int32 `protobuf:"varint,7,opt,name=grade,proto3" json:"grade,omitempty"` // 仅 regular 时有效(1/2/3...),其他类型为 0
|
||
DisplayStatus int32 `protobuf:"varint,8,opt,name=display_status,json=displayStatus,proto3" json:"display_status,omitempty"` // 展示状态:0=待展示, 1=已展示
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *AssetItem) Reset() {
|
||
*x = AssetItem{}
|
||
mi := &file_starbook_proto_msgTypes[5]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *AssetItem) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*AssetItem) ProtoMessage() {}
|
||
|
||
func (x *AssetItem) ProtoReflect() protoreflect.Message {
|
||
mi := &file_starbook_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 AssetItem.ProtoReflect.Descriptor instead.
|
||
func (*AssetItem) Descriptor() ([]byte, []int) {
|
||
return file_starbook_proto_rawDescGZIP(), []int{5}
|
||
}
|
||
|
||
func (x *AssetItem) GetAssetId() int64 {
|
||
if x != nil {
|
||
return x.AssetId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *AssetItem) GetName() string {
|
||
if x != nil {
|
||
return x.Name
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *AssetItem) GetCoverUrlSigned() string {
|
||
if x != nil {
|
||
return x.CoverUrlSigned
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *AssetItem) GetLikeCount() int32 {
|
||
if x != nil {
|
||
return x.LikeCount
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *AssetItem) GetCreatedAt() int64 {
|
||
if x != nil {
|
||
return x.CreatedAt
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *AssetItem) GetCategory() string {
|
||
if x != nil {
|
||
return x.Category
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *AssetItem) GetGrade() int32 {
|
||
if x != nil {
|
||
return x.Grade
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *AssetItem) GetDisplayStatus() int32 {
|
||
if x != nil {
|
||
return x.DisplayStatus
|
||
}
|
||
return 0
|
||
}
|
||
|
||
// 藏品列表请求
|
||
type GetStarbookItemsRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` // 'regular' / 'collection' / 'activity'
|
||
Category string `protobuf:"bytes,2,opt,name=category,proto3" json:"category,omitempty"` // regular 时固定传 'castlove'
|
||
Grade int32 `protobuf:"varint,3,opt,name=grade,proto3" json:"grade,omitempty"` // 仅 regular 时有效(1/2/3...)
|
||
Page int32 `protobuf:"varint,4,opt,name=page,proto3" json:"page,omitempty"` // 默认 1
|
||
PageSize int32 `protobuf:"varint,5,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // 默认 20
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *GetStarbookItemsRequest) Reset() {
|
||
*x = GetStarbookItemsRequest{}
|
||
mi := &file_starbook_proto_msgTypes[6]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *GetStarbookItemsRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*GetStarbookItemsRequest) ProtoMessage() {}
|
||
|
||
func (x *GetStarbookItemsRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_starbook_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 GetStarbookItemsRequest.ProtoReflect.Descriptor instead.
|
||
func (*GetStarbookItemsRequest) Descriptor() ([]byte, []int) {
|
||
return file_starbook_proto_rawDescGZIP(), []int{6}
|
||
}
|
||
|
||
func (x *GetStarbookItemsRequest) GetType() string {
|
||
if x != nil {
|
||
return x.Type
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *GetStarbookItemsRequest) GetCategory() string {
|
||
if x != nil {
|
||
return x.Category
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *GetStarbookItemsRequest) GetGrade() int32 {
|
||
if x != nil {
|
||
return x.Grade
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *GetStarbookItemsRequest) GetPage() int32 {
|
||
if x != nil {
|
||
return x.Page
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *GetStarbookItemsRequest) GetPageSize() int32 {
|
||
if x != nil {
|
||
return x.PageSize
|
||
}
|
||
return 0
|
||
}
|
||
|
||
// 藏品列表响应
|
||
type GetStarbookItemsResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Base *common.BaseResponse `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"`
|
||
Data *AssetListData `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *GetStarbookItemsResponse) Reset() {
|
||
*x = GetStarbookItemsResponse{}
|
||
mi := &file_starbook_proto_msgTypes[7]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *GetStarbookItemsResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*GetStarbookItemsResponse) ProtoMessage() {}
|
||
|
||
func (x *GetStarbookItemsResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_starbook_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 GetStarbookItemsResponse.ProtoReflect.Descriptor instead.
|
||
func (*GetStarbookItemsResponse) Descriptor() ([]byte, []int) {
|
||
return file_starbook_proto_rawDescGZIP(), []int{7}
|
||
}
|
||
|
||
func (x *GetStarbookItemsResponse) GetBase() *common.BaseResponse {
|
||
if x != nil {
|
||
return x.Base
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *GetStarbookItemsResponse) GetData() *AssetListData {
|
||
if x != nil {
|
||
return x.Data
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// 藏品列表数据
|
||
type AssetListData struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Items []*AssetItem `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
|
||
Total int64 `protobuf:"varint,2,opt,name=total,proto3" json:"total,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"`
|
||
HasMore bool `protobuf:"varint,5,opt,name=has_more,json=hasMore,proto3" json:"has_more,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *AssetListData) Reset() {
|
||
*x = AssetListData{}
|
||
mi := &file_starbook_proto_msgTypes[8]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *AssetListData) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*AssetListData) ProtoMessage() {}
|
||
|
||
func (x *AssetListData) ProtoReflect() protoreflect.Message {
|
||
mi := &file_starbook_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 AssetListData.ProtoReflect.Descriptor instead.
|
||
func (*AssetListData) Descriptor() ([]byte, []int) {
|
||
return file_starbook_proto_rawDescGZIP(), []int{8}
|
||
}
|
||
|
||
func (x *AssetListData) GetItems() []*AssetItem {
|
||
if x != nil {
|
||
return x.Items
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *AssetListData) GetTotal() int64 {
|
||
if x != nil {
|
||
return x.Total
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *AssetListData) GetPage() int32 {
|
||
if x != nil {
|
||
return x.Page
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *AssetListData) GetPageSize() int32 {
|
||
if x != nil {
|
||
return x.PageSize
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *AssetListData) GetHasMore() bool {
|
||
if x != nil {
|
||
return x.HasMore
|
||
}
|
||
return false
|
||
}
|
||
|
||
var File_starbook_proto protoreflect.FileDescriptor
|
||
|
||
const file_starbook_proto_rawDesc = "" +
|
||
"\n" +
|
||
"\x0estarbook.proto\x12\x10topfans.starbook\x1a\x12proto/common.proto\x1a\x1cgoogle/api/annotations.proto\"\x18\n" +
|
||
"\x16GetStarbookHomeRequest\"\x83\x01\n" +
|
||
"\x17GetStarbookHomeResponse\x120\n" +
|
||
"\x04base\x18\x01 \x01(\v2\x1c.topfans.common.BaseResponseR\x04base\x126\n" +
|
||
"\x04data\x18\x02 \x01(\v2\".topfans.starbook.StarbookHomeDataR\x04data\"H\n" +
|
||
"\x10StarbookHomeData\x124\n" +
|
||
"\x06groups\x18\x01 \x03(\v2\x1c.topfans.starbook.AssetGroupR\x06groups\"\x88\x02\n" +
|
||
"\n" +
|
||
"AssetGroup\x12\x12\n" +
|
||
"\x04type\x18\x01 \x01(\tR\x04type\x12\x1a\n" +
|
||
"\bcategory\x18\x02 \x01(\tR\bcategory\x12#\n" +
|
||
"\rcategory_name\x18\x03 \x01(\tR\fcategoryName\x126\n" +
|
||
"\x06grades\x18\x04 \x03(\v2\x1e.topfans.starbook.GradeSectionR\x06grades\x121\n" +
|
||
"\x05items\x18\x05 \x03(\v2\x1b.topfans.starbook.AssetItemR\x05items\x12\x1f\n" +
|
||
"\vtotal_count\x18\x06 \x01(\x05R\n" +
|
||
"totalCount\x12\x19\n" +
|
||
"\bhas_more\x18\a \x01(\bR\ahasMore\"\x93\x01\n" +
|
||
"\fGradeSection\x12\x14\n" +
|
||
"\x05grade\x18\x01 \x01(\x05R\x05grade\x121\n" +
|
||
"\x05items\x18\x02 \x03(\v2\x1b.topfans.starbook.AssetItemR\x05items\x12\x1f\n" +
|
||
"\vtotal_count\x18\x03 \x01(\x05R\n" +
|
||
"totalCount\x12\x19\n" +
|
||
"\bhas_more\x18\x04 \x01(\bR\ahasMore\"\xfb\x01\n" +
|
||
"\tAssetItem\x12\x19\n" +
|
||
"\basset_id\x18\x01 \x01(\x03R\aassetId\x12\x12\n" +
|
||
"\x04name\x18\x02 \x01(\tR\x04name\x12(\n" +
|
||
"\x10cover_url_signed\x18\x03 \x01(\tR\x0ecoverUrlSigned\x12\x1d\n" +
|
||
"\n" +
|
||
"like_count\x18\x04 \x01(\x05R\tlikeCount\x12\x1d\n" +
|
||
"\n" +
|
||
"created_at\x18\x05 \x01(\x03R\tcreatedAt\x12\x1a\n" +
|
||
"\bcategory\x18\x06 \x01(\tR\bcategory\x12\x14\n" +
|
||
"\x05grade\x18\a \x01(\x05R\x05grade\x12%\n" +
|
||
"\x0edisplay_status\x18\b \x01(\x05R\rdisplayStatus\"\x90\x01\n" +
|
||
"\x17GetStarbookItemsRequest\x12\x12\n" +
|
||
"\x04type\x18\x01 \x01(\tR\x04type\x12\x1a\n" +
|
||
"\bcategory\x18\x02 \x01(\tR\bcategory\x12\x14\n" +
|
||
"\x05grade\x18\x03 \x01(\x05R\x05grade\x12\x12\n" +
|
||
"\x04page\x18\x04 \x01(\x05R\x04page\x12\x1b\n" +
|
||
"\tpage_size\x18\x05 \x01(\x05R\bpageSize\"\x81\x01\n" +
|
||
"\x18GetStarbookItemsResponse\x120\n" +
|
||
"\x04base\x18\x01 \x01(\v2\x1c.topfans.common.BaseResponseR\x04base\x123\n" +
|
||
"\x04data\x18\x02 \x01(\v2\x1f.topfans.starbook.AssetListDataR\x04data\"\xa4\x01\n" +
|
||
"\rAssetListData\x121\n" +
|
||
"\x05items\x18\x01 \x03(\v2\x1b.topfans.starbook.AssetItemR\x05items\x12\x14\n" +
|
||
"\x05total\x18\x02 \x01(\x03R\x05total\x12\x12\n" +
|
||
"\x04page\x18\x03 \x01(\x05R\x04page\x12\x1b\n" +
|
||
"\tpage_size\x18\x04 \x01(\x05R\bpageSize\x12\x19\n" +
|
||
"\bhas_more\x18\x05 \x01(\bR\ahasMore2\xa5\x02\n" +
|
||
"\x0fStarbookService\x12\x85\x01\n" +
|
||
"\x0fGetStarbookHome\x12(.topfans.starbook.GetStarbookHomeRequest\x1a).topfans.starbook.GetStarbookHomeResponse\"\x1d\x82\xd3\xe4\x93\x02\x17\x12\x15/api/v1/starbook/home\x12\x89\x01\n" +
|
||
"\x10GetStarbookItems\x12).topfans.starbook.GetStarbookItemsRequest\x1a*.topfans.starbook.GetStarbookItemsResponse\"\x1e\x82\xd3\xe4\x93\x02\x18\x12\x16/api/v1/starbook/itemsB8Z6github.com/topfans/backend/pkg/proto/starbook;starbookb\x06proto3"
|
||
|
||
var (
|
||
file_starbook_proto_rawDescOnce sync.Once
|
||
file_starbook_proto_rawDescData []byte
|
||
)
|
||
|
||
func file_starbook_proto_rawDescGZIP() []byte {
|
||
file_starbook_proto_rawDescOnce.Do(func() {
|
||
file_starbook_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_starbook_proto_rawDesc), len(file_starbook_proto_rawDesc)))
|
||
})
|
||
return file_starbook_proto_rawDescData
|
||
}
|
||
|
||
var file_starbook_proto_msgTypes = make([]protoimpl.MessageInfo, 9)
|
||
var file_starbook_proto_goTypes = []any{
|
||
(*GetStarbookHomeRequest)(nil), // 0: topfans.starbook.GetStarbookHomeRequest
|
||
(*GetStarbookHomeResponse)(nil), // 1: topfans.starbook.GetStarbookHomeResponse
|
||
(*StarbookHomeData)(nil), // 2: topfans.starbook.StarbookHomeData
|
||
(*AssetGroup)(nil), // 3: topfans.starbook.AssetGroup
|
||
(*GradeSection)(nil), // 4: topfans.starbook.GradeSection
|
||
(*AssetItem)(nil), // 5: topfans.starbook.AssetItem
|
||
(*GetStarbookItemsRequest)(nil), // 6: topfans.starbook.GetStarbookItemsRequest
|
||
(*GetStarbookItemsResponse)(nil), // 7: topfans.starbook.GetStarbookItemsResponse
|
||
(*AssetListData)(nil), // 8: topfans.starbook.AssetListData
|
||
(*common.BaseResponse)(nil), // 9: topfans.common.BaseResponse
|
||
}
|
||
var file_starbook_proto_depIdxs = []int32{
|
||
9, // 0: topfans.starbook.GetStarbookHomeResponse.base:type_name -> topfans.common.BaseResponse
|
||
2, // 1: topfans.starbook.GetStarbookHomeResponse.data:type_name -> topfans.starbook.StarbookHomeData
|
||
3, // 2: topfans.starbook.StarbookHomeData.groups:type_name -> topfans.starbook.AssetGroup
|
||
4, // 3: topfans.starbook.AssetGroup.grades:type_name -> topfans.starbook.GradeSection
|
||
5, // 4: topfans.starbook.AssetGroup.items:type_name -> topfans.starbook.AssetItem
|
||
5, // 5: topfans.starbook.GradeSection.items:type_name -> topfans.starbook.AssetItem
|
||
9, // 6: topfans.starbook.GetStarbookItemsResponse.base:type_name -> topfans.common.BaseResponse
|
||
8, // 7: topfans.starbook.GetStarbookItemsResponse.data:type_name -> topfans.starbook.AssetListData
|
||
5, // 8: topfans.starbook.AssetListData.items:type_name -> topfans.starbook.AssetItem
|
||
0, // 9: topfans.starbook.StarbookService.GetStarbookHome:input_type -> topfans.starbook.GetStarbookHomeRequest
|
||
6, // 10: topfans.starbook.StarbookService.GetStarbookItems:input_type -> topfans.starbook.GetStarbookItemsRequest
|
||
1, // 11: topfans.starbook.StarbookService.GetStarbookHome:output_type -> topfans.starbook.GetStarbookHomeResponse
|
||
7, // 12: topfans.starbook.StarbookService.GetStarbookItems:output_type -> topfans.starbook.GetStarbookItemsResponse
|
||
11, // [11:13] is the sub-list for method output_type
|
||
9, // [9:11] 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_starbook_proto_init() }
|
||
func file_starbook_proto_init() {
|
||
if File_starbook_proto != nil {
|
||
return
|
||
}
|
||
type x struct{}
|
||
out := protoimpl.TypeBuilder{
|
||
File: protoimpl.DescBuilder{
|
||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||
RawDescriptor: unsafe.Slice(unsafe.StringData(file_starbook_proto_rawDesc), len(file_starbook_proto_rawDesc)),
|
||
NumEnums: 0,
|
||
NumMessages: 9,
|
||
NumExtensions: 0,
|
||
NumServices: 1,
|
||
},
|
||
GoTypes: file_starbook_proto_goTypes,
|
||
DependencyIndexes: file_starbook_proto_depIdxs,
|
||
MessageInfos: file_starbook_proto_msgTypes,
|
||
}.Build()
|
||
File_starbook_proto = out.File
|
||
file_starbook_proto_goTypes = nil
|
||
file_starbook_proto_depIdxs = nil
|
||
}
|