faqv1

package
v0.0.0-...-a9153d3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 3, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Overview

Package faqv1 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	FAQService_CreateFAQ_FullMethodName               = "/consultingapis.faq.v1.FAQService/CreateFAQ"
	FAQService_GetFAQ_FullMethodName                  = "/consultingapis.faq.v1.FAQService/GetFAQ"
	FAQService_UpdateFAQ_FullMethodName               = "/consultingapis.faq.v1.FAQService/UpdateFAQ"
	FAQService_DeleteFAQ_FullMethodName               = "/consultingapis.faq.v1.FAQService/DeleteFAQ"
	FAQService_GetFAQImage_FullMethodName             = "/consultingapis.faq.v1.FAQService/GetFAQImage"
	FAQService_SearchFAQAnswerRichtext_FullMethodName = "/consultingapis.faq.v1.FAQService/SearchFAQAnswerRichtext"
)

Variables

View Source
var FAQService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "consultingapis.faq.v1.FAQService",
	HandlerType: (*FAQServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateFAQ",
			Handler:    _FAQService_CreateFAQ_Handler,
		},
		{
			MethodName: "GetFAQ",
			Handler:    _FAQService_GetFAQ_Handler,
		},
		{
			MethodName: "UpdateFAQ",
			Handler:    _FAQService_UpdateFAQ_Handler,
		},
		{
			MethodName: "DeleteFAQ",
			Handler:    _FAQService_DeleteFAQ_Handler,
		},
		{
			MethodName: "GetFAQImage",
			Handler:    _FAQService_GetFAQImage_Handler,
		},
		{
			MethodName: "SearchFAQAnswerRichtext",
			Handler:    _FAQService_SearchFAQAnswerRichtext_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "consultingapis/faq/v1/faq.proto",
}

FAQService_ServiceDesc is the grpc.ServiceDesc for FAQService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_consultingapis_faq_v1_faq_proto protoreflect.FileDescriptor

Functions

func RegisterFAQServiceHandler

func RegisterFAQServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterFAQServiceHandler registers the http handlers for service FAQService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterFAQServiceHandlerClient

func RegisterFAQServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client FAQServiceClient) error

RegisterFAQServiceHandlerClient registers the http handlers for service FAQService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "FAQServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "FAQServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "FAQServiceClient" to call the correct interceptors.

func RegisterFAQServiceHandlerFromEndpoint

func RegisterFAQServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterFAQServiceHandlerFromEndpoint is same as RegisterFAQServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterFAQServiceHandlerServer

func RegisterFAQServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server FAQServiceServer) error

RegisterFAQServiceHandlerServer registers the http handlers for service FAQService to "mux". UnaryRPC :call FAQServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterFAQServiceHandlerFromEndpoint instead.

func RegisterFAQServiceServer

func RegisterFAQServiceServer(s grpc.ServiceRegistrar, srv FAQServiceServer)

Types

type AnswerRichtext

type AnswerRichtext struct {

	// text, hyperlink, img, line break
	Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	// text/line break
	Content string `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"`
	// hyperlink
	Text string `protobuf:"bytes,3,opt,name=text,proto3" json:"text,omitempty"`
	Url  string `protobuf:"bytes,4,opt,name=url,proto3" json:"url,omitempty"`
	// img
	Src    string `protobuf:"bytes,5,opt,name=src,proto3" json:"src,omitempty"`
	Key    string `protobuf:"bytes,6,opt,name=key,proto3" json:"key,omitempty"`
	Width  int32  `protobuf:"varint,7,opt,name=width,proto3" json:"width,omitempty"`
	Height int32  `protobuf:"varint,8,opt,name=height,proto3" json:"height,omitempty"`
	// contains filtered or unexported fields
}

func (*AnswerRichtext) Descriptor deprecated

func (*AnswerRichtext) Descriptor() ([]byte, []int)

Deprecated: Use AnswerRichtext.ProtoReflect.Descriptor instead.

func (*AnswerRichtext) GetContent

func (x *AnswerRichtext) GetContent() string

func (*AnswerRichtext) GetHeight

func (x *AnswerRichtext) GetHeight() int32

func (*AnswerRichtext) GetKey

func (x *AnswerRichtext) GetKey() string

func (*AnswerRichtext) GetSrc

func (x *AnswerRichtext) GetSrc() string

func (*AnswerRichtext) GetText

func (x *AnswerRichtext) GetText() string

func (*AnswerRichtext) GetType

func (x *AnswerRichtext) GetType() string

func (*AnswerRichtext) GetUrl

func (x *AnswerRichtext) GetUrl() string

func (*AnswerRichtext) GetWidth

func (x *AnswerRichtext) GetWidth() int32

func (*AnswerRichtext) ProtoMessage

func (*AnswerRichtext) ProtoMessage()

func (*AnswerRichtext) ProtoReflect

func (x *AnswerRichtext) ProtoReflect() protoreflect.Message

func (*AnswerRichtext) Reset

func (x *AnswerRichtext) Reset()

func (*AnswerRichtext) String

func (x *AnswerRichtext) String() string

type AnswerRichtexts

type AnswerRichtexts []*AnswerRichtext

func (AnswerRichtexts) ToMarkdown

func (x AnswerRichtexts) ToMarkdown() string

type Category

type Category struct {
	CategoryId string `protobuf:"bytes,1,opt,name=category_id,json=categoryId,proto3" json:"category_id,omitempty"`
	Id         string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	Name       string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	ParentId   string `protobuf:"bytes,4,opt,name=parent_id,json=parentId,proto3" json:"parent_id,omitempty"`
	HelpdeskId string `protobuf:"bytes,5,opt,name=helpdesk_id,json=helpdeskId,proto3" json:"helpdesk_id,omitempty"`
	Language   string `protobuf:"bytes,6,opt,name=language,proto3" json:"language,omitempty"`
	// contains filtered or unexported fields
}

func (*Category) Descriptor deprecated

func (*Category) Descriptor() ([]byte, []int)

Deprecated: Use Category.ProtoReflect.Descriptor instead.

func (*Category) GetCategoryId

func (x *Category) GetCategoryId() string

func (*Category) GetHelpdeskId

func (x *Category) GetHelpdeskId() string

func (*Category) GetId

func (x *Category) GetId() string

func (*Category) GetLanguage

func (x *Category) GetLanguage() string

func (*Category) GetName

func (x *Category) GetName() string

func (*Category) GetParentId

func (x *Category) GetParentId() string

func (*Category) ProtoMessage

func (*Category) ProtoMessage()

func (*Category) ProtoReflect

func (x *Category) ProtoReflect() protoreflect.Message

func (*Category) Reset

func (x *Category) Reset()

func (*Category) String

func (x *Category) String() string

type CreateFAQRequest

type CreateFAQRequest struct {
	Data *FAQInfo `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateFAQRequest) Descriptor deprecated

func (*CreateFAQRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateFAQRequest.ProtoReflect.Descriptor instead.

func (*CreateFAQRequest) GetData

func (x *CreateFAQRequest) GetData() *FAQInfo

func (*CreateFAQRequest) ProtoMessage

func (*CreateFAQRequest) ProtoMessage()

func (*CreateFAQRequest) ProtoReflect

func (x *CreateFAQRequest) ProtoReflect() protoreflect.Message

func (*CreateFAQRequest) Reset

func (x *CreateFAQRequest) Reset()

func (*CreateFAQRequest) String

func (x *CreateFAQRequest) String() string

type CreateFAQResponse

type CreateFAQResponse struct {
	Error int32  `protobuf:"varint,1,opt,name=error,proto3" json:"error,omitempty"`
	Msg   string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	Data  *FAQ   `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateFAQResponse) Descriptor deprecated

func (*CreateFAQResponse) Descriptor() ([]byte, []int)

Deprecated: Use CreateFAQResponse.ProtoReflect.Descriptor instead.

func (*CreateFAQResponse) GetData

func (x *CreateFAQResponse) GetData() *FAQ

func (*CreateFAQResponse) GetError

func (x *CreateFAQResponse) GetError() int32

func (*CreateFAQResponse) GetMsg

func (x *CreateFAQResponse) GetMsg() string

func (*CreateFAQResponse) ProtoMessage

func (*CreateFAQResponse) ProtoMessage()

func (*CreateFAQResponse) ProtoReflect

func (x *CreateFAQResponse) ProtoReflect() protoreflect.Message

func (*CreateFAQResponse) Reset

func (x *CreateFAQResponse) Reset()

func (*CreateFAQResponse) String

func (x *CreateFAQResponse) String() string

type DeleteFAQRequest

type DeleteFAQRequest struct {
	FaqId string `protobuf:"bytes,1,opt,name=faq_id,json=faqId,proto3" json:"faq_id,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteFAQRequest) Descriptor deprecated

func (*DeleteFAQRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteFAQRequest.ProtoReflect.Descriptor instead.

func (*DeleteFAQRequest) GetFaqId

func (x *DeleteFAQRequest) GetFaqId() string

func (*DeleteFAQRequest) ProtoMessage

func (*DeleteFAQRequest) ProtoMessage()

func (*DeleteFAQRequest) ProtoReflect

func (x *DeleteFAQRequest) ProtoReflect() protoreflect.Message

func (*DeleteFAQRequest) Reset

func (x *DeleteFAQRequest) Reset()

func (*DeleteFAQRequest) String

func (x *DeleteFAQRequest) String() string

type DeleteFAQResponse

type DeleteFAQResponse struct {
	Error int32  `protobuf:"varint,1,opt,name=error,proto3" json:"error,omitempty"`
	Msg   string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteFAQResponse) Descriptor deprecated

func (*DeleteFAQResponse) Descriptor() ([]byte, []int)

Deprecated: Use DeleteFAQResponse.ProtoReflect.Descriptor instead.

func (*DeleteFAQResponse) GetError

func (x *DeleteFAQResponse) GetError() int32

func (*DeleteFAQResponse) GetMsg

func (x *DeleteFAQResponse) GetMsg() string

func (*DeleteFAQResponse) ProtoMessage

func (*DeleteFAQResponse) ProtoMessage()

func (*DeleteFAQResponse) ProtoReflect

func (x *DeleteFAQResponse) ProtoReflect() protoreflect.Message

func (*DeleteFAQResponse) Reset

func (x *DeleteFAQResponse) Reset()

func (*DeleteFAQResponse) String

func (x *DeleteFAQResponse) String() string

type FAQ

type FAQ struct {
	FaqId          string      `protobuf:"bytes,1,opt,name=faq_id,json=faqId,proto3" json:"faq_id,omitempty"`
	Id             string      `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	HelpdeskId     string      `protobuf:"bytes,3,opt,name=helpdesk_id,json=helpdeskId,proto3" json:"helpdesk_id,omitempty"`
	Question       string      `protobuf:"bytes,4,opt,name=question,proto3" json:"question,omitempty"`
	Answer         string      `protobuf:"bytes,5,opt,name=answer,proto3" json:"answer,omitempty"`
	AnswerRichtext string      `protobuf:"bytes,6,opt,name=answer_richtext,json=answerRichtext,proto3" json:"answer_richtext,omitempty"`
	CreateTime     int64       `protobuf:"varint,7,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	UpdateTime     int64       `protobuf:"varint,8,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
	Categories     []*Category `protobuf:"bytes,9,rep,name=categories,proto3" json:"categories,omitempty"`
	Tags           []string    `protobuf:"bytes,10,rep,name=tags,proto3" json:"tags,omitempty"`
	ExpireTime     int64       `protobuf:"varint,11,opt,name=expire_time,json=expireTime,proto3" json:"expire_time,omitempty"`
	UpdateUser     *User       `protobuf:"bytes,12,opt,name=update_user,json=updateUser,proto3" json:"update_user,omitempty"`
	CreateUser     *User       `protobuf:"bytes,13,opt,name=create_user,json=createUser,proto3" json:"create_user,omitempty"`
	// contains filtered or unexported fields
}

func (*FAQ) Descriptor deprecated

func (*FAQ) Descriptor() ([]byte, []int)

Deprecated: Use FAQ.ProtoReflect.Descriptor instead.

func (*FAQ) GetAnswer

func (x *FAQ) GetAnswer() string

func (*FAQ) GetAnswerRichtext

func (x *FAQ) GetAnswerRichtext() string

func (*FAQ) GetCategories

func (x *FAQ) GetCategories() []*Category

func (*FAQ) GetCreateTime

func (x *FAQ) GetCreateTime() int64

func (*FAQ) GetCreateUser

func (x *FAQ) GetCreateUser() *User

func (*FAQ) GetExpireTime

func (x *FAQ) GetExpireTime() int64

func (*FAQ) GetFaqId

func (x *FAQ) GetFaqId() string

func (*FAQ) GetHelpdeskId

func (x *FAQ) GetHelpdeskId() string

func (*FAQ) GetId

func (x *FAQ) GetId() string

func (*FAQ) GetQuestion

func (x *FAQ) GetQuestion() string

func (*FAQ) GetTags

func (x *FAQ) GetTags() []string

func (*FAQ) GetUpdateTime

func (x *FAQ) GetUpdateTime() int64

func (*FAQ) GetUpdateUser

func (x *FAQ) GetUpdateUser() *User

func (*FAQ) ProtoMessage

func (*FAQ) ProtoMessage()

func (*FAQ) ProtoReflect

func (x *FAQ) ProtoReflect() protoreflect.Message

func (*FAQ) Reset

func (x *FAQ) Reset()

func (*FAQ) String

func (x *FAQ) String() string

type FAQInfo

type FAQInfo struct {
	CategoryId     string   `protobuf:"bytes,1,opt,name=category_id,json=categoryId,proto3" json:"category_id,omitempty"`
	Question       string   `protobuf:"bytes,2,opt,name=question,proto3" json:"question,omitempty"`
	Answer         string   `protobuf:"bytes,3,opt,name=answer,proto3" json:"answer,omitempty"`
	AnswerRichtext string   `protobuf:"bytes,4,opt,name=answer_richtext,json=answerRichtext,proto3" json:"answer_richtext,omitempty"`
	Tags           []string `protobuf:"bytes,5,rep,name=tags,proto3" json:"tags,omitempty"`
	// contains filtered or unexported fields
}

func (*FAQInfo) Descriptor deprecated

func (*FAQInfo) Descriptor() ([]byte, []int)

Deprecated: Use FAQInfo.ProtoReflect.Descriptor instead.

func (*FAQInfo) GetAnswer

func (x *FAQInfo) GetAnswer() string

func (*FAQInfo) GetAnswerRichtext

func (x *FAQInfo) GetAnswerRichtext() string

func (*FAQInfo) GetCategoryId

func (x *FAQInfo) GetCategoryId() string

func (*FAQInfo) GetQuestion

func (x *FAQInfo) GetQuestion() string

func (*FAQInfo) GetTags

func (x *FAQInfo) GetTags() []string

func (*FAQInfo) ProtoMessage

func (*FAQInfo) ProtoMessage()

func (*FAQInfo) ProtoReflect

func (x *FAQInfo) ProtoReflect() protoreflect.Message

func (*FAQInfo) Reset

func (x *FAQInfo) Reset()

func (*FAQInfo) String

func (x *FAQInfo) String() string

type FAQServiceClient

type FAQServiceClient interface {
	CreateFAQ(ctx context.Context, in *CreateFAQRequest, opts ...grpc.CallOption) (*CreateFAQResponse, error)
	GetFAQ(ctx context.Context, in *GetFAQRequest, opts ...grpc.CallOption) (*GetFAQResponse, error)
	UpdateFAQ(ctx context.Context, in *UpdateFAQRequest, opts ...grpc.CallOption) (*UpdateFAQResponse, error)
	DeleteFAQ(ctx context.Context, in *DeleteFAQRequest, opts ...grpc.CallOption) (*DeleteFAQResponse, error)
	GetFAQImage(ctx context.Context, in *GetFAQImageRequest, opts ...grpc.CallOption) (*GetFAQImageResponse, error)
	SearchFAQAnswerRichtext(ctx context.Context, in *SearchFAQAnswerRichtextRequest, opts ...grpc.CallOption) (*SearchFAQAnswerRichtextResponse, error)
}

FAQServiceClient is the client API for FAQService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewFAQServiceClient

func NewFAQServiceClient(cc grpc.ClientConnInterface) FAQServiceClient

type FAQServiceServer

FAQServiceServer is the server API for FAQService service. All implementations must embed UnimplementedFAQServiceServer for forward compatibility

type FAQUpdateInfo

type FAQUpdateInfo struct {
	FaqId string   `protobuf:"bytes,1,opt,name=faq_id,json=faqId,proto3" json:"faq_id,omitempty"`
	Info  *FAQInfo `protobuf:"bytes,2,opt,name=info,proto3" json:"info,omitempty"`
	// contains filtered or unexported fields
}

func (*FAQUpdateInfo) Descriptor deprecated

func (*FAQUpdateInfo) Descriptor() ([]byte, []int)

Deprecated: Use FAQUpdateInfo.ProtoReflect.Descriptor instead.

func (*FAQUpdateInfo) GetFaqId

func (x *FAQUpdateInfo) GetFaqId() string

func (*FAQUpdateInfo) GetInfo

func (x *FAQUpdateInfo) GetInfo() *FAQInfo

func (*FAQUpdateInfo) ProtoMessage

func (*FAQUpdateInfo) ProtoMessage()

func (*FAQUpdateInfo) ProtoReflect

func (x *FAQUpdateInfo) ProtoReflect() protoreflect.Message

func (*FAQUpdateInfo) Reset

func (x *FAQUpdateInfo) Reset()

func (*FAQUpdateInfo) String

func (x *FAQUpdateInfo) String() string

type GetFAQImageRequest

type GetFAQImageRequest struct {
	FaqId    string `protobuf:"bytes,1,opt,name=faq_id,json=faqId,proto3" json:"faq_id,omitempty"`
	ImageKey string `protobuf:"bytes,2,opt,name=image_key,json=imageKey,proto3" json:"image_key,omitempty"`
	// contains filtered or unexported fields
}

func (*GetFAQImageRequest) Descriptor deprecated

func (*GetFAQImageRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetFAQImageRequest.ProtoReflect.Descriptor instead.

func (*GetFAQImageRequest) GetFaqId

func (x *GetFAQImageRequest) GetFaqId() string

func (*GetFAQImageRequest) GetImageKey

func (x *GetFAQImageRequest) GetImageKey() string

func (*GetFAQImageRequest) ProtoMessage

func (*GetFAQImageRequest) ProtoMessage()

func (*GetFAQImageRequest) ProtoReflect

func (x *GetFAQImageRequest) ProtoReflect() protoreflect.Message

func (*GetFAQImageRequest) Reset

func (x *GetFAQImageRequest) Reset()

func (*GetFAQImageRequest) String

func (x *GetFAQImageRequest) String() string

type GetFAQImageResponse

type GetFAQImageResponse struct {
	Image []byte `protobuf:"bytes,1,opt,name=image,proto3" json:"image,omitempty"`
	// contains filtered or unexported fields
}

func (*GetFAQImageResponse) Descriptor deprecated

func (*GetFAQImageResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetFAQImageResponse.ProtoReflect.Descriptor instead.

func (*GetFAQImageResponse) GetImage

func (x *GetFAQImageResponse) GetImage() []byte

func (*GetFAQImageResponse) ProtoMessage

func (*GetFAQImageResponse) ProtoMessage()

func (*GetFAQImageResponse) ProtoReflect

func (x *GetFAQImageResponse) ProtoReflect() protoreflect.Message

func (*GetFAQImageResponse) Reset

func (x *GetFAQImageResponse) Reset()

func (*GetFAQImageResponse) String

func (x *GetFAQImageResponse) String() string

type GetFAQRequest

type GetFAQRequest struct {
	FaqId string `protobuf:"bytes,1,opt,name=faq_id,json=faqId,proto3" json:"faq_id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetFAQRequest) Descriptor deprecated

func (*GetFAQRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetFAQRequest.ProtoReflect.Descriptor instead.

func (*GetFAQRequest) GetFaqId

func (x *GetFAQRequest) GetFaqId() string

func (*GetFAQRequest) ProtoMessage

func (*GetFAQRequest) ProtoMessage()

func (*GetFAQRequest) ProtoReflect

func (x *GetFAQRequest) ProtoReflect() protoreflect.Message

func (*GetFAQRequest) Reset

func (x *GetFAQRequest) Reset()

func (*GetFAQRequest) String

func (x *GetFAQRequest) String() string

type GetFAQResponse

type GetFAQResponse struct {
	Error int32  `protobuf:"varint,1,opt,name=error,proto3" json:"error,omitempty"`
	Msg   string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	Data  *FAQ   `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*GetFAQResponse) Descriptor deprecated

func (*GetFAQResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetFAQResponse.ProtoReflect.Descriptor instead.

func (*GetFAQResponse) GetData

func (x *GetFAQResponse) GetData() *FAQ

func (*GetFAQResponse) GetError

func (x *GetFAQResponse) GetError() int32

func (*GetFAQResponse) GetMsg

func (x *GetFAQResponse) GetMsg() string

func (*GetFAQResponse) ProtoMessage

func (*GetFAQResponse) ProtoMessage()

func (*GetFAQResponse) ProtoReflect

func (x *GetFAQResponse) ProtoReflect() protoreflect.Message

func (*GetFAQResponse) Reset

func (x *GetFAQResponse) Reset()

func (*GetFAQResponse) String

func (x *GetFAQResponse) String() string

type SearchFAQAnswerRichtextRequest

type SearchFAQAnswerRichtextRequest struct {
	Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	// contains filtered or unexported fields
}

func (*SearchFAQAnswerRichtextRequest) Descriptor deprecated

func (*SearchFAQAnswerRichtextRequest) Descriptor() ([]byte, []int)

Deprecated: Use SearchFAQAnswerRichtextRequest.ProtoReflect.Descriptor instead.

func (*SearchFAQAnswerRichtextRequest) GetKey

func (*SearchFAQAnswerRichtextRequest) ProtoMessage

func (*SearchFAQAnswerRichtextRequest) ProtoMessage()

func (*SearchFAQAnswerRichtextRequest) ProtoReflect

func (*SearchFAQAnswerRichtextRequest) Reset

func (x *SearchFAQAnswerRichtextRequest) Reset()

func (*SearchFAQAnswerRichtextRequest) String

type SearchFAQAnswerRichtextResponse

type SearchFAQAnswerRichtextResponse struct {
	FaqId  string            `protobuf:"bytes,1,opt,name=faq_id,json=faqId,proto3" json:"faq_id,omitempty"`
	Answer []*AnswerRichtext `protobuf:"bytes,2,rep,name=answer,proto3" json:"answer,omitempty"`
	// contains filtered or unexported fields
}

func (*SearchFAQAnswerRichtextResponse) Descriptor deprecated

func (*SearchFAQAnswerRichtextResponse) Descriptor() ([]byte, []int)

Deprecated: Use SearchFAQAnswerRichtextResponse.ProtoReflect.Descriptor instead.

func (*SearchFAQAnswerRichtextResponse) GetAnswer

func (*SearchFAQAnswerRichtextResponse) GetFaqId

func (*SearchFAQAnswerRichtextResponse) ProtoMessage

func (*SearchFAQAnswerRichtextResponse) ProtoMessage()

func (*SearchFAQAnswerRichtextResponse) ProtoReflect

func (*SearchFAQAnswerRichtextResponse) Reset

func (*SearchFAQAnswerRichtextResponse) String

type UnimplementedFAQServiceServer

type UnimplementedFAQServiceServer struct {
}

UnimplementedFAQServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedFAQServiceServer) CreateFAQ

func (UnimplementedFAQServiceServer) DeleteFAQ

func (UnimplementedFAQServiceServer) GetFAQ

func (UnimplementedFAQServiceServer) GetFAQImage

func (UnimplementedFAQServiceServer) UpdateFAQ

type UnsafeFAQServiceServer

type UnsafeFAQServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeFAQServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to FAQServiceServer will result in compilation errors.

type UpdateFAQRequest

type UpdateFAQRequest struct {
	FaqId string   `protobuf:"bytes,1,opt,name=faq_id,json=faqId,proto3" json:"faq_id,omitempty"`
	Data  *FAQInfo `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateFAQRequest) Descriptor deprecated

func (*UpdateFAQRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateFAQRequest.ProtoReflect.Descriptor instead.

func (*UpdateFAQRequest) GetData

func (x *UpdateFAQRequest) GetData() *FAQInfo

func (*UpdateFAQRequest) GetFaqId

func (x *UpdateFAQRequest) GetFaqId() string

func (*UpdateFAQRequest) ProtoMessage

func (*UpdateFAQRequest) ProtoMessage()

func (*UpdateFAQRequest) ProtoReflect

func (x *UpdateFAQRequest) ProtoReflect() protoreflect.Message

func (*UpdateFAQRequest) Reset

func (x *UpdateFAQRequest) Reset()

func (*UpdateFAQRequest) String

func (x *UpdateFAQRequest) String() string

type UpdateFAQResponse

type UpdateFAQResponse struct {
	Error int32  `protobuf:"varint,1,opt,name=error,proto3" json:"error,omitempty"`
	Msg   string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	Data  *FAQ   `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateFAQResponse) Descriptor deprecated

func (*UpdateFAQResponse) Descriptor() ([]byte, []int)

Deprecated: Use UpdateFAQResponse.ProtoReflect.Descriptor instead.

func (*UpdateFAQResponse) GetData

func (x *UpdateFAQResponse) GetData() *FAQ

func (*UpdateFAQResponse) GetError

func (x *UpdateFAQResponse) GetError() int32

func (*UpdateFAQResponse) GetMsg

func (x *UpdateFAQResponse) GetMsg() string

func (*UpdateFAQResponse) ProtoMessage

func (*UpdateFAQResponse) ProtoMessage()

func (*UpdateFAQResponse) ProtoReflect

func (x *UpdateFAQResponse) ProtoReflect() protoreflect.Message

func (*UpdateFAQResponse) Reset

func (x *UpdateFAQResponse) Reset()

func (*UpdateFAQResponse) String

func (x *UpdateFAQResponse) String() string

type User

type User struct {
	Id        string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	AvatarUrl string `protobuf:"bytes,2,opt,name=avatar_url,json=avatarUrl,proto3" json:"avatar_url,omitempty"`
	Name      string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*User) Descriptor deprecated

func (*User) Descriptor() ([]byte, []int)

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) GetAvatarUrl

func (x *User) GetAvatarUrl() string

func (*User) GetId

func (x *User) GetId() string

func (*User) GetName

func (x *User) GetName() string

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) ProtoReflect

func (x *User) ProtoReflect() protoreflect.Message

func (*User) Reset

func (x *User) Reset()

func (*User) String

func (x *User) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL