Documentation ¶
Overview ¶
Package faqv1 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func RegisterFAQServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterFAQServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client FAQServiceClient) error
- func RegisterFAQServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterFAQServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server FAQServiceServer) error
- func RegisterFAQServiceServer(s grpc.ServiceRegistrar, srv FAQServiceServer)
- type AnswerRichtext
- func (*AnswerRichtext) Descriptor() ([]byte, []int)deprecated
- func (x *AnswerRichtext) GetContent() string
- func (x *AnswerRichtext) GetHeight() int32
- func (x *AnswerRichtext) GetKey() string
- func (x *AnswerRichtext) GetSrc() string
- func (x *AnswerRichtext) GetText() string
- func (x *AnswerRichtext) GetType() string
- func (x *AnswerRichtext) GetUrl() string
- func (x *AnswerRichtext) GetWidth() int32
- func (*AnswerRichtext) ProtoMessage()
- func (x *AnswerRichtext) ProtoReflect() protoreflect.Message
- func (x *AnswerRichtext) Reset()
- func (x *AnswerRichtext) String() string
- type AnswerRichtexts
- type Category
- func (*Category) Descriptor() ([]byte, []int)deprecated
- func (x *Category) GetCategoryId() string
- func (x *Category) GetHelpdeskId() string
- func (x *Category) GetId() string
- func (x *Category) GetLanguage() string
- func (x *Category) GetName() string
- func (x *Category) GetParentId() string
- func (*Category) ProtoMessage()
- func (x *Category) ProtoReflect() protoreflect.Message
- func (x *Category) Reset()
- func (x *Category) String() string
- type CreateFAQRequest
- type CreateFAQResponse
- func (*CreateFAQResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateFAQResponse) GetData() *FAQ
- func (x *CreateFAQResponse) GetError() int32
- func (x *CreateFAQResponse) GetMsg() string
- func (*CreateFAQResponse) ProtoMessage()
- func (x *CreateFAQResponse) ProtoReflect() protoreflect.Message
- func (x *CreateFAQResponse) Reset()
- func (x *CreateFAQResponse) String() string
- type DeleteFAQRequest
- type DeleteFAQResponse
- func (*DeleteFAQResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteFAQResponse) GetError() int32
- func (x *DeleteFAQResponse) GetMsg() string
- func (*DeleteFAQResponse) ProtoMessage()
- func (x *DeleteFAQResponse) ProtoReflect() protoreflect.Message
- func (x *DeleteFAQResponse) Reset()
- func (x *DeleteFAQResponse) String() string
- type FAQ
- func (*FAQ) Descriptor() ([]byte, []int)deprecated
- func (x *FAQ) GetAnswer() string
- func (x *FAQ) GetAnswerRichtext() string
- func (x *FAQ) GetCategories() []*Category
- func (x *FAQ) GetCreateTime() int64
- func (x *FAQ) GetCreateUser() *User
- func (x *FAQ) GetExpireTime() int64
- func (x *FAQ) GetFaqId() string
- func (x *FAQ) GetHelpdeskId() string
- func (x *FAQ) GetId() string
- func (x *FAQ) GetQuestion() string
- func (x *FAQ) GetTags() []string
- func (x *FAQ) GetUpdateTime() int64
- func (x *FAQ) GetUpdateUser() *User
- func (*FAQ) ProtoMessage()
- func (x *FAQ) ProtoReflect() protoreflect.Message
- func (x *FAQ) Reset()
- func (x *FAQ) String() string
- type FAQInfo
- func (*FAQInfo) Descriptor() ([]byte, []int)deprecated
- func (x *FAQInfo) GetAnswer() string
- func (x *FAQInfo) GetAnswerRichtext() string
- func (x *FAQInfo) GetCategoryId() string
- func (x *FAQInfo) GetQuestion() string
- func (x *FAQInfo) GetTags() []string
- func (*FAQInfo) ProtoMessage()
- func (x *FAQInfo) ProtoReflect() protoreflect.Message
- func (x *FAQInfo) Reset()
- func (x *FAQInfo) String() string
- type FAQServiceClient
- type FAQServiceServer
- type FAQUpdateInfo
- func (*FAQUpdateInfo) Descriptor() ([]byte, []int)deprecated
- func (x *FAQUpdateInfo) GetFaqId() string
- func (x *FAQUpdateInfo) GetInfo() *FAQInfo
- func (*FAQUpdateInfo) ProtoMessage()
- func (x *FAQUpdateInfo) ProtoReflect() protoreflect.Message
- func (x *FAQUpdateInfo) Reset()
- func (x *FAQUpdateInfo) String() string
- type GetFAQImageRequest
- func (*GetFAQImageRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetFAQImageRequest) GetFaqId() string
- func (x *GetFAQImageRequest) GetImageKey() string
- func (*GetFAQImageRequest) ProtoMessage()
- func (x *GetFAQImageRequest) ProtoReflect() protoreflect.Message
- func (x *GetFAQImageRequest) Reset()
- func (x *GetFAQImageRequest) String() string
- type GetFAQImageResponse
- func (*GetFAQImageResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetFAQImageResponse) GetImage() []byte
- func (*GetFAQImageResponse) ProtoMessage()
- func (x *GetFAQImageResponse) ProtoReflect() protoreflect.Message
- func (x *GetFAQImageResponse) Reset()
- func (x *GetFAQImageResponse) String() string
- type GetFAQRequest
- type GetFAQResponse
- func (*GetFAQResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetFAQResponse) GetData() *FAQ
- func (x *GetFAQResponse) GetError() int32
- func (x *GetFAQResponse) GetMsg() string
- func (*GetFAQResponse) ProtoMessage()
- func (x *GetFAQResponse) ProtoReflect() protoreflect.Message
- func (x *GetFAQResponse) Reset()
- func (x *GetFAQResponse) String() string
- type SearchFAQAnswerRichtextRequest
- func (*SearchFAQAnswerRichtextRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SearchFAQAnswerRichtextRequest) GetKey() string
- func (*SearchFAQAnswerRichtextRequest) ProtoMessage()
- func (x *SearchFAQAnswerRichtextRequest) ProtoReflect() protoreflect.Message
- func (x *SearchFAQAnswerRichtextRequest) Reset()
- func (x *SearchFAQAnswerRichtextRequest) String() string
- type SearchFAQAnswerRichtextResponse
- func (*SearchFAQAnswerRichtextResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SearchFAQAnswerRichtextResponse) GetAnswer() []*AnswerRichtext
- func (x *SearchFAQAnswerRichtextResponse) GetFaqId() string
- func (*SearchFAQAnswerRichtextResponse) ProtoMessage()
- func (x *SearchFAQAnswerRichtextResponse) ProtoReflect() protoreflect.Message
- func (x *SearchFAQAnswerRichtextResponse) Reset()
- func (x *SearchFAQAnswerRichtextResponse) String() string
- type UnimplementedFAQServiceServer
- func (UnimplementedFAQServiceServer) CreateFAQ(context.Context, *CreateFAQRequest) (*CreateFAQResponse, error)
- func (UnimplementedFAQServiceServer) DeleteFAQ(context.Context, *DeleteFAQRequest) (*DeleteFAQResponse, error)
- func (UnimplementedFAQServiceServer) GetFAQ(context.Context, *GetFAQRequest) (*GetFAQResponse, error)
- func (UnimplementedFAQServiceServer) GetFAQImage(context.Context, *GetFAQImageRequest) (*GetFAQImageResponse, error)
- func (UnimplementedFAQServiceServer) SearchFAQAnswerRichtext(context.Context, *SearchFAQAnswerRichtextRequest) (*SearchFAQAnswerRichtextResponse, error)
- func (UnimplementedFAQServiceServer) UpdateFAQ(context.Context, *UpdateFAQRequest) (*UpdateFAQResponse, error)
- type UnsafeFAQServiceServer
- type UpdateFAQRequest
- func (*UpdateFAQRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateFAQRequest) GetData() *FAQInfo
- func (x *UpdateFAQRequest) GetFaqId() string
- func (*UpdateFAQRequest) ProtoMessage()
- func (x *UpdateFAQRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateFAQRequest) Reset()
- func (x *UpdateFAQRequest) String() string
- type UpdateFAQResponse
- func (*UpdateFAQResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateFAQResponse) GetData() *FAQ
- func (x *UpdateFAQResponse) GetError() int32
- func (x *UpdateFAQResponse) GetMsg() string
- func (*UpdateFAQResponse) ProtoMessage()
- func (x *UpdateFAQResponse) ProtoReflect() protoreflect.Message
- func (x *UpdateFAQResponse) Reset()
- func (x *UpdateFAQResponse) String() string
- type User
Constants ¶
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 ¶
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)
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. This client ignores the HTTP middlewares.
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. GRPC interceptors will not work for this type of registration. To use interceptors, you must use the "runtime.WithMiddlewares" option in the "runtime.NewServeMux" call.
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) GetCategoryId ¶
func (*Category) GetHelpdeskId ¶
func (*Category) GetLanguage ¶
func (*Category) GetParentId ¶
func (*Category) ProtoMessage ¶
func (*Category) ProtoMessage()
func (*Category) ProtoReflect ¶
func (x *Category) ProtoReflect() protoreflect.Message
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) GetAnswerRichtext ¶
func (*FAQ) GetCategories ¶
func (*FAQ) GetCreateTime ¶
func (*FAQ) GetCreateUser ¶
func (*FAQ) GetExpireTime ¶
func (*FAQ) GetHelpdeskId ¶
func (*FAQ) GetQuestion ¶
func (*FAQ) GetUpdateTime ¶
func (*FAQ) GetUpdateUser ¶
func (*FAQ) ProtoMessage ¶
func (*FAQ) ProtoMessage()
func (*FAQ) ProtoReflect ¶
func (x *FAQ) ProtoReflect() protoreflect.Message
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) GetAnswerRichtext ¶
func (*FAQInfo) GetCategoryId ¶
func (*FAQInfo) GetQuestion ¶
func (*FAQInfo) ProtoMessage ¶
func (*FAQInfo) ProtoMessage()
func (*FAQInfo) ProtoReflect ¶
func (x *FAQInfo) ProtoReflect() protoreflect.Message
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 ¶
type FAQServiceServer interface { CreateFAQ(context.Context, *CreateFAQRequest) (*CreateFAQResponse, error) GetFAQ(context.Context, *GetFAQRequest) (*GetFAQResponse, error) UpdateFAQ(context.Context, *UpdateFAQRequest) (*UpdateFAQResponse, error) DeleteFAQ(context.Context, *DeleteFAQRequest) (*DeleteFAQResponse, error) GetFAQImage(context.Context, *GetFAQImageRequest) (*GetFAQImageResponse, error) SearchFAQAnswerRichtext(context.Context, *SearchFAQAnswerRichtextRequest) (*SearchFAQAnswerRichtextResponse, error) // contains filtered or unexported methods }
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 (x *SearchFAQAnswerRichtextRequest) GetKey() string
func (*SearchFAQAnswerRichtextRequest) ProtoMessage ¶
func (*SearchFAQAnswerRichtextRequest) ProtoMessage()
func (*SearchFAQAnswerRichtextRequest) ProtoReflect ¶
func (x *SearchFAQAnswerRichtextRequest) ProtoReflect() protoreflect.Message
func (*SearchFAQAnswerRichtextRequest) Reset ¶
func (x *SearchFAQAnswerRichtextRequest) Reset()
func (*SearchFAQAnswerRichtextRequest) String ¶
func (x *SearchFAQAnswerRichtextRequest) String() 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 (x *SearchFAQAnswerRichtextResponse) GetAnswer() []*AnswerRichtext
func (*SearchFAQAnswerRichtextResponse) GetFaqId ¶
func (x *SearchFAQAnswerRichtextResponse) GetFaqId() string
func (*SearchFAQAnswerRichtextResponse) ProtoMessage ¶
func (*SearchFAQAnswerRichtextResponse) ProtoMessage()
func (*SearchFAQAnswerRichtextResponse) ProtoReflect ¶
func (x *SearchFAQAnswerRichtextResponse) ProtoReflect() protoreflect.Message
func (*SearchFAQAnswerRichtextResponse) Reset ¶
func (x *SearchFAQAnswerRichtextResponse) Reset()
func (*SearchFAQAnswerRichtextResponse) String ¶
func (x *SearchFAQAnswerRichtextResponse) String() string
type UnimplementedFAQServiceServer ¶
type UnimplementedFAQServiceServer struct{}
UnimplementedFAQServiceServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedFAQServiceServer) CreateFAQ ¶
func (UnimplementedFAQServiceServer) CreateFAQ(context.Context, *CreateFAQRequest) (*CreateFAQResponse, error)
func (UnimplementedFAQServiceServer) DeleteFAQ ¶
func (UnimplementedFAQServiceServer) DeleteFAQ(context.Context, *DeleteFAQRequest) (*DeleteFAQResponse, error)
func (UnimplementedFAQServiceServer) GetFAQ ¶
func (UnimplementedFAQServiceServer) GetFAQ(context.Context, *GetFAQRequest) (*GetFAQResponse, error)
func (UnimplementedFAQServiceServer) GetFAQImage ¶
func (UnimplementedFAQServiceServer) GetFAQImage(context.Context, *GetFAQImageRequest) (*GetFAQImageResponse, error)
func (UnimplementedFAQServiceServer) SearchFAQAnswerRichtext ¶
func (UnimplementedFAQServiceServer) SearchFAQAnswerRichtext(context.Context, *SearchFAQAnswerRichtextRequest) (*SearchFAQAnswerRichtextResponse, error)
func (UnimplementedFAQServiceServer) UpdateFAQ ¶
func (UnimplementedFAQServiceServer) UpdateFAQ(context.Context, *UpdateFAQRequest) (*UpdateFAQResponse, error)
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) GetAvatarUrl ¶
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) ProtoReflect ¶
func (x *User) ProtoReflect() protoreflect.Message