protocol/tag/get.pb.go

407 lines
13 KiB
Go

// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.26.0
// protoc v3.14.0
// source: itcoursee/protocol/tag/get.proto
package tag
import (
vo "gitea.com/itcoursee/protocol/vo"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
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 GetReq struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// 编号
// @inject_tag: json:"id,string" query:"id" param:"id" form:"id" validate:"required"
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,string" query:"id" param:"id" form:"id" validate:"required"`
}
func (x *GetReq) Reset() {
*x = GetReq{}
if protoimpl.UnsafeEnabled {
mi := &file_itcoursee_protocol_tag_get_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetReq) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetReq) ProtoMessage() {}
func (x *GetReq) ProtoReflect() protoreflect.Message {
mi := &file_itcoursee_protocol_tag_get_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetReq.ProtoReflect.Descriptor instead.
func (*GetReq) Descriptor() ([]byte, []int) {
return file_itcoursee_protocol_tag_get_proto_rawDescGZIP(), []int{0}
}
func (x *GetReq) GetId() int64 {
if x != nil {
return x.Id
}
return 0
}
// 获取转码返回
type GetRsp struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// 标签
Tag *vo.Tag `protobuf:"bytes,10,opt,name=tag,proto3" json:"tag,omitempty"`
}
func (x *GetRsp) Reset() {
*x = GetRsp{}
if protoimpl.UnsafeEnabled {
mi := &file_itcoursee_protocol_tag_get_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetRsp) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetRsp) ProtoMessage() {}
func (x *GetRsp) ProtoReflect() protoreflect.Message {
mi := &file_itcoursee_protocol_tag_get_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetRsp.ProtoReflect.Descriptor instead.
func (*GetRsp) Descriptor() ([]byte, []int) {
return file_itcoursee_protocol_tag_get_proto_rawDescGZIP(), []int{1}
}
func (x *GetRsp) GetTag() *vo.Tag {
if x != nil {
return x.Tag
}
return nil
}
// 分页获取标签列表请求
type GetsByPagingReq struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// 关键字
Keyword string `protobuf:"bytes,10,opt,name=keyword,proto3" json:"keyword,omitempty"`
// 每页个数
// @inject_tag: default:"20"
Size int32 `protobuf:"varint,20,opt,name=size,proto3" json:"size,omitempty" default:"20"`
// 页数
// @inject_tag: default:"1"
Page int32 `protobuf:"varint,30,opt,name=page,proto3" json:"page,omitempty" default:"1"`
// 排序
Order string `protobuf:"bytes,40,opt,name=order,proto3" json:"order,omitempty"`
// 排序字段
// @inject_tag: default:"id"
Sort string `protobuf:"bytes,50,opt,name=sort,proto3" json:"sort,omitempty" default:"id"`
}
func (x *GetsByPagingReq) Reset() {
*x = GetsByPagingReq{}
if protoimpl.UnsafeEnabled {
mi := &file_itcoursee_protocol_tag_get_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetsByPagingReq) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetsByPagingReq) ProtoMessage() {}
func (x *GetsByPagingReq) ProtoReflect() protoreflect.Message {
mi := &file_itcoursee_protocol_tag_get_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetsByPagingReq.ProtoReflect.Descriptor instead.
func (*GetsByPagingReq) Descriptor() ([]byte, []int) {
return file_itcoursee_protocol_tag_get_proto_rawDescGZIP(), []int{2}
}
func (x *GetsByPagingReq) GetKeyword() string {
if x != nil {
return x.Keyword
}
return ""
}
func (x *GetsByPagingReq) GetSize() int32 {
if x != nil {
return x.Size
}
return 0
}
func (x *GetsByPagingReq) GetPage() int32 {
if x != nil {
return x.Page
}
return 0
}
func (x *GetsByPagingReq) GetOrder() string {
if x != nil {
return x.Order
}
return ""
}
func (x *GetsByPagingReq) GetSort() string {
if x != nil {
return x.Sort
}
return ""
}
// 分页获取标签列表响应
type GetsByPagingRsp struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// 总数
Total int64 `protobuf:"varint,10,opt,name=total,proto3" json:"total,omitempty"`
// 数据
Tags []*vo.Tag `protobuf:"bytes,20,rep,name=tags,proto3" json:"tags,omitempty"`
}
func (x *GetsByPagingRsp) Reset() {
*x = GetsByPagingRsp{}
if protoimpl.UnsafeEnabled {
mi := &file_itcoursee_protocol_tag_get_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetsByPagingRsp) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetsByPagingRsp) ProtoMessage() {}
func (x *GetsByPagingRsp) ProtoReflect() protoreflect.Message {
mi := &file_itcoursee_protocol_tag_get_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetsByPagingRsp.ProtoReflect.Descriptor instead.
func (*GetsByPagingRsp) Descriptor() ([]byte, []int) {
return file_itcoursee_protocol_tag_get_proto_rawDescGZIP(), []int{3}
}
func (x *GetsByPagingRsp) GetTotal() int64 {
if x != nil {
return x.Total
}
return 0
}
func (x *GetsByPagingRsp) GetTags() []*vo.Tag {
if x != nil {
return x.Tags
}
return nil
}
var File_itcoursee_protocol_tag_get_proto protoreflect.FileDescriptor
var file_itcoursee_protocol_tag_get_proto_rawDesc = []byte{
0x0a, 0x20, 0x69, 0x74, 0x63, 0x6f, 0x75, 0x72, 0x73, 0x65, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x74, 0x61, 0x67, 0x2f, 0x67, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x12, 0x16, 0x69, 0x74, 0x63, 0x6f, 0x75, 0x72, 0x73, 0x65, 0x65, 0x2e, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x74, 0x61, 0x67, 0x1a, 0x1f, 0x69, 0x74, 0x63, 0x6f,
0x75, 0x72, 0x73, 0x65, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x76,
0x6f, 0x2f, 0x74, 0x61, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x18, 0x0a, 0x06, 0x47,
0x65, 0x74, 0x52, 0x65, 0x71, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
0x03, 0x52, 0x02, 0x69, 0x64, 0x22, 0x36, 0x0a, 0x06, 0x47, 0x65, 0x74, 0x52, 0x73, 0x70, 0x12,
0x2c, 0x0a, 0x03, 0x74, 0x61, 0x67, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x69,
0x74, 0x63, 0x6f, 0x75, 0x72, 0x73, 0x65, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f,
0x6c, 0x2e, 0x76, 0x6f, 0x2e, 0x54, 0x61, 0x67, 0x52, 0x03, 0x74, 0x61, 0x67, 0x22, 0x7d, 0x0a,
0x0f, 0x47, 0x65, 0x74, 0x73, 0x42, 0x79, 0x50, 0x61, 0x67, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71,
0x12, 0x18, 0x0a, 0x07, 0x6b, 0x65, 0x79, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x0a, 0x20, 0x01, 0x28,
0x09, 0x52, 0x07, 0x6b, 0x65, 0x79, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69,
0x7a, 0x65, 0x18, 0x14, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x12, 0x12,
0x0a, 0x04, 0x70, 0x61, 0x67, 0x65, 0x18, 0x1e, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x70, 0x61,
0x67, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x18, 0x28, 0x20, 0x01, 0x28,
0x09, 0x52, 0x05, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x6f, 0x72, 0x74,
0x18, 0x32, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x73, 0x6f, 0x72, 0x74, 0x22, 0x57, 0x0a, 0x0f,
0x47, 0x65, 0x74, 0x73, 0x42, 0x79, 0x50, 0x61, 0x67, 0x69, 0x6e, 0x67, 0x52, 0x73, 0x70, 0x12,
0x14, 0x0a, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05,
0x74, 0x6f, 0x74, 0x61, 0x6c, 0x12, 0x2e, 0x0a, 0x04, 0x74, 0x61, 0x67, 0x73, 0x18, 0x14, 0x20,
0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x69, 0x74, 0x63, 0x6f, 0x75, 0x72, 0x73, 0x65, 0x65, 0x2e,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x76, 0x6f, 0x2e, 0x54, 0x61, 0x67, 0x52,
0x04, 0x74, 0x61, 0x67, 0x73, 0x42, 0x3b, 0x0a, 0x11, 0x63, 0x6f, 0x6d, 0x2e, 0x69, 0x74, 0x63,
0x6f, 0x75, 0x72, 0x73, 0x65, 0x65, 0x2e, 0x74, 0x61, 0x67, 0x50, 0x01, 0x5a, 0x24, 0x67, 0x69,
0x74, 0x65, 0x61, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x69, 0x74, 0x63, 0x6f, 0x75, 0x72, 0x73, 0x65,
0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x74, 0x61, 0x67, 0x3b, 0x74,
0x61, 0x67, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_itcoursee_protocol_tag_get_proto_rawDescOnce sync.Once
file_itcoursee_protocol_tag_get_proto_rawDescData = file_itcoursee_protocol_tag_get_proto_rawDesc
)
func file_itcoursee_protocol_tag_get_proto_rawDescGZIP() []byte {
file_itcoursee_protocol_tag_get_proto_rawDescOnce.Do(func() {
file_itcoursee_protocol_tag_get_proto_rawDescData = protoimpl.X.CompressGZIP(file_itcoursee_protocol_tag_get_proto_rawDescData)
})
return file_itcoursee_protocol_tag_get_proto_rawDescData
}
var file_itcoursee_protocol_tag_get_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
var file_itcoursee_protocol_tag_get_proto_goTypes = []interface{}{
(*GetReq)(nil), // 0: itcoursee.protocol.tag.GetReq
(*GetRsp)(nil), // 1: itcoursee.protocol.tag.GetRsp
(*GetsByPagingReq)(nil), // 2: itcoursee.protocol.tag.GetsByPagingReq
(*GetsByPagingRsp)(nil), // 3: itcoursee.protocol.tag.GetsByPagingRsp
(*vo.Tag)(nil), // 4: itcoursee.protocol.vo.Tag
}
var file_itcoursee_protocol_tag_get_proto_depIdxs = []int32{
4, // 0: itcoursee.protocol.tag.GetRsp.tag:type_name -> itcoursee.protocol.vo.Tag
4, // 1: itcoursee.protocol.tag.GetsByPagingRsp.tags:type_name -> itcoursee.protocol.vo.Tag
2, // [2:2] is the sub-list for method output_type
2, // [2:2] is the sub-list for method input_type
2, // [2:2] is the sub-list for extension type_name
2, // [2:2] is the sub-list for extension extendee
0, // [0:2] is the sub-list for field type_name
}
func init() { file_itcoursee_protocol_tag_get_proto_init() }
func file_itcoursee_protocol_tag_get_proto_init() {
if File_itcoursee_protocol_tag_get_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_itcoursee_protocol_tag_get_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*GetReq); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_itcoursee_protocol_tag_get_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*GetRsp); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_itcoursee_protocol_tag_get_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*GetsByPagingReq); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_itcoursee_protocol_tag_get_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*GetsByPagingRsp); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_itcoursee_protocol_tag_get_proto_rawDesc,
NumEnums: 0,
NumMessages: 4,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_itcoursee_protocol_tag_get_proto_goTypes,
DependencyIndexes: file_itcoursee_protocol_tag_get_proto_depIdxs,
MessageInfos: file_itcoursee_protocol_tag_get_proto_msgTypes,
}.Build()
File_itcoursee_protocol_tag_get_proto = out.File
file_itcoursee_protocol_tag_get_proto_rawDesc = nil
file_itcoursee_protocol_tag_get_proto_goTypes = nil
file_itcoursee_protocol_tag_get_proto_depIdxs = nil
}