topfans/backend/pkg/proto/gallery/gallery.pb.go
2026-04-30 21:21:12 +08:00

1727 lines
55 KiB
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.11
// protoc v7.34.0
// source: gallery.proto
package gallery
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 GetMyGalleryRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *GetMyGalleryRequest) Reset() {
*x = GetMyGalleryRequest{}
mi := &file_gallery_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *GetMyGalleryRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetMyGalleryRequest) ProtoMessage() {}
func (x *GetMyGalleryRequest) ProtoReflect() protoreflect.Message {
mi := &file_gallery_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 GetMyGalleryRequest.ProtoReflect.Descriptor instead.
func (*GetMyGalleryRequest) Descriptor() ([]byte, []int) {
return file_gallery_proto_rawDescGZIP(), []int{0}
}
type GetMyGalleryResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
Base *common.BaseResponse `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"`
Data *GalleryData `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *GetMyGalleryResponse) Reset() {
*x = GetMyGalleryResponse{}
mi := &file_gallery_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *GetMyGalleryResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetMyGalleryResponse) ProtoMessage() {}
func (x *GetMyGalleryResponse) ProtoReflect() protoreflect.Message {
mi := &file_gallery_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 GetMyGalleryResponse.ProtoReflect.Descriptor instead.
func (*GetMyGalleryResponse) Descriptor() ([]byte, []int) {
return file_gallery_proto_rawDescGZIP(), []int{1}
}
func (x *GetMyGalleryResponse) GetBase() *common.BaseResponse {
if x != nil {
return x.Base
}
return nil
}
func (x *GetMyGalleryResponse) GetData() *GalleryData {
if x != nil {
return x.Data
}
return nil
}
type GetUserGalleryRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
TargetUid int64 `protobuf:"varint,1,opt,name=target_uid,json=targetUid,proto3" json:"target_uid,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *GetUserGalleryRequest) Reset() {
*x = GetUserGalleryRequest{}
mi := &file_gallery_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *GetUserGalleryRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetUserGalleryRequest) ProtoMessage() {}
func (x *GetUserGalleryRequest) ProtoReflect() protoreflect.Message {
mi := &file_gallery_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 GetUserGalleryRequest.ProtoReflect.Descriptor instead.
func (*GetUserGalleryRequest) Descriptor() ([]byte, []int) {
return file_gallery_proto_rawDescGZIP(), []int{2}
}
func (x *GetUserGalleryRequest) GetTargetUid() int64 {
if x != nil {
return x.TargetUid
}
return 0
}
type GetUserGalleryResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
Base *common.BaseResponse `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"`
Data *GalleryData `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *GetUserGalleryResponse) Reset() {
*x = GetUserGalleryResponse{}
mi := &file_gallery_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *GetUserGalleryResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetUserGalleryResponse) ProtoMessage() {}
func (x *GetUserGalleryResponse) ProtoReflect() protoreflect.Message {
mi := &file_gallery_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 GetUserGalleryResponse.ProtoReflect.Descriptor instead.
func (*GetUserGalleryResponse) Descriptor() ([]byte, []int) {
return file_gallery_proto_rawDescGZIP(), []int{3}
}
func (x *GetUserGalleryResponse) GetBase() *common.BaseResponse {
if x != nil {
return x.Base
}
return nil
}
func (x *GetUserGalleryResponse) GetData() *GalleryData {
if x != nil {
return x.Data
}
return nil
}
type PlaceAssetRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
AssetId int64 `protobuf:"varint,1,opt,name=asset_id,json=assetId,proto3" json:"asset_id,omitempty"`
GalleryOwnerId int64 `protobuf:"varint,2,opt,name=gallery_owner_id,json=galleryOwnerId,proto3" json:"gallery_owner_id,omitempty"`
SlotId int64 `protobuf:"varint,3,opt,name=slot_id,json=slotId,proto3" json:"slot_id,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *PlaceAssetRequest) Reset() {
*x = PlaceAssetRequest{}
mi := &file_gallery_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *PlaceAssetRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PlaceAssetRequest) ProtoMessage() {}
func (x *PlaceAssetRequest) ProtoReflect() protoreflect.Message {
mi := &file_gallery_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 PlaceAssetRequest.ProtoReflect.Descriptor instead.
func (*PlaceAssetRequest) Descriptor() ([]byte, []int) {
return file_gallery_proto_rawDescGZIP(), []int{4}
}
func (x *PlaceAssetRequest) GetAssetId() int64 {
if x != nil {
return x.AssetId
}
return 0
}
func (x *PlaceAssetRequest) GetGalleryOwnerId() int64 {
if x != nil {
return x.GalleryOwnerId
}
return 0
}
func (x *PlaceAssetRequest) GetSlotId() int64 {
if x != nil {
return x.SlotId
}
return 0
}
type PlaceAssetResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
Base *common.BaseResponse `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"`
Data *PlaceAssetData `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *PlaceAssetResponse) Reset() {
*x = PlaceAssetResponse{}
mi := &file_gallery_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *PlaceAssetResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PlaceAssetResponse) ProtoMessage() {}
func (x *PlaceAssetResponse) ProtoReflect() protoreflect.Message {
mi := &file_gallery_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 PlaceAssetResponse.ProtoReflect.Descriptor instead.
func (*PlaceAssetResponse) Descriptor() ([]byte, []int) {
return file_gallery_proto_rawDescGZIP(), []int{5}
}
func (x *PlaceAssetResponse) GetBase() *common.BaseResponse {
if x != nil {
return x.Base
}
return nil
}
func (x *PlaceAssetResponse) GetData() *PlaceAssetData {
if x != nil {
return x.Data
}
return nil
}
type UnlockSlotRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *UnlockSlotRequest) Reset() {
*x = UnlockSlotRequest{}
mi := &file_gallery_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *UnlockSlotRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UnlockSlotRequest) ProtoMessage() {}
func (x *UnlockSlotRequest) ProtoReflect() protoreflect.Message {
mi := &file_gallery_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 UnlockSlotRequest.ProtoReflect.Descriptor instead.
func (*UnlockSlotRequest) Descriptor() ([]byte, []int) {
return file_gallery_proto_rawDescGZIP(), []int{6}
}
type UnlockSlotResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
Base *common.BaseResponse `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"`
Data *UnlockSlotData `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *UnlockSlotResponse) Reset() {
*x = UnlockSlotResponse{}
mi := &file_gallery_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *UnlockSlotResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UnlockSlotResponse) ProtoMessage() {}
func (x *UnlockSlotResponse) ProtoReflect() protoreflect.Message {
mi := &file_gallery_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 UnlockSlotResponse.ProtoReflect.Descriptor instead.
func (*UnlockSlotResponse) Descriptor() ([]byte, []int) {
return file_gallery_proto_rawDescGZIP(), []int{7}
}
func (x *UnlockSlotResponse) GetBase() *common.BaseResponse {
if x != nil {
return x.Base
}
return nil
}
func (x *UnlockSlotResponse) GetData() *UnlockSlotData {
if x != nil {
return x.Data
}
return nil
}
// 数据模型
type GalleryData struct {
state protoimpl.MessageState `protogen:"open.v1"`
GalleryOwnerId int64 `protobuf:"varint,1,opt,name=gallery_owner_id,json=galleryOwnerId,proto3" json:"gallery_owner_id,omitempty"`
SlotTotal int32 `protobuf:"varint,2,opt,name=slot_total,json=slotTotal,proto3" json:"slot_total,omitempty"`
Slots []*SlotInfo `protobuf:"bytes,3,rep,name=slots,proto3" json:"slots,omitempty"`
Nickname string `protobuf:"bytes,4,opt,name=nickname,proto3" json:"nickname,omitempty"` // 展馆所有者昵称(从 fan_profiles 表获取)
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *GalleryData) Reset() {
*x = GalleryData{}
mi := &file_gallery_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *GalleryData) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GalleryData) ProtoMessage() {}
func (x *GalleryData) ProtoReflect() protoreflect.Message {
mi := &file_gallery_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 GalleryData.ProtoReflect.Descriptor instead.
func (*GalleryData) Descriptor() ([]byte, []int) {
return file_gallery_proto_rawDescGZIP(), []int{8}
}
func (x *GalleryData) GetGalleryOwnerId() int64 {
if x != nil {
return x.GalleryOwnerId
}
return 0
}
func (x *GalleryData) GetSlotTotal() int32 {
if x != nil {
return x.SlotTotal
}
return 0
}
func (x *GalleryData) GetSlots() []*SlotInfo {
if x != nil {
return x.Slots
}
return nil
}
func (x *GalleryData) GetNickname() string {
if x != nil {
return x.Nickname
}
return ""
}
type SlotInfo struct {
state protoimpl.MessageState `protogen:"open.v1"`
SlotId int64 `protobuf:"varint,1,opt,name=slot_id,json=slotId,proto3" json:"slot_id,omitempty"`
SlotIndex int32 `protobuf:"varint,2,opt,name=slot_index,json=slotIndex,proto3" json:"slot_index,omitempty"`
Status string `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"` // EMPTY, OCCUPIED, LOCKED
IsEnabled bool `protobuf:"varint,4,opt,name=is_enabled,json=isEnabled,proto3" json:"is_enabled,omitempty"`
Asset *AssetInfo `protobuf:"bytes,5,opt,name=asset,proto3" json:"asset,omitempty"`
OccupierUid int64 `protobuf:"varint,6,opt,name=occupier_uid,json=occupierUid,proto3" json:"occupier_uid,omitempty"`
OccupiedAt int64 `protobuf:"varint,7,opt,name=occupied_at,json=occupiedAt,proto3" json:"occupied_at,omitempty"`
ExpireAt int64 `protobuf:"varint,8,opt,name=expire_at,json=expireAt,proto3" json:"expire_at,omitempty"`
UnlockCondition *UnlockCondition `protobuf:"bytes,9,opt,name=unlock_condition,json=unlockCondition,proto3" json:"unlock_condition,omitempty"`
Visibility string `protobuf:"bytes,10,opt,name=visibility,proto3" json:"visibility,omitempty"` // public / private
CanOperate bool `protobuf:"varint,11,opt,name=can_operate,json=canOperate,proto3" json:"can_operate,omitempty"` // 当前用户是否可以操作此展位
Operation string `protobuf:"bytes,12,opt,name=operation,proto3" json:"operation,omitempty"` // 操作类型: "place" | "remove" | "none"
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *SlotInfo) Reset() {
*x = SlotInfo{}
mi := &file_gallery_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *SlotInfo) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SlotInfo) ProtoMessage() {}
func (x *SlotInfo) ProtoReflect() protoreflect.Message {
mi := &file_gallery_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 SlotInfo.ProtoReflect.Descriptor instead.
func (*SlotInfo) Descriptor() ([]byte, []int) {
return file_gallery_proto_rawDescGZIP(), []int{9}
}
func (x *SlotInfo) GetSlotId() int64 {
if x != nil {
return x.SlotId
}
return 0
}
func (x *SlotInfo) GetSlotIndex() int32 {
if x != nil {
return x.SlotIndex
}
return 0
}
func (x *SlotInfo) GetStatus() string {
if x != nil {
return x.Status
}
return ""
}
func (x *SlotInfo) GetIsEnabled() bool {
if x != nil {
return x.IsEnabled
}
return false
}
func (x *SlotInfo) GetAsset() *AssetInfo {
if x != nil {
return x.Asset
}
return nil
}
func (x *SlotInfo) GetOccupierUid() int64 {
if x != nil {
return x.OccupierUid
}
return 0
}
func (x *SlotInfo) GetOccupiedAt() int64 {
if x != nil {
return x.OccupiedAt
}
return 0
}
func (x *SlotInfo) GetExpireAt() int64 {
if x != nil {
return x.ExpireAt
}
return 0
}
func (x *SlotInfo) GetUnlockCondition() *UnlockCondition {
if x != nil {
return x.UnlockCondition
}
return nil
}
func (x *SlotInfo) GetVisibility() string {
if x != nil {
return x.Visibility
}
return ""
}
func (x *SlotInfo) GetCanOperate() bool {
if x != nil {
return x.CanOperate
}
return false
}
func (x *SlotInfo) GetOperation() string {
if x != nil {
return x.Operation
}
return ""
}
type AssetInfo 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"`
CoverUrl string `protobuf:"bytes,3,opt,name=cover_url,json=coverUrl,proto3" json:"cover_url,omitempty"`
LikeCount int32 `protobuf:"varint,4,opt,name=like_count,json=likeCount,proto3" json:"like_count,omitempty"`
RemainTime int64 `protobuf:"varint,5,opt,name=remain_time,json=remainTime,proto3" json:"remain_time,omitempty"` // 剩余时间(秒)
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *AssetInfo) Reset() {
*x = AssetInfo{}
mi := &file_gallery_proto_msgTypes[10]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *AssetInfo) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AssetInfo) ProtoMessage() {}
func (x *AssetInfo) ProtoReflect() protoreflect.Message {
mi := &file_gallery_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 AssetInfo.ProtoReflect.Descriptor instead.
func (*AssetInfo) Descriptor() ([]byte, []int) {
return file_gallery_proto_rawDescGZIP(), []int{10}
}
func (x *AssetInfo) GetAssetId() int64 {
if x != nil {
return x.AssetId
}
return 0
}
func (x *AssetInfo) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *AssetInfo) GetCoverUrl() string {
if x != nil {
return x.CoverUrl
}
return ""
}
func (x *AssetInfo) GetLikeCount() int32 {
if x != nil {
return x.LikeCount
}
return 0
}
func (x *AssetInfo) GetRemainTime() int64 {
if x != nil {
return x.RemainTime
}
return 0
}
type UnlockCondition struct {
state protoimpl.MessageState `protogen:"open.v1"`
Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` // level, crystal
Value int32 `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *UnlockCondition) Reset() {
*x = UnlockCondition{}
mi := &file_gallery_proto_msgTypes[11]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *UnlockCondition) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UnlockCondition) ProtoMessage() {}
func (x *UnlockCondition) ProtoReflect() protoreflect.Message {
mi := &file_gallery_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 UnlockCondition.ProtoReflect.Descriptor instead.
func (*UnlockCondition) Descriptor() ([]byte, []int) {
return file_gallery_proto_rawDescGZIP(), []int{11}
}
func (x *UnlockCondition) GetType() string {
if x != nil {
return x.Type
}
return ""
}
func (x *UnlockCondition) GetValue() int32 {
if x != nil {
return x.Value
}
return 0
}
type PlaceAssetData struct {
state protoimpl.MessageState `protogen:"open.v1"`
Status string `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` // OCCUPIED
OccupiedUntil string `protobuf:"bytes,2,opt,name=occupied_until,json=occupiedUntil,proto3" json:"occupied_until,omitempty"` // ISO 8601格式
OccupierUid int64 `protobuf:"varint,3,opt,name=occupier_uid,json=occupierUid,proto3" json:"occupier_uid,omitempty"` // 占位者用户ID
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *PlaceAssetData) Reset() {
*x = PlaceAssetData{}
mi := &file_gallery_proto_msgTypes[12]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *PlaceAssetData) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PlaceAssetData) ProtoMessage() {}
func (x *PlaceAssetData) ProtoReflect() protoreflect.Message {
mi := &file_gallery_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 PlaceAssetData.ProtoReflect.Descriptor instead.
func (*PlaceAssetData) Descriptor() ([]byte, []int) {
return file_gallery_proto_rawDescGZIP(), []int{12}
}
func (x *PlaceAssetData) GetStatus() string {
if x != nil {
return x.Status
}
return ""
}
func (x *PlaceAssetData) GetOccupiedUntil() string {
if x != nil {
return x.OccupiedUntil
}
return ""
}
func (x *PlaceAssetData) GetOccupierUid() int64 {
if x != nil {
return x.OccupierUid
}
return 0
}
type UnlockSlotData struct {
state protoimpl.MessageState `protogen:"open.v1"`
SlotTotal int32 `protobuf:"varint,1,opt,name=slot_total,json=slotTotal,proto3" json:"slot_total,omitempty"` // 展位总数
CrystalBalance int64 `protobuf:"varint,2,opt,name=crystal_balance,json=crystalBalance,proto3" json:"crystal_balance,omitempty"` // 水晶余额(如果使用水晶购买,显示扣除后的余额)
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *UnlockSlotData) Reset() {
*x = UnlockSlotData{}
mi := &file_gallery_proto_msgTypes[13]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *UnlockSlotData) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UnlockSlotData) ProtoMessage() {}
func (x *UnlockSlotData) ProtoReflect() protoreflect.Message {
mi := &file_gallery_proto_msgTypes[13]
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 UnlockSlotData.ProtoReflect.Descriptor instead.
func (*UnlockSlotData) Descriptor() ([]byte, []int) {
return file_gallery_proto_rawDescGZIP(), []int{13}
}
func (x *UnlockSlotData) GetSlotTotal() int32 {
if x != nil {
return x.SlotTotal
}
return 0
}
func (x *UnlockSlotData) GetCrystalBalance() int64 {
if x != nil {
return x.CrystalBalance
}
return 0
}
// 从展位移除资产请求
type RemoveFromSlotRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
SlotId int64 `protobuf:"varint,1,opt,name=slot_id,json=slotId,proto3" json:"slot_id,omitempty"` // 展位ID必填
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *RemoveFromSlotRequest) Reset() {
*x = RemoveFromSlotRequest{}
mi := &file_gallery_proto_msgTypes[14]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *RemoveFromSlotRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*RemoveFromSlotRequest) ProtoMessage() {}
func (x *RemoveFromSlotRequest) ProtoReflect() protoreflect.Message {
mi := &file_gallery_proto_msgTypes[14]
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 RemoveFromSlotRequest.ProtoReflect.Descriptor instead.
func (*RemoveFromSlotRequest) Descriptor() ([]byte, []int) {
return file_gallery_proto_rawDescGZIP(), []int{14}
}
func (x *RemoveFromSlotRequest) GetSlotId() int64 {
if x != nil {
return x.SlotId
}
return 0
}
// 从展位移除资产响应
type RemoveFromSlotResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
Base *common.BaseResponse `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *RemoveFromSlotResponse) Reset() {
*x = RemoveFromSlotResponse{}
mi := &file_gallery_proto_msgTypes[15]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *RemoveFromSlotResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*RemoveFromSlotResponse) ProtoMessage() {}
func (x *RemoveFromSlotResponse) ProtoReflect() protoreflect.Message {
mi := &file_gallery_proto_msgTypes[15]
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 RemoveFromSlotResponse.ProtoReflect.Descriptor instead.
func (*RemoveFromSlotResponse) Descriptor() ([]byte, []int) {
return file_gallery_proto_rawDescGZIP(), []int{15}
}
func (x *RemoveFromSlotResponse) GetBase() *common.BaseResponse {
if x != nil {
return x.Base
}
return nil
}
// 获取我展出的作品列表请求
type GetMyExhibitedAssetsRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
Page int32 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"` // 页码默认1
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // 每页数量默认20最大100
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *GetMyExhibitedAssetsRequest) Reset() {
*x = GetMyExhibitedAssetsRequest{}
mi := &file_gallery_proto_msgTypes[16]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *GetMyExhibitedAssetsRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetMyExhibitedAssetsRequest) ProtoMessage() {}
func (x *GetMyExhibitedAssetsRequest) ProtoReflect() protoreflect.Message {
mi := &file_gallery_proto_msgTypes[16]
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 GetMyExhibitedAssetsRequest.ProtoReflect.Descriptor instead.
func (*GetMyExhibitedAssetsRequest) Descriptor() ([]byte, []int) {
return file_gallery_proto_rawDescGZIP(), []int{16}
}
func (x *GetMyExhibitedAssetsRequest) GetPage() int32 {
if x != nil {
return x.Page
}
return 0
}
func (x *GetMyExhibitedAssetsRequest) GetPageSize() int32 {
if x != nil {
return x.PageSize
}
return 0
}
// 获取我展出的作品列表响应
type GetMyExhibitedAssetsResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
Base *common.BaseResponse `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"`
Data *ExhibitedAssetsData `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *GetMyExhibitedAssetsResponse) Reset() {
*x = GetMyExhibitedAssetsResponse{}
mi := &file_gallery_proto_msgTypes[17]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *GetMyExhibitedAssetsResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetMyExhibitedAssetsResponse) ProtoMessage() {}
func (x *GetMyExhibitedAssetsResponse) ProtoReflect() protoreflect.Message {
mi := &file_gallery_proto_msgTypes[17]
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 GetMyExhibitedAssetsResponse.ProtoReflect.Descriptor instead.
func (*GetMyExhibitedAssetsResponse) Descriptor() ([]byte, []int) {
return file_gallery_proto_rawDescGZIP(), []int{17}
}
func (x *GetMyExhibitedAssetsResponse) GetBase() *common.BaseResponse {
if x != nil {
return x.Base
}
return nil
}
func (x *GetMyExhibitedAssetsResponse) GetData() *ExhibitedAssetsData {
if x != nil {
return x.Data
}
return nil
}
// 展出作品数据
type ExhibitedAssetsData struct {
state protoimpl.MessageState `protogen:"open.v1"`
Items []*ExhibitedAssetItem `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"` // 作品列表
Page int32 `protobuf:"varint,2,opt,name=page,proto3" json:"page,omitempty"` // 当前页码
PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // 每页数量
Total int64 `protobuf:"varint,4,opt,name=total,proto3" json:"total,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 *ExhibitedAssetsData) Reset() {
*x = ExhibitedAssetsData{}
mi := &file_gallery_proto_msgTypes[18]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ExhibitedAssetsData) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ExhibitedAssetsData) ProtoMessage() {}
func (x *ExhibitedAssetsData) ProtoReflect() protoreflect.Message {
mi := &file_gallery_proto_msgTypes[18]
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 ExhibitedAssetsData.ProtoReflect.Descriptor instead.
func (*ExhibitedAssetsData) Descriptor() ([]byte, []int) {
return file_gallery_proto_rawDescGZIP(), []int{18}
}
func (x *ExhibitedAssetsData) GetItems() []*ExhibitedAssetItem {
if x != nil {
return x.Items
}
return nil
}
func (x *ExhibitedAssetsData) GetPage() int32 {
if x != nil {
return x.Page
}
return 0
}
func (x *ExhibitedAssetsData) GetPageSize() int32 {
if x != nil {
return x.PageSize
}
return 0
}
func (x *ExhibitedAssetsData) GetTotal() int64 {
if x != nil {
return x.Total
}
return 0
}
func (x *ExhibitedAssetsData) GetHasMore() bool {
if x != nil {
return x.HasMore
}
return false
}
// 展出作品项
type ExhibitedAssetItem struct {
state protoimpl.MessageState `protogen:"open.v1"`
AssetId int64 `protobuf:"varint,1,opt,name=asset_id,json=assetId,proto3" json:"asset_id,omitempty"` // 资产ID
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // 藏品名称
CoverUrl string `protobuf:"bytes,3,opt,name=cover_url,json=coverUrl,proto3" json:"cover_url,omitempty"` // 封面图URL
LikeCount int32 `protobuf:"varint,4,opt,name=like_count,json=likeCount,proto3" json:"like_count,omitempty"` // 实时点赞数
ExhibitedAt int64 `protobuf:"varint,5,opt,name=exhibited_at,json=exhibitedAt,proto3" json:"exhibited_at,omitempty"` // 展出开始时间(毫秒时间戳)
ExpireAt int64 `protobuf:"varint,6,opt,name=expire_at,json=expireAt,proto3" json:"expire_at,omitempty"` // 展出过期时间(毫秒时间戳)
Earnings int64 `protobuf:"varint,7,opt,name=earnings,proto3" json:"earnings,omitempty"` // 当前可领取收益
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ExhibitedAssetItem) Reset() {
*x = ExhibitedAssetItem{}
mi := &file_gallery_proto_msgTypes[19]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ExhibitedAssetItem) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ExhibitedAssetItem) ProtoMessage() {}
func (x *ExhibitedAssetItem) ProtoReflect() protoreflect.Message {
mi := &file_gallery_proto_msgTypes[19]
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 ExhibitedAssetItem.ProtoReflect.Descriptor instead.
func (*ExhibitedAssetItem) Descriptor() ([]byte, []int) {
return file_gallery_proto_rawDescGZIP(), []int{19}
}
func (x *ExhibitedAssetItem) GetAssetId() int64 {
if x != nil {
return x.AssetId
}
return 0
}
func (x *ExhibitedAssetItem) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *ExhibitedAssetItem) GetCoverUrl() string {
if x != nil {
return x.CoverUrl
}
return ""
}
func (x *ExhibitedAssetItem) GetLikeCount() int32 {
if x != nil {
return x.LikeCount
}
return 0
}
func (x *ExhibitedAssetItem) GetExhibitedAt() int64 {
if x != nil {
return x.ExhibitedAt
}
return 0
}
func (x *ExhibitedAssetItem) GetExpireAt() int64 {
if x != nil {
return x.ExpireAt
}
return 0
}
func (x *ExhibitedAssetItem) GetEarnings() int64 {
if x != nil {
return x.Earnings
}
return 0
}
// 获取灵感瀑布藏品列表请求
type GetInspirationFlowRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
Cursor string `protobuf:"bytes,1,opt,name=cursor,proto3" json:"cursor,omitempty"` // 游标(首次请求为空)
Direction string `protobuf:"bytes,2,opt,name=direction,proto3" json:"direction,omitempty"` // 滚动方向right加载新数据/ left加载历史
Limit int32 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"` // 每页数量默认10最大20
Type string `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"` // 过滤类型badge/poster/original/all默认all
SessionId string `protobuf:"bytes,5,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"` // 会话ID首次请求时为空后端返回新的session_id
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *GetInspirationFlowRequest) Reset() {
*x = GetInspirationFlowRequest{}
mi := &file_gallery_proto_msgTypes[20]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *GetInspirationFlowRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetInspirationFlowRequest) ProtoMessage() {}
func (x *GetInspirationFlowRequest) ProtoReflect() protoreflect.Message {
mi := &file_gallery_proto_msgTypes[20]
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 GetInspirationFlowRequest.ProtoReflect.Descriptor instead.
func (*GetInspirationFlowRequest) Descriptor() ([]byte, []int) {
return file_gallery_proto_rawDescGZIP(), []int{20}
}
func (x *GetInspirationFlowRequest) GetCursor() string {
if x != nil {
return x.Cursor
}
return ""
}
func (x *GetInspirationFlowRequest) GetDirection() string {
if x != nil {
return x.Direction
}
return ""
}
func (x *GetInspirationFlowRequest) GetLimit() int32 {
if x != nil {
return x.Limit
}
return 0
}
func (x *GetInspirationFlowRequest) GetType() string {
if x != nil {
return x.Type
}
return ""
}
func (x *GetInspirationFlowRequest) GetSessionId() string {
if x != nil {
return x.SessionId
}
return ""
}
// 获取灵感瀑布藏品列表响应
type GetInspirationFlowResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
Base *common.BaseResponse `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"`
Data *InspirationFlowData `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *GetInspirationFlowResponse) Reset() {
*x = GetInspirationFlowResponse{}
mi := &file_gallery_proto_msgTypes[21]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *GetInspirationFlowResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetInspirationFlowResponse) ProtoMessage() {}
func (x *GetInspirationFlowResponse) ProtoReflect() protoreflect.Message {
mi := &file_gallery_proto_msgTypes[21]
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 GetInspirationFlowResponse.ProtoReflect.Descriptor instead.
func (*GetInspirationFlowResponse) Descriptor() ([]byte, []int) {
return file_gallery_proto_rawDescGZIP(), []int{21}
}
func (x *GetInspirationFlowResponse) GetBase() *common.BaseResponse {
if x != nil {
return x.Base
}
return nil
}
func (x *GetInspirationFlowResponse) GetData() *InspirationFlowData {
if x != nil {
return x.Data
}
return nil
}
// 灵感瀑布数据
type InspirationFlowData struct {
state protoimpl.MessageState `protogen:"open.v1"`
Items []*InspirationFlowItem `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"` // 藏品列表
Cursor string `protobuf:"bytes,2,opt,name=cursor,proto3" json:"cursor,omitempty"` // 下次请求的游标
HasMore bool `protobuf:"varint,3,opt,name=has_more,json=hasMore,proto3" json:"has_more,omitempty"` // 是否有更多
SessionId string `protobuf:"bytes,4,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"` // 会话ID首次请求时返回
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *InspirationFlowData) Reset() {
*x = InspirationFlowData{}
mi := &file_gallery_proto_msgTypes[22]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *InspirationFlowData) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*InspirationFlowData) ProtoMessage() {}
func (x *InspirationFlowData) ProtoReflect() protoreflect.Message {
mi := &file_gallery_proto_msgTypes[22]
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 InspirationFlowData.ProtoReflect.Descriptor instead.
func (*InspirationFlowData) Descriptor() ([]byte, []int) {
return file_gallery_proto_rawDescGZIP(), []int{22}
}
func (x *InspirationFlowData) GetItems() []*InspirationFlowItem {
if x != nil {
return x.Items
}
return nil
}
func (x *InspirationFlowData) GetCursor() string {
if x != nil {
return x.Cursor
}
return ""
}
func (x *InspirationFlowData) GetHasMore() bool {
if x != nil {
return x.HasMore
}
return false
}
func (x *InspirationFlowData) GetSessionId() string {
if x != nil {
return x.SessionId
}
return ""
}
// 灵感瀑布藏品项
type InspirationFlowItem struct {
state protoimpl.MessageState `protogen:"open.v1"`
AssetId int64 `protobuf:"varint,1,opt,name=asset_id,json=assetId,proto3" json:"asset_id,omitempty"` // 资产ID
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // 藏品名称
CoverUrl string `protobuf:"bytes,3,opt,name=cover_url,json=coverUrl,proto3" json:"cover_url,omitempty"` // 封面图URL
LikeCount int32 `protobuf:"varint,4,opt,name=like_count,json=likeCount,proto3" json:"like_count,omitempty"` // 点赞数
OwnerNickname string `protobuf:"bytes,5,opt,name=owner_nickname,json=ownerNickname,proto3" json:"owner_nickname,omitempty"` // 展出者昵称
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *InspirationFlowItem) Reset() {
*x = InspirationFlowItem{}
mi := &file_gallery_proto_msgTypes[23]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *InspirationFlowItem) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*InspirationFlowItem) ProtoMessage() {}
func (x *InspirationFlowItem) ProtoReflect() protoreflect.Message {
mi := &file_gallery_proto_msgTypes[23]
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 InspirationFlowItem.ProtoReflect.Descriptor instead.
func (*InspirationFlowItem) Descriptor() ([]byte, []int) {
return file_gallery_proto_rawDescGZIP(), []int{23}
}
func (x *InspirationFlowItem) GetAssetId() int64 {
if x != nil {
return x.AssetId
}
return 0
}
func (x *InspirationFlowItem) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *InspirationFlowItem) GetCoverUrl() string {
if x != nil {
return x.CoverUrl
}
return ""
}
func (x *InspirationFlowItem) GetLikeCount() int32 {
if x != nil {
return x.LikeCount
}
return 0
}
func (x *InspirationFlowItem) GetOwnerNickname() string {
if x != nil {
return x.OwnerNickname
}
return ""
}
var File_gallery_proto protoreflect.FileDescriptor
const file_gallery_proto_rawDesc = "" +
"\n" +
"\rgallery.proto\x12\x0ftopfans.gallery\x1a\x12proto/common.proto\x1a\x1cgoogle/api/annotations.proto\"\x15\n" +
"\x13GetMyGalleryRequest\"z\n" +
"\x14GetMyGalleryResponse\x120\n" +
"\x04base\x18\x01 \x01(\v2\x1c.topfans.common.BaseResponseR\x04base\x120\n" +
"\x04data\x18\x02 \x01(\v2\x1c.topfans.gallery.GalleryDataR\x04data\"6\n" +
"\x15GetUserGalleryRequest\x12\x1d\n" +
"\n" +
"target_uid\x18\x01 \x01(\x03R\ttargetUid\"|\n" +
"\x16GetUserGalleryResponse\x120\n" +
"\x04base\x18\x01 \x01(\v2\x1c.topfans.common.BaseResponseR\x04base\x120\n" +
"\x04data\x18\x02 \x01(\v2\x1c.topfans.gallery.GalleryDataR\x04data\"q\n" +
"\x11PlaceAssetRequest\x12\x19\n" +
"\basset_id\x18\x01 \x01(\x03R\aassetId\x12(\n" +
"\x10gallery_owner_id\x18\x02 \x01(\x03R\x0egalleryOwnerId\x12\x17\n" +
"\aslot_id\x18\x03 \x01(\x03R\x06slotId\"{\n" +
"\x12PlaceAssetResponse\x120\n" +
"\x04base\x18\x01 \x01(\v2\x1c.topfans.common.BaseResponseR\x04base\x123\n" +
"\x04data\x18\x02 \x01(\v2\x1f.topfans.gallery.PlaceAssetDataR\x04data\"\x13\n" +
"\x11UnlockSlotRequest\"{\n" +
"\x12UnlockSlotResponse\x120\n" +
"\x04base\x18\x01 \x01(\v2\x1c.topfans.common.BaseResponseR\x04base\x123\n" +
"\x04data\x18\x02 \x01(\v2\x1f.topfans.gallery.UnlockSlotDataR\x04data\"\xa3\x01\n" +
"\vGalleryData\x12(\n" +
"\x10gallery_owner_id\x18\x01 \x01(\x03R\x0egalleryOwnerId\x12\x1d\n" +
"\n" +
"slot_total\x18\x02 \x01(\x05R\tslotTotal\x12/\n" +
"\x05slots\x18\x03 \x03(\v2\x19.topfans.gallery.SlotInfoR\x05slots\x12\x1a\n" +
"\bnickname\x18\x04 \x01(\tR\bnickname\"\xb8\x03\n" +
"\bSlotInfo\x12\x17\n" +
"\aslot_id\x18\x01 \x01(\x03R\x06slotId\x12\x1d\n" +
"\n" +
"slot_index\x18\x02 \x01(\x05R\tslotIndex\x12\x16\n" +
"\x06status\x18\x03 \x01(\tR\x06status\x12\x1d\n" +
"\n" +
"is_enabled\x18\x04 \x01(\bR\tisEnabled\x120\n" +
"\x05asset\x18\x05 \x01(\v2\x1a.topfans.gallery.AssetInfoR\x05asset\x12!\n" +
"\foccupier_uid\x18\x06 \x01(\x03R\voccupierUid\x12\x1f\n" +
"\voccupied_at\x18\a \x01(\x03R\n" +
"occupiedAt\x12\x1b\n" +
"\texpire_at\x18\b \x01(\x03R\bexpireAt\x12K\n" +
"\x10unlock_condition\x18\t \x01(\v2 .topfans.gallery.UnlockConditionR\x0funlockCondition\x12\x1e\n" +
"\n" +
"visibility\x18\n" +
" \x01(\tR\n" +
"visibility\x12\x1f\n" +
"\vcan_operate\x18\v \x01(\bR\n" +
"canOperate\x12\x1c\n" +
"\toperation\x18\f \x01(\tR\toperation\"\x97\x01\n" +
"\tAssetInfo\x12\x19\n" +
"\basset_id\x18\x01 \x01(\x03R\aassetId\x12\x12\n" +
"\x04name\x18\x02 \x01(\tR\x04name\x12\x1b\n" +
"\tcover_url\x18\x03 \x01(\tR\bcoverUrl\x12\x1d\n" +
"\n" +
"like_count\x18\x04 \x01(\x05R\tlikeCount\x12\x1f\n" +
"\vremain_time\x18\x05 \x01(\x03R\n" +
"remainTime\";\n" +
"\x0fUnlockCondition\x12\x12\n" +
"\x04type\x18\x01 \x01(\tR\x04type\x12\x14\n" +
"\x05value\x18\x02 \x01(\x05R\x05value\"r\n" +
"\x0ePlaceAssetData\x12\x16\n" +
"\x06status\x18\x01 \x01(\tR\x06status\x12%\n" +
"\x0eoccupied_until\x18\x02 \x01(\tR\roccupiedUntil\x12!\n" +
"\foccupier_uid\x18\x03 \x01(\x03R\voccupierUid\"X\n" +
"\x0eUnlockSlotData\x12\x1d\n" +
"\n" +
"slot_total\x18\x01 \x01(\x05R\tslotTotal\x12'\n" +
"\x0fcrystal_balance\x18\x02 \x01(\x03R\x0ecrystalBalance\"0\n" +
"\x15RemoveFromSlotRequest\x12\x17\n" +
"\aslot_id\x18\x01 \x01(\x03R\x06slotId\"J\n" +
"\x16RemoveFromSlotResponse\x120\n" +
"\x04base\x18\x01 \x01(\v2\x1c.topfans.common.BaseResponseR\x04base\"N\n" +
"\x1bGetMyExhibitedAssetsRequest\x12\x12\n" +
"\x04page\x18\x01 \x01(\x05R\x04page\x12\x1b\n" +
"\tpage_size\x18\x02 \x01(\x05R\bpageSize\"\x8a\x01\n" +
"\x1cGetMyExhibitedAssetsResponse\x120\n" +
"\x04base\x18\x01 \x01(\v2\x1c.topfans.common.BaseResponseR\x04base\x128\n" +
"\x04data\x18\x02 \x01(\v2$.topfans.gallery.ExhibitedAssetsDataR\x04data\"\xb2\x01\n" +
"\x13ExhibitedAssetsData\x129\n" +
"\x05items\x18\x01 \x03(\v2#.topfans.gallery.ExhibitedAssetItemR\x05items\x12\x12\n" +
"\x04page\x18\x02 \x01(\x05R\x04page\x12\x1b\n" +
"\tpage_size\x18\x03 \x01(\x05R\bpageSize\x12\x14\n" +
"\x05total\x18\x04 \x01(\x03R\x05total\x12\x19\n" +
"\bhas_more\x18\x05 \x01(\bR\ahasMore\"\xdb\x01\n" +
"\x12ExhibitedAssetItem\x12\x19\n" +
"\basset_id\x18\x01 \x01(\x03R\aassetId\x12\x12\n" +
"\x04name\x18\x02 \x01(\tR\x04name\x12\x1b\n" +
"\tcover_url\x18\x03 \x01(\tR\bcoverUrl\x12\x1d\n" +
"\n" +
"like_count\x18\x04 \x01(\x05R\tlikeCount\x12!\n" +
"\fexhibited_at\x18\x05 \x01(\x03R\vexhibitedAt\x12\x1b\n" +
"\texpire_at\x18\x06 \x01(\x03R\bexpireAt\x12\x1a\n" +
"\bearnings\x18\a \x01(\x03R\bearnings\"\x9a\x01\n" +
"\x19GetInspirationFlowRequest\x12\x16\n" +
"\x06cursor\x18\x01 \x01(\tR\x06cursor\x12\x1c\n" +
"\tdirection\x18\x02 \x01(\tR\tdirection\x12\x14\n" +
"\x05limit\x18\x03 \x01(\x05R\x05limit\x12\x12\n" +
"\x04type\x18\x04 \x01(\tR\x04type\x12\x1d\n" +
"\n" +
"session_id\x18\x05 \x01(\tR\tsessionId\"\x88\x01\n" +
"\x1aGetInspirationFlowResponse\x120\n" +
"\x04base\x18\x01 \x01(\v2\x1c.topfans.common.BaseResponseR\x04base\x128\n" +
"\x04data\x18\x02 \x01(\v2$.topfans.gallery.InspirationFlowDataR\x04data\"\xa3\x01\n" +
"\x13InspirationFlowData\x12:\n" +
"\x05items\x18\x01 \x03(\v2$.topfans.gallery.InspirationFlowItemR\x05items\x12\x16\n" +
"\x06cursor\x18\x02 \x01(\tR\x06cursor\x12\x19\n" +
"\bhas_more\x18\x03 \x01(\bR\ahasMore\x12\x1d\n" +
"\n" +
"session_id\x18\x04 \x01(\tR\tsessionId\"\xa7\x01\n" +
"\x13InspirationFlowItem\x12\x19\n" +
"\basset_id\x18\x01 \x01(\x03R\aassetId\x12\x12\n" +
"\x04name\x18\x02 \x01(\tR\x04name\x12\x1b\n" +
"\tcover_url\x18\x03 \x01(\tR\bcoverUrl\x12\x1d\n" +
"\n" +
"like_count\x18\x04 \x01(\x05R\tlikeCount\x12%\n" +
"\x0eowner_nickname\x18\x05 \x01(\tR\rownerNickname2\xc6\a\n" +
"\x0eGalleryService\x12u\n" +
"\fGetMyGallery\x12$.topfans.gallery.GetMyGalleryRequest\x1a%.topfans.gallery.GetMyGalleryResponse\"\x18\x82\xd3\xe4\x93\x02\x12\x12\x10/api/mygalleries\x12\x86\x01\n" +
"\x0eGetUserGallery\x12&.topfans.gallery.GetUserGalleryRequest\x1a'.topfans.gallery.GetUserGalleryResponse\"#\x82\xd3\xe4\x93\x02\x1d\x12\x1b/api/galleries/{target_uid}\x12v\n" +
"\n" +
"PlaceAsset\x12\".topfans.gallery.PlaceAssetRequest\x1a#.topfans.gallery.PlaceAssetResponse\"\x1f\x82\xd3\xe4\x93\x02\x19:\x01*\"\x14/api/galleries/place\x12}\n" +
"\n" +
"UnlockSlot\x12\".topfans.gallery.UnlockSlotRequest\x1a#.topfans.gallery.UnlockSlotResponse\"&\x82\xd3\xe4\x93\x02 :\x01*\"\x1b/api/galleries/slots_unlock\x12\x8f\x01\n" +
"\x0eRemoveFromSlot\x12&.topfans.gallery.RemoveFromSlotRequest\x1a'.topfans.gallery.RemoveFromSlotResponse\",\x82\xd3\xe4\x93\x02&*$/api/galleries/slots/{slot_id}/asset\x12\x98\x01\n" +
"\x14GetMyExhibitedAssets\x12,.topfans.gallery.GetMyExhibitedAssetsRequest\x1a-.topfans.gallery.GetMyExhibitedAssetsResponse\"#\x82\xd3\xe4\x93\x02\x1d\x12\x1b/api/v1/me/exhibited-assets\x12\x8f\x01\n" +
"\x12GetInspirationFlow\x12*.topfans.gallery.GetInspirationFlowRequest\x1a+.topfans.gallery.GetInspirationFlowResponse\" \x82\xd3\xe4\x93\x02\x1a\x12\x18/api/v1/inspiration-flowB6Z4github.com/topfans/backend/pkg/proto/gallery;galleryb\x06proto3"
var (
file_gallery_proto_rawDescOnce sync.Once
file_gallery_proto_rawDescData []byte
)
func file_gallery_proto_rawDescGZIP() []byte {
file_gallery_proto_rawDescOnce.Do(func() {
file_gallery_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_gallery_proto_rawDesc), len(file_gallery_proto_rawDesc)))
})
return file_gallery_proto_rawDescData
}
var file_gallery_proto_msgTypes = make([]protoimpl.MessageInfo, 24)
var file_gallery_proto_goTypes = []any{
(*GetMyGalleryRequest)(nil), // 0: topfans.gallery.GetMyGalleryRequest
(*GetMyGalleryResponse)(nil), // 1: topfans.gallery.GetMyGalleryResponse
(*GetUserGalleryRequest)(nil), // 2: topfans.gallery.GetUserGalleryRequest
(*GetUserGalleryResponse)(nil), // 3: topfans.gallery.GetUserGalleryResponse
(*PlaceAssetRequest)(nil), // 4: topfans.gallery.PlaceAssetRequest
(*PlaceAssetResponse)(nil), // 5: topfans.gallery.PlaceAssetResponse
(*UnlockSlotRequest)(nil), // 6: topfans.gallery.UnlockSlotRequest
(*UnlockSlotResponse)(nil), // 7: topfans.gallery.UnlockSlotResponse
(*GalleryData)(nil), // 8: topfans.gallery.GalleryData
(*SlotInfo)(nil), // 9: topfans.gallery.SlotInfo
(*AssetInfo)(nil), // 10: topfans.gallery.AssetInfo
(*UnlockCondition)(nil), // 11: topfans.gallery.UnlockCondition
(*PlaceAssetData)(nil), // 12: topfans.gallery.PlaceAssetData
(*UnlockSlotData)(nil), // 13: topfans.gallery.UnlockSlotData
(*RemoveFromSlotRequest)(nil), // 14: topfans.gallery.RemoveFromSlotRequest
(*RemoveFromSlotResponse)(nil), // 15: topfans.gallery.RemoveFromSlotResponse
(*GetMyExhibitedAssetsRequest)(nil), // 16: topfans.gallery.GetMyExhibitedAssetsRequest
(*GetMyExhibitedAssetsResponse)(nil), // 17: topfans.gallery.GetMyExhibitedAssetsResponse
(*ExhibitedAssetsData)(nil), // 18: topfans.gallery.ExhibitedAssetsData
(*ExhibitedAssetItem)(nil), // 19: topfans.gallery.ExhibitedAssetItem
(*GetInspirationFlowRequest)(nil), // 20: topfans.gallery.GetInspirationFlowRequest
(*GetInspirationFlowResponse)(nil), // 21: topfans.gallery.GetInspirationFlowResponse
(*InspirationFlowData)(nil), // 22: topfans.gallery.InspirationFlowData
(*InspirationFlowItem)(nil), // 23: topfans.gallery.InspirationFlowItem
(*common.BaseResponse)(nil), // 24: topfans.common.BaseResponse
}
var file_gallery_proto_depIdxs = []int32{
24, // 0: topfans.gallery.GetMyGalleryResponse.base:type_name -> topfans.common.BaseResponse
8, // 1: topfans.gallery.GetMyGalleryResponse.data:type_name -> topfans.gallery.GalleryData
24, // 2: topfans.gallery.GetUserGalleryResponse.base:type_name -> topfans.common.BaseResponse
8, // 3: topfans.gallery.GetUserGalleryResponse.data:type_name -> topfans.gallery.GalleryData
24, // 4: topfans.gallery.PlaceAssetResponse.base:type_name -> topfans.common.BaseResponse
12, // 5: topfans.gallery.PlaceAssetResponse.data:type_name -> topfans.gallery.PlaceAssetData
24, // 6: topfans.gallery.UnlockSlotResponse.base:type_name -> topfans.common.BaseResponse
13, // 7: topfans.gallery.UnlockSlotResponse.data:type_name -> topfans.gallery.UnlockSlotData
9, // 8: topfans.gallery.GalleryData.slots:type_name -> topfans.gallery.SlotInfo
10, // 9: topfans.gallery.SlotInfo.asset:type_name -> topfans.gallery.AssetInfo
11, // 10: topfans.gallery.SlotInfo.unlock_condition:type_name -> topfans.gallery.UnlockCondition
24, // 11: topfans.gallery.RemoveFromSlotResponse.base:type_name -> topfans.common.BaseResponse
24, // 12: topfans.gallery.GetMyExhibitedAssetsResponse.base:type_name -> topfans.common.BaseResponse
18, // 13: topfans.gallery.GetMyExhibitedAssetsResponse.data:type_name -> topfans.gallery.ExhibitedAssetsData
19, // 14: topfans.gallery.ExhibitedAssetsData.items:type_name -> topfans.gallery.ExhibitedAssetItem
24, // 15: topfans.gallery.GetInspirationFlowResponse.base:type_name -> topfans.common.BaseResponse
22, // 16: topfans.gallery.GetInspirationFlowResponse.data:type_name -> topfans.gallery.InspirationFlowData
23, // 17: topfans.gallery.InspirationFlowData.items:type_name -> topfans.gallery.InspirationFlowItem
0, // 18: topfans.gallery.GalleryService.GetMyGallery:input_type -> topfans.gallery.GetMyGalleryRequest
2, // 19: topfans.gallery.GalleryService.GetUserGallery:input_type -> topfans.gallery.GetUserGalleryRequest
4, // 20: topfans.gallery.GalleryService.PlaceAsset:input_type -> topfans.gallery.PlaceAssetRequest
6, // 21: topfans.gallery.GalleryService.UnlockSlot:input_type -> topfans.gallery.UnlockSlotRequest
14, // 22: topfans.gallery.GalleryService.RemoveFromSlot:input_type -> topfans.gallery.RemoveFromSlotRequest
16, // 23: topfans.gallery.GalleryService.GetMyExhibitedAssets:input_type -> topfans.gallery.GetMyExhibitedAssetsRequest
20, // 24: topfans.gallery.GalleryService.GetInspirationFlow:input_type -> topfans.gallery.GetInspirationFlowRequest
1, // 25: topfans.gallery.GalleryService.GetMyGallery:output_type -> topfans.gallery.GetMyGalleryResponse
3, // 26: topfans.gallery.GalleryService.GetUserGallery:output_type -> topfans.gallery.GetUserGalleryResponse
5, // 27: topfans.gallery.GalleryService.PlaceAsset:output_type -> topfans.gallery.PlaceAssetResponse
7, // 28: topfans.gallery.GalleryService.UnlockSlot:output_type -> topfans.gallery.UnlockSlotResponse
15, // 29: topfans.gallery.GalleryService.RemoveFromSlot:output_type -> topfans.gallery.RemoveFromSlotResponse
17, // 30: topfans.gallery.GalleryService.GetMyExhibitedAssets:output_type -> topfans.gallery.GetMyExhibitedAssetsResponse
21, // 31: topfans.gallery.GalleryService.GetInspirationFlow:output_type -> topfans.gallery.GetInspirationFlowResponse
25, // [25:32] is the sub-list for method output_type
18, // [18:25] is the sub-list for method input_type
18, // [18:18] is the sub-list for extension type_name
18, // [18:18] is the sub-list for extension extendee
0, // [0:18] is the sub-list for field type_name
}
func init() { file_gallery_proto_init() }
func file_gallery_proto_init() {
if File_gallery_proto != nil {
return
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_gallery_proto_rawDesc), len(file_gallery_proto_rawDesc)),
NumEnums: 0,
NumMessages: 24,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_gallery_proto_goTypes,
DependencyIndexes: file_gallery_proto_depIdxs,
MessageInfos: file_gallery_proto_msgTypes,
}.Build()
File_gallery_proto = out.File
file_gallery_proto_goTypes = nil
file_gallery_proto_depIdxs = nil
}