topfans/backend/pkg/proto/castlove/castlove_config.pb.go
2026-06-09 12:38:12 +08:00

372 lines
12 KiB
Go

// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.11
// protoc v7.34.0
// source: castlove_config.proto
package castlove
import (
common "github.com/topfans/backend/pkg/proto/common"
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 CastloveCraftProto struct {
state protoimpl.MessageState `protogen:"open.v1"`
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 卡片ID
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // 卡片名("镭射卡" / "光栅卡" / "开发中" / ...)
ImageUrl string `protobuf:"bytes,3,opt,name=image_url,json=imageUrl,proto3" json:"image_url,omitempty"` // 完整 https URL(OSS 域名开头)
RoutePath string `protobuf:"bytes,4,opt,name=route_path,json=routePath,proto3" json:"route_path,omitempty"` // uni-app 页面路径(以 / 开头);空串表示"未配置路由"
RouteParams string `protobuf:"bytes,5,opt,name=route_params,json=routeParams,proto3" json:"route_params,omitempty"` // JSON 字符串(对象);空串表示无参数
SortOrder int32 `protobuf:"varint,6,opt,name=sort_order,json=sortOrder,proto3" json:"sort_order,omitempty"` // 同一分类内的相对顺序
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *CastloveCraftProto) Reset() {
*x = CastloveCraftProto{}
mi := &file_castlove_config_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *CastloveCraftProto) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CastloveCraftProto) ProtoMessage() {}
func (x *CastloveCraftProto) ProtoReflect() protoreflect.Message {
mi := &file_castlove_config_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 CastloveCraftProto.ProtoReflect.Descriptor instead.
func (*CastloveCraftProto) Descriptor() ([]byte, []int) {
return file_castlove_config_proto_rawDescGZIP(), []int{0}
}
func (x *CastloveCraftProto) GetId() int64 {
if x != nil {
return x.Id
}
return 0
}
func (x *CastloveCraftProto) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *CastloveCraftProto) GetImageUrl() string {
if x != nil {
return x.ImageUrl
}
return ""
}
func (x *CastloveCraftProto) GetRoutePath() string {
if x != nil {
return x.RoutePath
}
return ""
}
func (x *CastloveCraftProto) GetRouteParams() string {
if x != nil {
return x.RouteParams
}
return ""
}
func (x *CastloveCraftProto) GetSortOrder() int32 {
if x != nil {
return x.SortOrder
}
return 0
}
// 工艺分类(含其下卡片列表)
type CastloveCategoryProto struct {
state protoimpl.MessageState `protogen:"open.v1"`
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 分类ID
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // 分类名("星卡" / "吧唧" / "海报")
TypeKey string `protobuf:"bytes,3,opt,name=type_key,json=typeKey,proto3" json:"type_key,omitempty"` // 外部 deep-link key;空串表示无
SortOrder int32 `protobuf:"varint,4,opt,name=sort_order,json=sortOrder,proto3" json:"sort_order,omitempty"` // 分类相对顺序
Crafts []*CastloveCraftProto `protobuf:"bytes,5,rep,name=crafts,proto3" json:"crafts,omitempty"` // 该分类下的卡片
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *CastloveCategoryProto) Reset() {
*x = CastloveCategoryProto{}
mi := &file_castlove_config_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *CastloveCategoryProto) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CastloveCategoryProto) ProtoMessage() {}
func (x *CastloveCategoryProto) ProtoReflect() protoreflect.Message {
mi := &file_castlove_config_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 CastloveCategoryProto.ProtoReflect.Descriptor instead.
func (*CastloveCategoryProto) Descriptor() ([]byte, []int) {
return file_castlove_config_proto_rawDescGZIP(), []int{1}
}
func (x *CastloveCategoryProto) GetId() int64 {
if x != nil {
return x.Id
}
return 0
}
func (x *CastloveCategoryProto) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *CastloveCategoryProto) GetTypeKey() string {
if x != nil {
return x.TypeKey
}
return ""
}
func (x *CastloveCategoryProto) GetSortOrder() int32 {
if x != nil {
return x.SortOrder
}
return 0
}
func (x *CastloveCategoryProto) GetCrafts() []*CastloveCraftProto {
if x != nil {
return x.Crafts
}
return nil
}
// 获取铸爱工艺配置请求(无入参,纯 GET)
type GetCastloveConfigRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *GetCastloveConfigRequest) Reset() {
*x = GetCastloveConfigRequest{}
mi := &file_castlove_config_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *GetCastloveConfigRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetCastloveConfigRequest) ProtoMessage() {}
func (x *GetCastloveConfigRequest) ProtoReflect() protoreflect.Message {
mi := &file_castlove_config_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 GetCastloveConfigRequest.ProtoReflect.Descriptor instead.
func (*GetCastloveConfigRequest) Descriptor() ([]byte, []int) {
return file_castlove_config_proto_rawDescGZIP(), []int{2}
}
// 获取铸爱工艺配置响应
type GetCastloveConfigResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
Base *common.BaseResponse `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"`
Categories []*CastloveCategoryProto `protobuf:"bytes,2,rep,name=categories,proto3" json:"categories,omitempty"` // 分类(含嵌套卡片)
Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"` // 所有相关记录 updated_at 最大值(ISO 8601)
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *GetCastloveConfigResponse) Reset() {
*x = GetCastloveConfigResponse{}
mi := &file_castlove_config_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *GetCastloveConfigResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetCastloveConfigResponse) ProtoMessage() {}
func (x *GetCastloveConfigResponse) ProtoReflect() protoreflect.Message {
mi := &file_castlove_config_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 GetCastloveConfigResponse.ProtoReflect.Descriptor instead.
func (*GetCastloveConfigResponse) Descriptor() ([]byte, []int) {
return file_castlove_config_proto_rawDescGZIP(), []int{3}
}
func (x *GetCastloveConfigResponse) GetBase() *common.BaseResponse {
if x != nil {
return x.Base
}
return nil
}
func (x *GetCastloveConfigResponse) GetCategories() []*CastloveCategoryProto {
if x != nil {
return x.Categories
}
return nil
}
func (x *GetCastloveConfigResponse) GetVersion() string {
if x != nil {
return x.Version
}
return ""
}
var File_castlove_config_proto protoreflect.FileDescriptor
const file_castlove_config_proto_rawDesc = "" +
"\n" +
"\x15castlove_config.proto\x12\x10topfans.castlove\x1a\x12proto/common.proto\"\xb6\x01\n" +
"\x12CastloveCraftProto\x12\x0e\n" +
"\x02id\x18\x01 \x01(\x03R\x02id\x12\x12\n" +
"\x04name\x18\x02 \x01(\tR\x04name\x12\x1b\n" +
"\timage_url\x18\x03 \x01(\tR\bimageUrl\x12\x1d\n" +
"\n" +
"route_path\x18\x04 \x01(\tR\troutePath\x12!\n" +
"\froute_params\x18\x05 \x01(\tR\vrouteParams\x12\x1d\n" +
"\n" +
"sort_order\x18\x06 \x01(\x05R\tsortOrder\"\xb3\x01\n" +
"\x15CastloveCategoryProto\x12\x0e\n" +
"\x02id\x18\x01 \x01(\x03R\x02id\x12\x12\n" +
"\x04name\x18\x02 \x01(\tR\x04name\x12\x19\n" +
"\btype_key\x18\x03 \x01(\tR\atypeKey\x12\x1d\n" +
"\n" +
"sort_order\x18\x04 \x01(\x05R\tsortOrder\x12<\n" +
"\x06crafts\x18\x05 \x03(\v2$.topfans.castlove.CastloveCraftProtoR\x06crafts\"\x1a\n" +
"\x18GetCastloveConfigRequest\"\xb0\x01\n" +
"\x19GetCastloveConfigResponse\x120\n" +
"\x04base\x18\x01 \x01(\v2\x1c.topfans.common.BaseResponseR\x04base\x12G\n" +
"\n" +
"categories\x18\x02 \x03(\v2'.topfans.castlove.CastloveCategoryProtoR\n" +
"categories\x12\x18\n" +
"\aversion\x18\x03 \x01(\tR\aversion2\x85\x01\n" +
"\x15CastloveConfigService\x12l\n" +
"\x11GetCastloveConfig\x12*.topfans.castlove.GetCastloveConfigRequest\x1a+.topfans.castlove.GetCastloveConfigResponseB8Z6github.com/topfans/backend/pkg/proto/castlove;castloveb\x06proto3"
var (
file_castlove_config_proto_rawDescOnce sync.Once
file_castlove_config_proto_rawDescData []byte
)
func file_castlove_config_proto_rawDescGZIP() []byte {
file_castlove_config_proto_rawDescOnce.Do(func() {
file_castlove_config_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_castlove_config_proto_rawDesc), len(file_castlove_config_proto_rawDesc)))
})
return file_castlove_config_proto_rawDescData
}
var file_castlove_config_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
var file_castlove_config_proto_goTypes = []any{
(*CastloveCraftProto)(nil), // 0: topfans.castlove.CastloveCraftProto
(*CastloveCategoryProto)(nil), // 1: topfans.castlove.CastloveCategoryProto
(*GetCastloveConfigRequest)(nil), // 2: topfans.castlove.GetCastloveConfigRequest
(*GetCastloveConfigResponse)(nil), // 3: topfans.castlove.GetCastloveConfigResponse
(*common.BaseResponse)(nil), // 4: topfans.common.BaseResponse
}
var file_castlove_config_proto_depIdxs = []int32{
0, // 0: topfans.castlove.CastloveCategoryProto.crafts:type_name -> topfans.castlove.CastloveCraftProto
4, // 1: topfans.castlove.GetCastloveConfigResponse.base:type_name -> topfans.common.BaseResponse
1, // 2: topfans.castlove.GetCastloveConfigResponse.categories:type_name -> topfans.castlove.CastloveCategoryProto
2, // 3: topfans.castlove.CastloveConfigService.GetCastloveConfig:input_type -> topfans.castlove.GetCastloveConfigRequest
3, // 4: topfans.castlove.CastloveConfigService.GetCastloveConfig:output_type -> topfans.castlove.GetCastloveConfigResponse
4, // [4:5] is the sub-list for method output_type
3, // [3:4] is the sub-list for method input_type
3, // [3:3] is the sub-list for extension type_name
3, // [3:3] is the sub-list for extension extendee
0, // [0:3] is the sub-list for field type_name
}
func init() { file_castlove_config_proto_init() }
func file_castlove_config_proto_init() {
if File_castlove_config_proto != nil {
return
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_castlove_config_proto_rawDesc), len(file_castlove_config_proto_rawDesc)),
NumEnums: 0,
NumMessages: 4,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_castlove_config_proto_goTypes,
DependencyIndexes: file_castlove_config_proto_depIdxs,
MessageInfos: file_castlove_config_proto_msgTypes,
}.Build()
File_castlove_config_proto = out.File
file_castlove_config_proto_goTypes = nil
file_castlove_config_proto_depIdxs = nil
}