1972 lines
59 KiB
Go
1972 lines
59 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.10
|
|
// protoc v3.21.12
|
|
// source: customer/v1/customer.proto
|
|
|
|
package v1
|
|
|
|
import (
|
|
_ "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 SystemStatusRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *SystemStatusRequest) Reset() {
|
|
*x = SystemStatusRequest{}
|
|
mi := &file_customer_v1_customer_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *SystemStatusRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*SystemStatusRequest) ProtoMessage() {}
|
|
|
|
func (x *SystemStatusRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_customer_v1_customer_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 SystemStatusRequest.ProtoReflect.Descriptor instead.
|
|
func (*SystemStatusRequest) Descriptor() ([]byte, []int) {
|
|
return file_customer_v1_customer_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
// 系统状态响应
|
|
type SystemStatusResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// 系统状态
|
|
Status bool `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"`
|
|
// 服务状态详情
|
|
Services map[string]*ServiceStatus `protobuf:"bytes,2,rep,name=services,proto3" json:"services,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
|
|
// 版本信息
|
|
Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *SystemStatusResponse) Reset() {
|
|
*x = SystemStatusResponse{}
|
|
mi := &file_customer_v1_customer_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *SystemStatusResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*SystemStatusResponse) ProtoMessage() {}
|
|
|
|
func (x *SystemStatusResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_customer_v1_customer_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 SystemStatusResponse.ProtoReflect.Descriptor instead.
|
|
func (*SystemStatusResponse) Descriptor() ([]byte, []int) {
|
|
return file_customer_v1_customer_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *SystemStatusResponse) GetStatus() bool {
|
|
if x != nil {
|
|
return x.Status
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *SystemStatusResponse) GetServices() map[string]*ServiceStatus {
|
|
if x != nil {
|
|
return x.Services
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *SystemStatusResponse) GetVersion() string {
|
|
if x != nil {
|
|
return x.Version
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// 服务状态
|
|
type ServiceStatus struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// 服务名称
|
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
|
// 服务状态
|
|
Status bool `protobuf:"varint,2,opt,name=status,proto3" json:"status,omitempty"`
|
|
// 状态详情
|
|
Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ServiceStatus) Reset() {
|
|
*x = ServiceStatus{}
|
|
mi := &file_customer_v1_customer_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ServiceStatus) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ServiceStatus) ProtoMessage() {}
|
|
|
|
func (x *ServiceStatus) ProtoReflect() protoreflect.Message {
|
|
mi := &file_customer_v1_customer_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 ServiceStatus.ProtoReflect.Descriptor instead.
|
|
func (*ServiceStatus) Descriptor() ([]byte, []int) {
|
|
return file_customer_v1_customer_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *ServiceStatus) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ServiceStatus) GetStatus() bool {
|
|
if x != nil {
|
|
return x.Status
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *ServiceStatus) GetMessage() string {
|
|
if x != nil {
|
|
return x.Message
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// 聊天请求
|
|
type ChatRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// 用户输入消息
|
|
Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
|
|
// 会话ID
|
|
SessionId string `protobuf:"bytes,2,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ChatRequest) Reset() {
|
|
*x = ChatRequest{}
|
|
mi := &file_customer_v1_customer_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ChatRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ChatRequest) ProtoMessage() {}
|
|
|
|
func (x *ChatRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_customer_v1_customer_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 ChatRequest.ProtoReflect.Descriptor instead.
|
|
func (*ChatRequest) Descriptor() ([]byte, []int) {
|
|
return file_customer_v1_customer_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
func (x *ChatRequest) GetMessage() string {
|
|
if x != nil {
|
|
return x.Message
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ChatRequest) GetSessionId() string {
|
|
if x != nil {
|
|
return x.SessionId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// 聊天响应
|
|
type ChatResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// 会话ID
|
|
SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
|
|
// 时间戳
|
|
Timestamp string `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
|
|
// 消息类型
|
|
Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"`
|
|
// 消息内容
|
|
Payload *ChatPayload `protobuf:"bytes,4,opt,name=payload,proto3" json:"payload,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ChatResponse) Reset() {
|
|
*x = ChatResponse{}
|
|
mi := &file_customer_v1_customer_proto_msgTypes[4]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ChatResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ChatResponse) ProtoMessage() {}
|
|
|
|
func (x *ChatResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_customer_v1_customer_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 ChatResponse.ProtoReflect.Descriptor instead.
|
|
func (*ChatResponse) Descriptor() ([]byte, []int) {
|
|
return file_customer_v1_customer_proto_rawDescGZIP(), []int{4}
|
|
}
|
|
|
|
func (x *ChatResponse) GetSessionId() string {
|
|
if x != nil {
|
|
return x.SessionId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ChatResponse) GetTimestamp() string {
|
|
if x != nil {
|
|
return x.Timestamp
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ChatResponse) GetType() string {
|
|
if x != nil {
|
|
return x.Type
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ChatResponse) GetPayload() *ChatPayload {
|
|
if x != nil {
|
|
return x.Payload
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// 聊天消息内容
|
|
type ChatPayload struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// 数据类型
|
|
DataType string `protobuf:"bytes,1,opt,name=data_type,json=dataType,proto3" json:"data_type,omitempty"`
|
|
// 内容
|
|
Content *ChatContent `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ChatPayload) Reset() {
|
|
*x = ChatPayload{}
|
|
mi := &file_customer_v1_customer_proto_msgTypes[5]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ChatPayload) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ChatPayload) ProtoMessage() {}
|
|
|
|
func (x *ChatPayload) ProtoReflect() protoreflect.Message {
|
|
mi := &file_customer_v1_customer_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 ChatPayload.ProtoReflect.Descriptor instead.
|
|
func (*ChatPayload) Descriptor() ([]byte, []int) {
|
|
return file_customer_v1_customer_proto_rawDescGZIP(), []int{5}
|
|
}
|
|
|
|
func (x *ChatPayload) GetDataType() string {
|
|
if x != nil {
|
|
return x.DataType
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ChatPayload) GetContent() *ChatContent {
|
|
if x != nil {
|
|
return x.Content
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// 聊天内容
|
|
type ChatContent struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// 消息块
|
|
Chunk string `protobuf:"bytes,1,opt,name=chunk,proto3" json:"chunk,omitempty"`
|
|
// 完整消息
|
|
FullMessage string `protobuf:"bytes,2,opt,name=full_message,json=fullMessage,proto3" json:"full_message,omitempty"`
|
|
// 是否为最终消息
|
|
IsFinal bool `protobuf:"varint,3,opt,name=is_final,json=isFinal,proto3" json:"is_final,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ChatContent) Reset() {
|
|
*x = ChatContent{}
|
|
mi := &file_customer_v1_customer_proto_msgTypes[6]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ChatContent) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ChatContent) ProtoMessage() {}
|
|
|
|
func (x *ChatContent) ProtoReflect() protoreflect.Message {
|
|
mi := &file_customer_v1_customer_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 ChatContent.ProtoReflect.Descriptor instead.
|
|
func (*ChatContent) Descriptor() ([]byte, []int) {
|
|
return file_customer_v1_customer_proto_rawDescGZIP(), []int{6}
|
|
}
|
|
|
|
func (x *ChatContent) GetChunk() string {
|
|
if x != nil {
|
|
return x.Chunk
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ChatContent) GetFullMessage() string {
|
|
if x != nil {
|
|
return x.FullMessage
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ChatContent) GetIsFinal() bool {
|
|
if x != nil {
|
|
return x.IsFinal
|
|
}
|
|
return false
|
|
}
|
|
|
|
// 获取会话列表请求
|
|
type GetSessionsRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetSessionsRequest) Reset() {
|
|
*x = GetSessionsRequest{}
|
|
mi := &file_customer_v1_customer_proto_msgTypes[7]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetSessionsRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetSessionsRequest) ProtoMessage() {}
|
|
|
|
func (x *GetSessionsRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_customer_v1_customer_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 GetSessionsRequest.ProtoReflect.Descriptor instead.
|
|
func (*GetSessionsRequest) Descriptor() ([]byte, []int) {
|
|
return file_customer_v1_customer_proto_rawDescGZIP(), []int{7}
|
|
}
|
|
|
|
// 获取会话列表响应
|
|
type GetSessionsResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// 会话列表
|
|
Sessions []*Session `protobuf:"bytes,1,rep,name=sessions,proto3" json:"sessions,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetSessionsResponse) Reset() {
|
|
*x = GetSessionsResponse{}
|
|
mi := &file_customer_v1_customer_proto_msgTypes[8]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetSessionsResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetSessionsResponse) ProtoMessage() {}
|
|
|
|
func (x *GetSessionsResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_customer_v1_customer_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 GetSessionsResponse.ProtoReflect.Descriptor instead.
|
|
func (*GetSessionsResponse) Descriptor() ([]byte, []int) {
|
|
return file_customer_v1_customer_proto_rawDescGZIP(), []int{8}
|
|
}
|
|
|
|
func (x *GetSessionsResponse) GetSessions() []*Session {
|
|
if x != nil {
|
|
return x.Sessions
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// 会话信息
|
|
type Session struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// 会话ID
|
|
SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
|
|
// 会话标题
|
|
Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
|
|
// 创建时间
|
|
CreatedAt string `protobuf:"bytes,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *Session) Reset() {
|
|
*x = Session{}
|
|
mi := &file_customer_v1_customer_proto_msgTypes[9]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *Session) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Session) ProtoMessage() {}
|
|
|
|
func (x *Session) ProtoReflect() protoreflect.Message {
|
|
mi := &file_customer_v1_customer_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 Session.ProtoReflect.Descriptor instead.
|
|
func (*Session) Descriptor() ([]byte, []int) {
|
|
return file_customer_v1_customer_proto_rawDescGZIP(), []int{9}
|
|
}
|
|
|
|
func (x *Session) GetSessionId() string {
|
|
if x != nil {
|
|
return x.SessionId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Session) GetTitle() string {
|
|
if x != nil {
|
|
return x.Title
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Session) GetCreatedAt() string {
|
|
if x != nil {
|
|
return x.CreatedAt
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// 创建会话请求
|
|
type CreateSessionRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// 会话标题
|
|
Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CreateSessionRequest) Reset() {
|
|
*x = CreateSessionRequest{}
|
|
mi := &file_customer_v1_customer_proto_msgTypes[10]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CreateSessionRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CreateSessionRequest) ProtoMessage() {}
|
|
|
|
func (x *CreateSessionRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_customer_v1_customer_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 CreateSessionRequest.ProtoReflect.Descriptor instead.
|
|
func (*CreateSessionRequest) Descriptor() ([]byte, []int) {
|
|
return file_customer_v1_customer_proto_rawDescGZIP(), []int{10}
|
|
}
|
|
|
|
func (x *CreateSessionRequest) GetTitle() string {
|
|
if x != nil {
|
|
return x.Title
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// 创建会话响应
|
|
type CreateSessionResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// 会话ID
|
|
SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
|
|
// 会话标题
|
|
Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
|
|
// 创建时间
|
|
CreatedAt string `protobuf:"bytes,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CreateSessionResponse) Reset() {
|
|
*x = CreateSessionResponse{}
|
|
mi := &file_customer_v1_customer_proto_msgTypes[11]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CreateSessionResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CreateSessionResponse) ProtoMessage() {}
|
|
|
|
func (x *CreateSessionResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_customer_v1_customer_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 CreateSessionResponse.ProtoReflect.Descriptor instead.
|
|
func (*CreateSessionResponse) Descriptor() ([]byte, []int) {
|
|
return file_customer_v1_customer_proto_rawDescGZIP(), []int{11}
|
|
}
|
|
|
|
func (x *CreateSessionResponse) GetSessionId() string {
|
|
if x != nil {
|
|
return x.SessionId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateSessionResponse) GetTitle() string {
|
|
if x != nil {
|
|
return x.Title
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateSessionResponse) GetCreatedAt() string {
|
|
if x != nil {
|
|
return x.CreatedAt
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// 上传知识库文档请求
|
|
type UploadKnowledgeRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// 文件名
|
|
FileName string `protobuf:"bytes,1,opt,name=file_name,json=fileName,proto3" json:"file_name,omitempty"`
|
|
// 文件类型
|
|
FileType string `protobuf:"bytes,2,opt,name=file_type,json=fileType,proto3" json:"file_type,omitempty"`
|
|
// 文件内容
|
|
Content []byte `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *UploadKnowledgeRequest) Reset() {
|
|
*x = UploadKnowledgeRequest{}
|
|
mi := &file_customer_v1_customer_proto_msgTypes[12]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *UploadKnowledgeRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*UploadKnowledgeRequest) ProtoMessage() {}
|
|
|
|
func (x *UploadKnowledgeRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_customer_v1_customer_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 UploadKnowledgeRequest.ProtoReflect.Descriptor instead.
|
|
func (*UploadKnowledgeRequest) Descriptor() ([]byte, []int) {
|
|
return file_customer_v1_customer_proto_rawDescGZIP(), []int{12}
|
|
}
|
|
|
|
func (x *UploadKnowledgeRequest) GetFileName() string {
|
|
if x != nil {
|
|
return x.FileName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UploadKnowledgeRequest) GetFileType() string {
|
|
if x != nil {
|
|
return x.FileType
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UploadKnowledgeRequest) GetContent() []byte {
|
|
if x != nil {
|
|
return x.Content
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// 上传知识库文档响应
|
|
type UploadKnowledgeResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// 是否成功
|
|
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
|
|
// 文件ID
|
|
FileId string `protobuf:"bytes,2,opt,name=file_id,json=fileId,proto3" json:"file_id,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *UploadKnowledgeResponse) Reset() {
|
|
*x = UploadKnowledgeResponse{}
|
|
mi := &file_customer_v1_customer_proto_msgTypes[13]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *UploadKnowledgeResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*UploadKnowledgeResponse) ProtoMessage() {}
|
|
|
|
func (x *UploadKnowledgeResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_customer_v1_customer_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 UploadKnowledgeResponse.ProtoReflect.Descriptor instead.
|
|
func (*UploadKnowledgeResponse) Descriptor() ([]byte, []int) {
|
|
return file_customer_v1_customer_proto_rawDescGZIP(), []int{13}
|
|
}
|
|
|
|
func (x *UploadKnowledgeResponse) GetSuccess() bool {
|
|
if x != nil {
|
|
return x.Success
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *UploadKnowledgeResponse) GetFileId() string {
|
|
if x != nil {
|
|
return x.FileId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// 获取知识库文档列表请求
|
|
type ListKnowledgeRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ListKnowledgeRequest) Reset() {
|
|
*x = ListKnowledgeRequest{}
|
|
mi := &file_customer_v1_customer_proto_msgTypes[14]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ListKnowledgeRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ListKnowledgeRequest) ProtoMessage() {}
|
|
|
|
func (x *ListKnowledgeRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_customer_v1_customer_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 ListKnowledgeRequest.ProtoReflect.Descriptor instead.
|
|
func (*ListKnowledgeRequest) Descriptor() ([]byte, []int) {
|
|
return file_customer_v1_customer_proto_rawDescGZIP(), []int{14}
|
|
}
|
|
|
|
// 获取知识库文档列表响应
|
|
type ListKnowledgeResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// 文档列表
|
|
Documents []*KnowledgeDocument `protobuf:"bytes,1,rep,name=documents,proto3" json:"documents,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ListKnowledgeResponse) Reset() {
|
|
*x = ListKnowledgeResponse{}
|
|
mi := &file_customer_v1_customer_proto_msgTypes[15]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ListKnowledgeResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ListKnowledgeResponse) ProtoMessage() {}
|
|
|
|
func (x *ListKnowledgeResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_customer_v1_customer_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 ListKnowledgeResponse.ProtoReflect.Descriptor instead.
|
|
func (*ListKnowledgeResponse) Descriptor() ([]byte, []int) {
|
|
return file_customer_v1_customer_proto_rawDescGZIP(), []int{15}
|
|
}
|
|
|
|
func (x *ListKnowledgeResponse) GetDocuments() []*KnowledgeDocument {
|
|
if x != nil {
|
|
return x.Documents
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// 知识库文档
|
|
type KnowledgeDocument struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// 文档ID
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
// 文件名
|
|
FileName string `protobuf:"bytes,2,opt,name=file_name,json=fileName,proto3" json:"file_name,omitempty"`
|
|
// 文件类型
|
|
FileType string `protobuf:"bytes,3,opt,name=file_type,json=fileType,proto3" json:"file_type,omitempty"`
|
|
// 内容预览
|
|
ContentPreview string `protobuf:"bytes,4,opt,name=content_preview,json=contentPreview,proto3" json:"content_preview,omitempty"`
|
|
// 上传时间
|
|
UploadTime string `protobuf:"bytes,5,opt,name=upload_time,json=uploadTime,proto3" json:"upload_time,omitempty"`
|
|
// 状态
|
|
Status string `protobuf:"bytes,6,opt,name=status,proto3" json:"status,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *KnowledgeDocument) Reset() {
|
|
*x = KnowledgeDocument{}
|
|
mi := &file_customer_v1_customer_proto_msgTypes[16]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *KnowledgeDocument) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*KnowledgeDocument) ProtoMessage() {}
|
|
|
|
func (x *KnowledgeDocument) ProtoReflect() protoreflect.Message {
|
|
mi := &file_customer_v1_customer_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 KnowledgeDocument.ProtoReflect.Descriptor instead.
|
|
func (*KnowledgeDocument) Descriptor() ([]byte, []int) {
|
|
return file_customer_v1_customer_proto_rawDescGZIP(), []int{16}
|
|
}
|
|
|
|
func (x *KnowledgeDocument) GetId() string {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *KnowledgeDocument) GetFileName() string {
|
|
if x != nil {
|
|
return x.FileName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *KnowledgeDocument) GetFileType() string {
|
|
if x != nil {
|
|
return x.FileType
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *KnowledgeDocument) GetContentPreview() string {
|
|
if x != nil {
|
|
return x.ContentPreview
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *KnowledgeDocument) GetUploadTime() string {
|
|
if x != nil {
|
|
return x.UploadTime
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *KnowledgeDocument) GetStatus() string {
|
|
if x != nil {
|
|
return x.Status
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// 删除知识库文档请求
|
|
type DeleteKnowledgeRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// 文档ID
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *DeleteKnowledgeRequest) Reset() {
|
|
*x = DeleteKnowledgeRequest{}
|
|
mi := &file_customer_v1_customer_proto_msgTypes[17]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *DeleteKnowledgeRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DeleteKnowledgeRequest) ProtoMessage() {}
|
|
|
|
func (x *DeleteKnowledgeRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_customer_v1_customer_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 DeleteKnowledgeRequest.ProtoReflect.Descriptor instead.
|
|
func (*DeleteKnowledgeRequest) Descriptor() ([]byte, []int) {
|
|
return file_customer_v1_customer_proto_rawDescGZIP(), []int{17}
|
|
}
|
|
|
|
func (x *DeleteKnowledgeRequest) GetId() string {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// 删除知识库文档响应
|
|
type DeleteKnowledgeResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// 是否成功
|
|
Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *DeleteKnowledgeResponse) Reset() {
|
|
*x = DeleteKnowledgeResponse{}
|
|
mi := &file_customer_v1_customer_proto_msgTypes[18]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *DeleteKnowledgeResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DeleteKnowledgeResponse) ProtoMessage() {}
|
|
|
|
func (x *DeleteKnowledgeResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_customer_v1_customer_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 DeleteKnowledgeResponse.ProtoReflect.Descriptor instead.
|
|
func (*DeleteKnowledgeResponse) Descriptor() ([]byte, []int) {
|
|
return file_customer_v1_customer_proto_rawDescGZIP(), []int{18}
|
|
}
|
|
|
|
func (x *DeleteKnowledgeResponse) GetSuccess() bool {
|
|
if x != nil {
|
|
return x.Success
|
|
}
|
|
return false
|
|
}
|
|
|
|
// 订单查询请求
|
|
type QueryOrderRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// 订单ID
|
|
OrderId string `protobuf:"bytes,1,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *QueryOrderRequest) Reset() {
|
|
*x = QueryOrderRequest{}
|
|
mi := &file_customer_v1_customer_proto_msgTypes[19]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *QueryOrderRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*QueryOrderRequest) ProtoMessage() {}
|
|
|
|
func (x *QueryOrderRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_customer_v1_customer_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 QueryOrderRequest.ProtoReflect.Descriptor instead.
|
|
func (*QueryOrderRequest) Descriptor() ([]byte, []int) {
|
|
return file_customer_v1_customer_proto_rawDescGZIP(), []int{19}
|
|
}
|
|
|
|
func (x *QueryOrderRequest) GetOrderId() string {
|
|
if x != nil {
|
|
return x.OrderId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// 订单查询响应
|
|
type QueryOrderResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// 订单ID
|
|
OrderId string `protobuf:"bytes,1,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"`
|
|
// 订单状态
|
|
Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"`
|
|
// 是否需要AI诊断
|
|
NeedAi bool `protobuf:"varint,3,opt,name=need_ai,json=needAi,proto3" json:"need_ai,omitempty"`
|
|
// 订单详情
|
|
Details *OrderDetails `protobuf:"bytes,4,opt,name=details,proto3" json:"details,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *QueryOrderResponse) Reset() {
|
|
*x = QueryOrderResponse{}
|
|
mi := &file_customer_v1_customer_proto_msgTypes[20]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *QueryOrderResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*QueryOrderResponse) ProtoMessage() {}
|
|
|
|
func (x *QueryOrderResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_customer_v1_customer_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 QueryOrderResponse.ProtoReflect.Descriptor instead.
|
|
func (*QueryOrderResponse) Descriptor() ([]byte, []int) {
|
|
return file_customer_v1_customer_proto_rawDescGZIP(), []int{20}
|
|
}
|
|
|
|
func (x *QueryOrderResponse) GetOrderId() string {
|
|
if x != nil {
|
|
return x.OrderId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *QueryOrderResponse) GetStatus() string {
|
|
if x != nil {
|
|
return x.Status
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *QueryOrderResponse) GetNeedAi() bool {
|
|
if x != nil {
|
|
return x.NeedAi
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *QueryOrderResponse) GetDetails() *OrderDetails {
|
|
if x != nil {
|
|
return x.Details
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// 订单详情
|
|
type OrderDetails struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// 产品名称
|
|
Product string `protobuf:"bytes,1,opt,name=product,proto3" json:"product,omitempty"`
|
|
// 金额
|
|
Amount float64 `protobuf:"fixed64,2,opt,name=amount,proto3" json:"amount,omitempty"`
|
|
// 创建时间
|
|
CreateTime string `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *OrderDetails) Reset() {
|
|
*x = OrderDetails{}
|
|
mi := &file_customer_v1_customer_proto_msgTypes[21]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *OrderDetails) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*OrderDetails) ProtoMessage() {}
|
|
|
|
func (x *OrderDetails) ProtoReflect() protoreflect.Message {
|
|
mi := &file_customer_v1_customer_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 OrderDetails.ProtoReflect.Descriptor instead.
|
|
func (*OrderDetails) Descriptor() ([]byte, []int) {
|
|
return file_customer_v1_customer_proto_rawDescGZIP(), []int{21}
|
|
}
|
|
|
|
func (x *OrderDetails) GetProduct() string {
|
|
if x != nil {
|
|
return x.Product
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *OrderDetails) GetAmount() float64 {
|
|
if x != nil {
|
|
return x.Amount
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *OrderDetails) GetCreateTime() string {
|
|
if x != nil {
|
|
return x.CreateTime
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// 流式聊天请求
|
|
type StreamChatRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// 用户输入消息
|
|
Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
|
|
// 会话ID
|
|
SessionId string `protobuf:"bytes,2,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
|
|
// 模型名称 (可选)
|
|
Model string `protobuf:"bytes,3,opt,name=model,proto3" json:"model,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *StreamChatRequest) Reset() {
|
|
*x = StreamChatRequest{}
|
|
mi := &file_customer_v1_customer_proto_msgTypes[22]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *StreamChatRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*StreamChatRequest) ProtoMessage() {}
|
|
|
|
func (x *StreamChatRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_customer_v1_customer_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 StreamChatRequest.ProtoReflect.Descriptor instead.
|
|
func (*StreamChatRequest) Descriptor() ([]byte, []int) {
|
|
return file_customer_v1_customer_proto_rawDescGZIP(), []int{22}
|
|
}
|
|
|
|
func (x *StreamChatRequest) GetMessage() string {
|
|
if x != nil {
|
|
return x.Message
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *StreamChatRequest) GetSessionId() string {
|
|
if x != nil {
|
|
return x.SessionId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *StreamChatRequest) GetModel() string {
|
|
if x != nil {
|
|
return x.Model
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// 流式聊天响应
|
|
type StreamChatResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// 会话ID
|
|
SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
|
|
// 时间戳
|
|
Timestamp string `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
|
|
// 消息类型 (chunk, final, error)
|
|
Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"`
|
|
// 消息内容
|
|
Content string `protobuf:"bytes,4,opt,name=content,proto3" json:"content,omitempty"`
|
|
// 是否为最终消息
|
|
IsFinal bool `protobuf:"varint,5,opt,name=is_final,json=isFinal,proto3" json:"is_final,omitempty"`
|
|
// 错误信息 (如果有)
|
|
Error string `protobuf:"bytes,6,opt,name=error,proto3" json:"error,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *StreamChatResponse) Reset() {
|
|
*x = StreamChatResponse{}
|
|
mi := &file_customer_v1_customer_proto_msgTypes[23]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *StreamChatResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*StreamChatResponse) ProtoMessage() {}
|
|
|
|
func (x *StreamChatResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_customer_v1_customer_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 StreamChatResponse.ProtoReflect.Descriptor instead.
|
|
func (*StreamChatResponse) Descriptor() ([]byte, []int) {
|
|
return file_customer_v1_customer_proto_rawDescGZIP(), []int{23}
|
|
}
|
|
|
|
func (x *StreamChatResponse) GetSessionId() string {
|
|
if x != nil {
|
|
return x.SessionId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *StreamChatResponse) GetTimestamp() string {
|
|
if x != nil {
|
|
return x.Timestamp
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *StreamChatResponse) GetType() string {
|
|
if x != nil {
|
|
return x.Type
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *StreamChatResponse) GetContent() string {
|
|
if x != nil {
|
|
return x.Content
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *StreamChatResponse) GetIsFinal() bool {
|
|
if x != nil {
|
|
return x.IsFinal
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *StreamChatResponse) GetError() string {
|
|
if x != nil {
|
|
return x.Error
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// 搜索知识库请求
|
|
type SearchKnowledgeRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// 搜索查询
|
|
Query string `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"`
|
|
// 返回结果数量限制
|
|
Limit int32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *SearchKnowledgeRequest) Reset() {
|
|
*x = SearchKnowledgeRequest{}
|
|
mi := &file_customer_v1_customer_proto_msgTypes[24]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *SearchKnowledgeRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*SearchKnowledgeRequest) ProtoMessage() {}
|
|
|
|
func (x *SearchKnowledgeRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_customer_v1_customer_proto_msgTypes[24]
|
|
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 SearchKnowledgeRequest.ProtoReflect.Descriptor instead.
|
|
func (*SearchKnowledgeRequest) Descriptor() ([]byte, []int) {
|
|
return file_customer_v1_customer_proto_rawDescGZIP(), []int{24}
|
|
}
|
|
|
|
func (x *SearchKnowledgeRequest) GetQuery() string {
|
|
if x != nil {
|
|
return x.Query
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *SearchKnowledgeRequest) GetLimit() int32 {
|
|
if x != nil {
|
|
return x.Limit
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// 搜索知识库响应
|
|
type SearchKnowledgeResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// 搜索结果
|
|
Results []*KnowledgeSearchResult `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"`
|
|
// 总数
|
|
Total int32 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *SearchKnowledgeResponse) Reset() {
|
|
*x = SearchKnowledgeResponse{}
|
|
mi := &file_customer_v1_customer_proto_msgTypes[25]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *SearchKnowledgeResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*SearchKnowledgeResponse) ProtoMessage() {}
|
|
|
|
func (x *SearchKnowledgeResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_customer_v1_customer_proto_msgTypes[25]
|
|
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 SearchKnowledgeResponse.ProtoReflect.Descriptor instead.
|
|
func (*SearchKnowledgeResponse) Descriptor() ([]byte, []int) {
|
|
return file_customer_v1_customer_proto_rawDescGZIP(), []int{25}
|
|
}
|
|
|
|
func (x *SearchKnowledgeResponse) GetResults() []*KnowledgeSearchResult {
|
|
if x != nil {
|
|
return x.Results
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *SearchKnowledgeResponse) GetTotal() int32 {
|
|
if x != nil {
|
|
return x.Total
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// 知识库搜索结果
|
|
type KnowledgeSearchResult struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// 文档ID
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
// 标题
|
|
Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
|
|
// 内容
|
|
Content string `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"`
|
|
// 相关性评分
|
|
Score float32 `protobuf:"fixed32,4,opt,name=score,proto3" json:"score,omitempty"`
|
|
// 元数据
|
|
Metadata map[string]string `protobuf:"bytes,5,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *KnowledgeSearchResult) Reset() {
|
|
*x = KnowledgeSearchResult{}
|
|
mi := &file_customer_v1_customer_proto_msgTypes[26]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *KnowledgeSearchResult) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*KnowledgeSearchResult) ProtoMessage() {}
|
|
|
|
func (x *KnowledgeSearchResult) ProtoReflect() protoreflect.Message {
|
|
mi := &file_customer_v1_customer_proto_msgTypes[26]
|
|
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 KnowledgeSearchResult.ProtoReflect.Descriptor instead.
|
|
func (*KnowledgeSearchResult) Descriptor() ([]byte, []int) {
|
|
return file_customer_v1_customer_proto_rawDescGZIP(), []int{26}
|
|
}
|
|
|
|
func (x *KnowledgeSearchResult) GetId() string {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *KnowledgeSearchResult) GetTitle() string {
|
|
if x != nil {
|
|
return x.Title
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *KnowledgeSearchResult) GetContent() string {
|
|
if x != nil {
|
|
return x.Content
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *KnowledgeSearchResult) GetScore() float32 {
|
|
if x != nil {
|
|
return x.Score
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *KnowledgeSearchResult) GetMetadata() map[string]string {
|
|
if x != nil {
|
|
return x.Metadata
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// 获取知识库摘要请求
|
|
type GetKnowledgeSummaryRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// 分类
|
|
Category string `protobuf:"bytes,1,opt,name=category,proto3" json:"category,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetKnowledgeSummaryRequest) Reset() {
|
|
*x = GetKnowledgeSummaryRequest{}
|
|
mi := &file_customer_v1_customer_proto_msgTypes[27]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetKnowledgeSummaryRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetKnowledgeSummaryRequest) ProtoMessage() {}
|
|
|
|
func (x *GetKnowledgeSummaryRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_customer_v1_customer_proto_msgTypes[27]
|
|
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 GetKnowledgeSummaryRequest.ProtoReflect.Descriptor instead.
|
|
func (*GetKnowledgeSummaryRequest) Descriptor() ([]byte, []int) {
|
|
return file_customer_v1_customer_proto_rawDescGZIP(), []int{27}
|
|
}
|
|
|
|
func (x *GetKnowledgeSummaryRequest) GetCategory() string {
|
|
if x != nil {
|
|
return x.Category
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// 获取知识库摘要响应
|
|
type GetKnowledgeSummaryResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// 分类
|
|
Category string `protobuf:"bytes,1,opt,name=category,proto3" json:"category,omitempty"`
|
|
// 摘要内容
|
|
Summary string `protobuf:"bytes,2,opt,name=summary,proto3" json:"summary,omitempty"`
|
|
// 文档数量
|
|
DocumentCount int32 `protobuf:"varint,3,opt,name=document_count,json=documentCount,proto3" json:"document_count,omitempty"`
|
|
// 最后更新时间
|
|
LastUpdated string `protobuf:"bytes,4,opt,name=last_updated,json=lastUpdated,proto3" json:"last_updated,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetKnowledgeSummaryResponse) Reset() {
|
|
*x = GetKnowledgeSummaryResponse{}
|
|
mi := &file_customer_v1_customer_proto_msgTypes[28]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetKnowledgeSummaryResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetKnowledgeSummaryResponse) ProtoMessage() {}
|
|
|
|
func (x *GetKnowledgeSummaryResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_customer_v1_customer_proto_msgTypes[28]
|
|
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 GetKnowledgeSummaryResponse.ProtoReflect.Descriptor instead.
|
|
func (*GetKnowledgeSummaryResponse) Descriptor() ([]byte, []int) {
|
|
return file_customer_v1_customer_proto_rawDescGZIP(), []int{28}
|
|
}
|
|
|
|
func (x *GetKnowledgeSummaryResponse) GetCategory() string {
|
|
if x != nil {
|
|
return x.Category
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *GetKnowledgeSummaryResponse) GetSummary() string {
|
|
if x != nil {
|
|
return x.Summary
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *GetKnowledgeSummaryResponse) GetDocumentCount() int32 {
|
|
if x != nil {
|
|
return x.DocumentCount
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *GetKnowledgeSummaryResponse) GetLastUpdated() string {
|
|
if x != nil {
|
|
return x.LastUpdated
|
|
}
|
|
return ""
|
|
}
|
|
|
|
var File_customer_v1_customer_proto protoreflect.FileDescriptor
|
|
|
|
const file_customer_v1_customer_proto_rawDesc = "" +
|
|
"\n" +
|
|
"\x1acustomer/v1/customer.proto\x12\x0fapi.customer.v1\x1a\x1cgoogle/api/annotations.proto\"\x15\n" +
|
|
"\x13SystemStatusRequest\"\xf6\x01\n" +
|
|
"\x14SystemStatusResponse\x12\x16\n" +
|
|
"\x06status\x18\x01 \x01(\bR\x06status\x12O\n" +
|
|
"\bservices\x18\x02 \x03(\v23.api.customer.v1.SystemStatusResponse.ServicesEntryR\bservices\x12\x18\n" +
|
|
"\aversion\x18\x03 \x01(\tR\aversion\x1a[\n" +
|
|
"\rServicesEntry\x12\x10\n" +
|
|
"\x03key\x18\x01 \x01(\tR\x03key\x124\n" +
|
|
"\x05value\x18\x02 \x01(\v2\x1e.api.customer.v1.ServiceStatusR\x05value:\x028\x01\"U\n" +
|
|
"\rServiceStatus\x12\x12\n" +
|
|
"\x04name\x18\x01 \x01(\tR\x04name\x12\x16\n" +
|
|
"\x06status\x18\x02 \x01(\bR\x06status\x12\x18\n" +
|
|
"\amessage\x18\x03 \x01(\tR\amessage\"F\n" +
|
|
"\vChatRequest\x12\x18\n" +
|
|
"\amessage\x18\x01 \x01(\tR\amessage\x12\x1d\n" +
|
|
"\n" +
|
|
"session_id\x18\x02 \x01(\tR\tsessionId\"\x97\x01\n" +
|
|
"\fChatResponse\x12\x1d\n" +
|
|
"\n" +
|
|
"session_id\x18\x01 \x01(\tR\tsessionId\x12\x1c\n" +
|
|
"\ttimestamp\x18\x02 \x01(\tR\ttimestamp\x12\x12\n" +
|
|
"\x04type\x18\x03 \x01(\tR\x04type\x126\n" +
|
|
"\apayload\x18\x04 \x01(\v2\x1c.api.customer.v1.ChatPayloadR\apayload\"b\n" +
|
|
"\vChatPayload\x12\x1b\n" +
|
|
"\tdata_type\x18\x01 \x01(\tR\bdataType\x126\n" +
|
|
"\acontent\x18\x02 \x01(\v2\x1c.api.customer.v1.ChatContentR\acontent\"a\n" +
|
|
"\vChatContent\x12\x14\n" +
|
|
"\x05chunk\x18\x01 \x01(\tR\x05chunk\x12!\n" +
|
|
"\ffull_message\x18\x02 \x01(\tR\vfullMessage\x12\x19\n" +
|
|
"\bis_final\x18\x03 \x01(\bR\aisFinal\"\x14\n" +
|
|
"\x12GetSessionsRequest\"K\n" +
|
|
"\x13GetSessionsResponse\x124\n" +
|
|
"\bsessions\x18\x01 \x03(\v2\x18.api.customer.v1.SessionR\bsessions\"]\n" +
|
|
"\aSession\x12\x1d\n" +
|
|
"\n" +
|
|
"session_id\x18\x01 \x01(\tR\tsessionId\x12\x14\n" +
|
|
"\x05title\x18\x02 \x01(\tR\x05title\x12\x1d\n" +
|
|
"\n" +
|
|
"created_at\x18\x03 \x01(\tR\tcreatedAt\",\n" +
|
|
"\x14CreateSessionRequest\x12\x14\n" +
|
|
"\x05title\x18\x01 \x01(\tR\x05title\"k\n" +
|
|
"\x15CreateSessionResponse\x12\x1d\n" +
|
|
"\n" +
|
|
"session_id\x18\x01 \x01(\tR\tsessionId\x12\x14\n" +
|
|
"\x05title\x18\x02 \x01(\tR\x05title\x12\x1d\n" +
|
|
"\n" +
|
|
"created_at\x18\x03 \x01(\tR\tcreatedAt\"l\n" +
|
|
"\x16UploadKnowledgeRequest\x12\x1b\n" +
|
|
"\tfile_name\x18\x01 \x01(\tR\bfileName\x12\x1b\n" +
|
|
"\tfile_type\x18\x02 \x01(\tR\bfileType\x12\x18\n" +
|
|
"\acontent\x18\x03 \x01(\fR\acontent\"L\n" +
|
|
"\x17UploadKnowledgeResponse\x12\x18\n" +
|
|
"\asuccess\x18\x01 \x01(\bR\asuccess\x12\x17\n" +
|
|
"\afile_id\x18\x02 \x01(\tR\x06fileId\"\x16\n" +
|
|
"\x14ListKnowledgeRequest\"Y\n" +
|
|
"\x15ListKnowledgeResponse\x12@\n" +
|
|
"\tdocuments\x18\x01 \x03(\v2\".api.customer.v1.KnowledgeDocumentR\tdocuments\"\xbf\x01\n" +
|
|
"\x11KnowledgeDocument\x12\x0e\n" +
|
|
"\x02id\x18\x01 \x01(\tR\x02id\x12\x1b\n" +
|
|
"\tfile_name\x18\x02 \x01(\tR\bfileName\x12\x1b\n" +
|
|
"\tfile_type\x18\x03 \x01(\tR\bfileType\x12'\n" +
|
|
"\x0fcontent_preview\x18\x04 \x01(\tR\x0econtentPreview\x12\x1f\n" +
|
|
"\vupload_time\x18\x05 \x01(\tR\n" +
|
|
"uploadTime\x12\x16\n" +
|
|
"\x06status\x18\x06 \x01(\tR\x06status\"(\n" +
|
|
"\x16DeleteKnowledgeRequest\x12\x0e\n" +
|
|
"\x02id\x18\x01 \x01(\tR\x02id\"3\n" +
|
|
"\x17DeleteKnowledgeResponse\x12\x18\n" +
|
|
"\asuccess\x18\x01 \x01(\bR\asuccess\".\n" +
|
|
"\x11QueryOrderRequest\x12\x19\n" +
|
|
"\border_id\x18\x01 \x01(\tR\aorderId\"\x99\x01\n" +
|
|
"\x12QueryOrderResponse\x12\x19\n" +
|
|
"\border_id\x18\x01 \x01(\tR\aorderId\x12\x16\n" +
|
|
"\x06status\x18\x02 \x01(\tR\x06status\x12\x17\n" +
|
|
"\aneed_ai\x18\x03 \x01(\bR\x06needAi\x127\n" +
|
|
"\adetails\x18\x04 \x01(\v2\x1d.api.customer.v1.OrderDetailsR\adetails\"a\n" +
|
|
"\fOrderDetails\x12\x18\n" +
|
|
"\aproduct\x18\x01 \x01(\tR\aproduct\x12\x16\n" +
|
|
"\x06amount\x18\x02 \x01(\x01R\x06amount\x12\x1f\n" +
|
|
"\vcreate_time\x18\x03 \x01(\tR\n" +
|
|
"createTime\"b\n" +
|
|
"\x11StreamChatRequest\x12\x18\n" +
|
|
"\amessage\x18\x01 \x01(\tR\amessage\x12\x1d\n" +
|
|
"\n" +
|
|
"session_id\x18\x02 \x01(\tR\tsessionId\x12\x14\n" +
|
|
"\x05model\x18\x03 \x01(\tR\x05model\"\xb0\x01\n" +
|
|
"\x12StreamChatResponse\x12\x1d\n" +
|
|
"\n" +
|
|
"session_id\x18\x01 \x01(\tR\tsessionId\x12\x1c\n" +
|
|
"\ttimestamp\x18\x02 \x01(\tR\ttimestamp\x12\x12\n" +
|
|
"\x04type\x18\x03 \x01(\tR\x04type\x12\x18\n" +
|
|
"\acontent\x18\x04 \x01(\tR\acontent\x12\x19\n" +
|
|
"\bis_final\x18\x05 \x01(\bR\aisFinal\x12\x14\n" +
|
|
"\x05error\x18\x06 \x01(\tR\x05error\"D\n" +
|
|
"\x16SearchKnowledgeRequest\x12\x14\n" +
|
|
"\x05query\x18\x01 \x01(\tR\x05query\x12\x14\n" +
|
|
"\x05limit\x18\x02 \x01(\x05R\x05limit\"q\n" +
|
|
"\x17SearchKnowledgeResponse\x12@\n" +
|
|
"\aresults\x18\x01 \x03(\v2&.api.customer.v1.KnowledgeSearchResultR\aresults\x12\x14\n" +
|
|
"\x05total\x18\x02 \x01(\x05R\x05total\"\xfc\x01\n" +
|
|
"\x15KnowledgeSearchResult\x12\x0e\n" +
|
|
"\x02id\x18\x01 \x01(\tR\x02id\x12\x14\n" +
|
|
"\x05title\x18\x02 \x01(\tR\x05title\x12\x18\n" +
|
|
"\acontent\x18\x03 \x01(\tR\acontent\x12\x14\n" +
|
|
"\x05score\x18\x04 \x01(\x02R\x05score\x12P\n" +
|
|
"\bmetadata\x18\x05 \x03(\v24.api.customer.v1.KnowledgeSearchResult.MetadataEntryR\bmetadata\x1a;\n" +
|
|
"\rMetadataEntry\x12\x10\n" +
|
|
"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
|
|
"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"8\n" +
|
|
"\x1aGetKnowledgeSummaryRequest\x12\x1a\n" +
|
|
"\bcategory\x18\x01 \x01(\tR\bcategory\"\x9d\x01\n" +
|
|
"\x1bGetKnowledgeSummaryResponse\x12\x1a\n" +
|
|
"\bcategory\x18\x01 \x01(\tR\bcategory\x12\x18\n" +
|
|
"\asummary\x18\x02 \x01(\tR\asummary\x12%\n" +
|
|
"\x0edocument_count\x18\x03 \x01(\x05R\rdocumentCount\x12!\n" +
|
|
"\flast_updated\x18\x04 \x01(\tR\vlastUpdated2\xe3\n" +
|
|
"\n" +
|
|
"\x0fCustomerService\x12w\n" +
|
|
"\fSystemStatus\x12$.api.customer.v1.SystemStatusRequest\x1a%.api.customer.v1.SystemStatusResponse\"\x1a\x82\xd3\xe4\x93\x02\x14\x12\x12/api/system/status\x12Y\n" +
|
|
"\x04Chat\x12\x1c.api.customer.v1.ChatRequest\x1a\x1d.api.customer.v1.ChatResponse\"\x14\x82\xd3\xe4\x93\x02\x0e:\x01*\"\t/api/chat\x12o\n" +
|
|
"\vGetSessions\x12#.api.customer.v1.GetSessionsRequest\x1a$.api.customer.v1.GetSessionsResponse\"\x15\x82\xd3\xe4\x93\x02\x0f\x12\r/api/sessions\x12x\n" +
|
|
"\rCreateSession\x12%.api.customer.v1.CreateSessionRequest\x1a&.api.customer.v1.CreateSessionResponse\"\x18\x82\xd3\xe4\x93\x02\x12:\x01*\"\r/api/sessions\x12\x86\x01\n" +
|
|
"\x0fUploadKnowledge\x12'.api.customer.v1.UploadKnowledgeRequest\x1a(.api.customer.v1.UploadKnowledgeResponse\" \x82\xd3\xe4\x93\x02\x1a:\x01*\"\x15/api/knowledge/upload\x12{\n" +
|
|
"\rListKnowledge\x12%.api.customer.v1.ListKnowledgeRequest\x1a&.api.customer.v1.ListKnowledgeResponse\"\x1b\x82\xd3\xe4\x93\x02\x15\x12\x13/api/knowledge/list\x12\x81\x01\n" +
|
|
"\x0fDeleteKnowledge\x12'.api.customer.v1.DeleteKnowledgeRequest\x1a(.api.customer.v1.DeleteKnowledgeResponse\"\x1b\x82\xd3\xe4\x93\x02\x15*\x13/api/knowledge/{id}\x12\x86\x01\n" +
|
|
"\x0fSearchKnowledge\x12'.api.customer.v1.SearchKnowledgeRequest\x1a(.api.customer.v1.SearchKnowledgeResponse\" \x82\xd3\xe4\x93\x02\x1a:\x01*\"\x15/api/knowledge/search\x12\x93\x01\n" +
|
|
"\x13GetKnowledgeSummary\x12+.api.customer.v1.GetKnowledgeSummaryRequest\x1a,.api.customer.v1.GetKnowledgeSummaryResponse\"!\x82\xd3\xe4\x93\x02\x1b:\x01*\"\x16/api/knowledge/summary\x12r\n" +
|
|
"\n" +
|
|
"QueryOrder\x12\".api.customer.v1.QueryOrderRequest\x1a#.api.customer.v1.QueryOrderResponse\"\x1b\x82\xd3\xe4\x93\x02\x15:\x01*\"\x10/api/order/query\x12t\n" +
|
|
"\n" +
|
|
"StreamChat\x12\".api.customer.v1.StreamChatRequest\x1a#.api.customer.v1.StreamChatResponse\"\x1b\x82\xd3\xe4\x93\x02\x15:\x01*\"\x10/api/chat/stream0\x01B!Z\x1feino-project/api/customer/v1;v1b\x06proto3"
|
|
|
|
var (
|
|
file_customer_v1_customer_proto_rawDescOnce sync.Once
|
|
file_customer_v1_customer_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_customer_v1_customer_proto_rawDescGZIP() []byte {
|
|
file_customer_v1_customer_proto_rawDescOnce.Do(func() {
|
|
file_customer_v1_customer_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_customer_v1_customer_proto_rawDesc), len(file_customer_v1_customer_proto_rawDesc)))
|
|
})
|
|
return file_customer_v1_customer_proto_rawDescData
|
|
}
|
|
|
|
var file_customer_v1_customer_proto_msgTypes = make([]protoimpl.MessageInfo, 31)
|
|
var file_customer_v1_customer_proto_goTypes = []any{
|
|
(*SystemStatusRequest)(nil), // 0: api.customer.v1.SystemStatusRequest
|
|
(*SystemStatusResponse)(nil), // 1: api.customer.v1.SystemStatusResponse
|
|
(*ServiceStatus)(nil), // 2: api.customer.v1.ServiceStatus
|
|
(*ChatRequest)(nil), // 3: api.customer.v1.ChatRequest
|
|
(*ChatResponse)(nil), // 4: api.customer.v1.ChatResponse
|
|
(*ChatPayload)(nil), // 5: api.customer.v1.ChatPayload
|
|
(*ChatContent)(nil), // 6: api.customer.v1.ChatContent
|
|
(*GetSessionsRequest)(nil), // 7: api.customer.v1.GetSessionsRequest
|
|
(*GetSessionsResponse)(nil), // 8: api.customer.v1.GetSessionsResponse
|
|
(*Session)(nil), // 9: api.customer.v1.Session
|
|
(*CreateSessionRequest)(nil), // 10: api.customer.v1.CreateSessionRequest
|
|
(*CreateSessionResponse)(nil), // 11: api.customer.v1.CreateSessionResponse
|
|
(*UploadKnowledgeRequest)(nil), // 12: api.customer.v1.UploadKnowledgeRequest
|
|
(*UploadKnowledgeResponse)(nil), // 13: api.customer.v1.UploadKnowledgeResponse
|
|
(*ListKnowledgeRequest)(nil), // 14: api.customer.v1.ListKnowledgeRequest
|
|
(*ListKnowledgeResponse)(nil), // 15: api.customer.v1.ListKnowledgeResponse
|
|
(*KnowledgeDocument)(nil), // 16: api.customer.v1.KnowledgeDocument
|
|
(*DeleteKnowledgeRequest)(nil), // 17: api.customer.v1.DeleteKnowledgeRequest
|
|
(*DeleteKnowledgeResponse)(nil), // 18: api.customer.v1.DeleteKnowledgeResponse
|
|
(*QueryOrderRequest)(nil), // 19: api.customer.v1.QueryOrderRequest
|
|
(*QueryOrderResponse)(nil), // 20: api.customer.v1.QueryOrderResponse
|
|
(*OrderDetails)(nil), // 21: api.customer.v1.OrderDetails
|
|
(*StreamChatRequest)(nil), // 22: api.customer.v1.StreamChatRequest
|
|
(*StreamChatResponse)(nil), // 23: api.customer.v1.StreamChatResponse
|
|
(*SearchKnowledgeRequest)(nil), // 24: api.customer.v1.SearchKnowledgeRequest
|
|
(*SearchKnowledgeResponse)(nil), // 25: api.customer.v1.SearchKnowledgeResponse
|
|
(*KnowledgeSearchResult)(nil), // 26: api.customer.v1.KnowledgeSearchResult
|
|
(*GetKnowledgeSummaryRequest)(nil), // 27: api.customer.v1.GetKnowledgeSummaryRequest
|
|
(*GetKnowledgeSummaryResponse)(nil), // 28: api.customer.v1.GetKnowledgeSummaryResponse
|
|
nil, // 29: api.customer.v1.SystemStatusResponse.ServicesEntry
|
|
nil, // 30: api.customer.v1.KnowledgeSearchResult.MetadataEntry
|
|
}
|
|
var file_customer_v1_customer_proto_depIdxs = []int32{
|
|
29, // 0: api.customer.v1.SystemStatusResponse.services:type_name -> api.customer.v1.SystemStatusResponse.ServicesEntry
|
|
5, // 1: api.customer.v1.ChatResponse.payload:type_name -> api.customer.v1.ChatPayload
|
|
6, // 2: api.customer.v1.ChatPayload.content:type_name -> api.customer.v1.ChatContent
|
|
9, // 3: api.customer.v1.GetSessionsResponse.sessions:type_name -> api.customer.v1.Session
|
|
16, // 4: api.customer.v1.ListKnowledgeResponse.documents:type_name -> api.customer.v1.KnowledgeDocument
|
|
21, // 5: api.customer.v1.QueryOrderResponse.details:type_name -> api.customer.v1.OrderDetails
|
|
26, // 6: api.customer.v1.SearchKnowledgeResponse.results:type_name -> api.customer.v1.KnowledgeSearchResult
|
|
30, // 7: api.customer.v1.KnowledgeSearchResult.metadata:type_name -> api.customer.v1.KnowledgeSearchResult.MetadataEntry
|
|
2, // 8: api.customer.v1.SystemStatusResponse.ServicesEntry.value:type_name -> api.customer.v1.ServiceStatus
|
|
0, // 9: api.customer.v1.CustomerService.SystemStatus:input_type -> api.customer.v1.SystemStatusRequest
|
|
3, // 10: api.customer.v1.CustomerService.Chat:input_type -> api.customer.v1.ChatRequest
|
|
7, // 11: api.customer.v1.CustomerService.GetSessions:input_type -> api.customer.v1.GetSessionsRequest
|
|
10, // 12: api.customer.v1.CustomerService.CreateSession:input_type -> api.customer.v1.CreateSessionRequest
|
|
12, // 13: api.customer.v1.CustomerService.UploadKnowledge:input_type -> api.customer.v1.UploadKnowledgeRequest
|
|
14, // 14: api.customer.v1.CustomerService.ListKnowledge:input_type -> api.customer.v1.ListKnowledgeRequest
|
|
17, // 15: api.customer.v1.CustomerService.DeleteKnowledge:input_type -> api.customer.v1.DeleteKnowledgeRequest
|
|
24, // 16: api.customer.v1.CustomerService.SearchKnowledge:input_type -> api.customer.v1.SearchKnowledgeRequest
|
|
27, // 17: api.customer.v1.CustomerService.GetKnowledgeSummary:input_type -> api.customer.v1.GetKnowledgeSummaryRequest
|
|
19, // 18: api.customer.v1.CustomerService.QueryOrder:input_type -> api.customer.v1.QueryOrderRequest
|
|
22, // 19: api.customer.v1.CustomerService.StreamChat:input_type -> api.customer.v1.StreamChatRequest
|
|
1, // 20: api.customer.v1.CustomerService.SystemStatus:output_type -> api.customer.v1.SystemStatusResponse
|
|
4, // 21: api.customer.v1.CustomerService.Chat:output_type -> api.customer.v1.ChatResponse
|
|
8, // 22: api.customer.v1.CustomerService.GetSessions:output_type -> api.customer.v1.GetSessionsResponse
|
|
11, // 23: api.customer.v1.CustomerService.CreateSession:output_type -> api.customer.v1.CreateSessionResponse
|
|
13, // 24: api.customer.v1.CustomerService.UploadKnowledge:output_type -> api.customer.v1.UploadKnowledgeResponse
|
|
15, // 25: api.customer.v1.CustomerService.ListKnowledge:output_type -> api.customer.v1.ListKnowledgeResponse
|
|
18, // 26: api.customer.v1.CustomerService.DeleteKnowledge:output_type -> api.customer.v1.DeleteKnowledgeResponse
|
|
25, // 27: api.customer.v1.CustomerService.SearchKnowledge:output_type -> api.customer.v1.SearchKnowledgeResponse
|
|
28, // 28: api.customer.v1.CustomerService.GetKnowledgeSummary:output_type -> api.customer.v1.GetKnowledgeSummaryResponse
|
|
20, // 29: api.customer.v1.CustomerService.QueryOrder:output_type -> api.customer.v1.QueryOrderResponse
|
|
23, // 30: api.customer.v1.CustomerService.StreamChat:output_type -> api.customer.v1.StreamChatResponse
|
|
20, // [20:31] is the sub-list for method output_type
|
|
9, // [9:20] is the sub-list for method input_type
|
|
9, // [9:9] is the sub-list for extension type_name
|
|
9, // [9:9] is the sub-list for extension extendee
|
|
0, // [0:9] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_customer_v1_customer_proto_init() }
|
|
func file_customer_v1_customer_proto_init() {
|
|
if File_customer_v1_customer_proto != nil {
|
|
return
|
|
}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_customer_v1_customer_proto_rawDesc), len(file_customer_v1_customer_proto_rawDesc)),
|
|
NumEnums: 0,
|
|
NumMessages: 31,
|
|
NumExtensions: 0,
|
|
NumServices: 1,
|
|
},
|
|
GoTypes: file_customer_v1_customer_proto_goTypes,
|
|
DependencyIndexes: file_customer_v1_customer_proto_depIdxs,
|
|
MessageInfos: file_customer_v1_customer_proto_msgTypes,
|
|
}.Build()
|
|
File_customer_v1_customer_proto = out.File
|
|
file_customer_v1_customer_proto_goTypes = nil
|
|
file_customer_v1_customer_proto_depIdxs = nil
|
|
}
|