v1

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2026 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Ticket_UpdateTicketStatus_FullMethodName = "/api.admin.ticket.v1.Ticket/UpdateTicketStatus"
	Ticket_GetTicket_FullMethodName          = "/api.admin.ticket.v1.Ticket/GetTicket"
	Ticket_CreateTicketFollow_FullMethodName = "/api.admin.ticket.v1.Ticket/CreateTicketFollow"
	Ticket_GetTicketList_FullMethodName      = "/api.admin.ticket.v1.Ticket/GetTicketList"
)
View Source
const OperationTicketCreateTicketFollow = "/api.admin.ticket.v1.Ticket/CreateTicketFollow"
View Source
const OperationTicketGetTicket = "/api.admin.ticket.v1.Ticket/GetTicket"
View Source
const OperationTicketGetTicketList = "/api.admin.ticket.v1.Ticket/GetTicketList"
View Source
const OperationTicketUpdateTicketStatus = "/api.admin.ticket.v1.Ticket/UpdateTicketStatus"

Variables

View Source
var File_admin_ticket_v1_ticket_proto protoreflect.FileDescriptor
View Source
var Ticket_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "api.admin.ticket.v1.Ticket",
	HandlerType: (*TicketServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "UpdateTicketStatus",
			Handler:    _Ticket_UpdateTicketStatus_Handler,
		},
		{
			MethodName: "GetTicket",
			Handler:    _Ticket_GetTicket_Handler,
		},
		{
			MethodName: "CreateTicketFollow",
			Handler:    _Ticket_CreateTicketFollow_Handler,
		},
		{
			MethodName: "GetTicketList",
			Handler:    _Ticket_GetTicketList_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "admin/ticket/v1/ticket.proto",
}

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

Functions

func RegisterTicketHTTPServer

func RegisterTicketHTTPServer(s *http.Server, srv TicketHTTPServer)

func RegisterTicketServer

func RegisterTicketServer(s grpc.ServiceRegistrar, srv TicketServer)

Types

type CreateTicketFollowReply

type CreateTicketFollowReply struct {
	Code    int32  `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`      // 状态码
	Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // 消息内容
	// contains filtered or unexported fields
}

CreateTicketFollowReply 创建工单跟进响应

func (*CreateTicketFollowReply) Descriptor deprecated

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

Deprecated: Use CreateTicketFollowReply.ProtoReflect.Descriptor instead.

func (*CreateTicketFollowReply) GetCode

func (x *CreateTicketFollowReply) GetCode() int32

func (*CreateTicketFollowReply) GetMessage

func (x *CreateTicketFollowReply) GetMessage() string

func (*CreateTicketFollowReply) ProtoMessage

func (*CreateTicketFollowReply) ProtoMessage()

func (*CreateTicketFollowReply) ProtoReflect

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

func (*CreateTicketFollowReply) Reset

func (x *CreateTicketFollowReply) Reset()

func (*CreateTicketFollowReply) String

func (x *CreateTicketFollowReply) String() string

func (*CreateTicketFollowReply) Validate

func (m *CreateTicketFollowReply) Validate() error

Validate checks the field values on CreateTicketFollowReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*CreateTicketFollowReply) ValidateAll

func (m *CreateTicketFollowReply) ValidateAll() error

ValidateAll checks the field values on CreateTicketFollowReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CreateTicketFollowReplyMultiError, or nil if none found.

type CreateTicketFollowReplyMultiError

type CreateTicketFollowReplyMultiError []error

CreateTicketFollowReplyMultiError is an error wrapping multiple validation errors returned by CreateTicketFollowReply.ValidateAll() if the designated constraints aren't met.

func (CreateTicketFollowReplyMultiError) AllErrors

func (m CreateTicketFollowReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateTicketFollowReplyMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type CreateTicketFollowReplyValidationError

type CreateTicketFollowReplyValidationError struct {
	// contains filtered or unexported fields
}

CreateTicketFollowReplyValidationError is the validation error returned by CreateTicketFollowReply.Validate if the designated constraints aren't met.

func (CreateTicketFollowReplyValidationError) Cause

Cause function returns cause value.

func (CreateTicketFollowReplyValidationError) Error

Error satisfies the builtin error interface

func (CreateTicketFollowReplyValidationError) ErrorName

ErrorName returns error name.

func (CreateTicketFollowReplyValidationError) Field

Field function returns field value.

func (CreateTicketFollowReplyValidationError) Key

Key function returns key value.

func (CreateTicketFollowReplyValidationError) Reason

Reason function returns reason value.

type CreateTicketFollowRequest

type CreateTicketFollowRequest struct {
	TicketId int64  `protobuf:"varint,1,opt,name=ticket_id,json=ticketId,proto3" json:"ticket_id,omitempty"` // 工单ID
	From     string `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"`                          // 来源/操作人
	Type     int32  `protobuf:"varint,3,opt,name=type,proto3" json:"type,omitempty"`                         // 类型: 1=文本, 2=图片
	Content  string `protobuf:"bytes,4,opt,name=content,proto3" json:"content,omitempty"`                    // 跟进内容
	// contains filtered or unexported fields
}

CreateTicketFollowRequest 创建工单跟进请求

func (*CreateTicketFollowRequest) Descriptor deprecated

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

Deprecated: Use CreateTicketFollowRequest.ProtoReflect.Descriptor instead.

func (*CreateTicketFollowRequest) GetContent

func (x *CreateTicketFollowRequest) GetContent() string

func (*CreateTicketFollowRequest) GetFrom

func (x *CreateTicketFollowRequest) GetFrom() string

func (*CreateTicketFollowRequest) GetTicketId

func (x *CreateTicketFollowRequest) GetTicketId() int64

func (*CreateTicketFollowRequest) GetType

func (x *CreateTicketFollowRequest) GetType() int32

func (*CreateTicketFollowRequest) ProtoMessage

func (*CreateTicketFollowRequest) ProtoMessage()

func (*CreateTicketFollowRequest) ProtoReflect

func (*CreateTicketFollowRequest) Reset

func (x *CreateTicketFollowRequest) Reset()

func (*CreateTicketFollowRequest) String

func (x *CreateTicketFollowRequest) String() string

func (*CreateTicketFollowRequest) Validate

func (m *CreateTicketFollowRequest) Validate() error

Validate checks the field values on CreateTicketFollowRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*CreateTicketFollowRequest) ValidateAll

func (m *CreateTicketFollowRequest) ValidateAll() error

ValidateAll checks the field values on CreateTicketFollowRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CreateTicketFollowRequestMultiError, or nil if none found.

type CreateTicketFollowRequestMultiError

type CreateTicketFollowRequestMultiError []error

CreateTicketFollowRequestMultiError is an error wrapping multiple validation errors returned by CreateTicketFollowRequest.ValidateAll() if the designated constraints aren't met.

func (CreateTicketFollowRequestMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (CreateTicketFollowRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type CreateTicketFollowRequestValidationError

type CreateTicketFollowRequestValidationError struct {
	// contains filtered or unexported fields
}

CreateTicketFollowRequestValidationError is the validation error returned by CreateTicketFollowRequest.Validate if the designated constraints aren't met.

func (CreateTicketFollowRequestValidationError) Cause

Cause function returns cause value.

func (CreateTicketFollowRequestValidationError) Error

Error satisfies the builtin error interface

func (CreateTicketFollowRequestValidationError) ErrorName

ErrorName returns error name.

func (CreateTicketFollowRequestValidationError) Field

Field function returns field value.

func (CreateTicketFollowRequestValidationError) Key

Key function returns key value.

func (CreateTicketFollowRequestValidationError) Reason

Reason function returns reason value.

type GetTicketListData

type GetTicketListData struct {
	Total int32         `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"` // 总数
	List  []*TicketInfo `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"`    // 工单列表
	// contains filtered or unexported fields
}

GetTicketListData 工单列表数据

func (*GetTicketListData) Descriptor deprecated

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

Deprecated: Use GetTicketListData.ProtoReflect.Descriptor instead.

func (*GetTicketListData) GetList

func (x *GetTicketListData) GetList() []*TicketInfo

func (*GetTicketListData) GetTotal

func (x *GetTicketListData) GetTotal() int32

func (*GetTicketListData) ProtoMessage

func (*GetTicketListData) ProtoMessage()

func (*GetTicketListData) ProtoReflect

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

func (*GetTicketListData) Reset

func (x *GetTicketListData) Reset()

func (*GetTicketListData) String

func (x *GetTicketListData) String() string

func (*GetTicketListData) Validate

func (m *GetTicketListData) Validate() error

Validate checks the field values on GetTicketListData with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetTicketListData) ValidateAll

func (m *GetTicketListData) ValidateAll() error

ValidateAll checks the field values on GetTicketListData with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetTicketListDataMultiError, or nil if none found.

type GetTicketListDataMultiError

type GetTicketListDataMultiError []error

GetTicketListDataMultiError is an error wrapping multiple validation errors returned by GetTicketListData.ValidateAll() if the designated constraints aren't met.

func (GetTicketListDataMultiError) AllErrors

func (m GetTicketListDataMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetTicketListDataMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type GetTicketListDataValidationError

type GetTicketListDataValidationError struct {
	// contains filtered or unexported fields
}

GetTicketListDataValidationError is the validation error returned by GetTicketListData.Validate if the designated constraints aren't met.

func (GetTicketListDataValidationError) Cause

Cause function returns cause value.

func (GetTicketListDataValidationError) Error

Error satisfies the builtin error interface

func (GetTicketListDataValidationError) ErrorName

ErrorName returns error name.

func (GetTicketListDataValidationError) Field

Field function returns field value.

func (GetTicketListDataValidationError) Key

Key function returns key value.

func (GetTicketListDataValidationError) Reason

Reason function returns reason value.

type GetTicketListReply

type GetTicketListReply struct {
	Code    int32              `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`      // 状态码
	Message string             `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // 消息内容
	Data    *GetTicketListData `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`       // 响应数据
	// contains filtered or unexported fields
}

GetTicketListReply 获取工单列表响应

func (*GetTicketListReply) Descriptor deprecated

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

Deprecated: Use GetTicketListReply.ProtoReflect.Descriptor instead.

func (*GetTicketListReply) GetCode

func (x *GetTicketListReply) GetCode() int32

func (*GetTicketListReply) GetData

func (x *GetTicketListReply) GetData() *GetTicketListData

func (*GetTicketListReply) GetMessage

func (x *GetTicketListReply) GetMessage() string

func (*GetTicketListReply) ProtoMessage

func (*GetTicketListReply) ProtoMessage()

func (*GetTicketListReply) ProtoReflect

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

func (*GetTicketListReply) Reset

func (x *GetTicketListReply) Reset()

func (*GetTicketListReply) String

func (x *GetTicketListReply) String() string

func (*GetTicketListReply) Validate

func (m *GetTicketListReply) Validate() error

Validate checks the field values on GetTicketListReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetTicketListReply) ValidateAll

func (m *GetTicketListReply) ValidateAll() error

ValidateAll checks the field values on GetTicketListReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetTicketListReplyMultiError, or nil if none found.

type GetTicketListReplyMultiError

type GetTicketListReplyMultiError []error

GetTicketListReplyMultiError is an error wrapping multiple validation errors returned by GetTicketListReply.ValidateAll() if the designated constraints aren't met.

func (GetTicketListReplyMultiError) AllErrors

func (m GetTicketListReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetTicketListReplyMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type GetTicketListReplyValidationError

type GetTicketListReplyValidationError struct {
	// contains filtered or unexported fields
}

GetTicketListReplyValidationError is the validation error returned by GetTicketListReply.Validate if the designated constraints aren't met.

func (GetTicketListReplyValidationError) Cause

Cause function returns cause value.

func (GetTicketListReplyValidationError) Error

Error satisfies the builtin error interface

func (GetTicketListReplyValidationError) ErrorName

ErrorName returns error name.

func (GetTicketListReplyValidationError) Field

Field function returns field value.

func (GetTicketListReplyValidationError) Key

Key function returns key value.

func (GetTicketListReplyValidationError) Reason

Reason function returns reason value.

type GetTicketListRequest

type GetTicketListRequest struct {
	Page   int64  `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"`                   // 页码
	Size   int64  `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"`                   // 每页数量
	UserId int64  `protobuf:"varint,3,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // 用户ID (可选)
	Status int32  `protobuf:"varint,4,opt,name=status,proto3" json:"status,omitempty"`               // 状态 (可选)
	Search string `protobuf:"bytes,5,opt,name=search,proto3" json:"search,omitempty"`                // 搜索关键词 (可选)
	// contains filtered or unexported fields
}

GetTicketListRequest 获取工单列表请求

func (*GetTicketListRequest) Descriptor deprecated

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

Deprecated: Use GetTicketListRequest.ProtoReflect.Descriptor instead.

func (*GetTicketListRequest) GetPage

func (x *GetTicketListRequest) GetPage() int64

func (*GetTicketListRequest) GetSearch

func (x *GetTicketListRequest) GetSearch() string

func (*GetTicketListRequest) GetSize

func (x *GetTicketListRequest) GetSize() int64

func (*GetTicketListRequest) GetStatus

func (x *GetTicketListRequest) GetStatus() int32

func (*GetTicketListRequest) GetUserId

func (x *GetTicketListRequest) GetUserId() int64

func (*GetTicketListRequest) ProtoMessage

func (*GetTicketListRequest) ProtoMessage()

func (*GetTicketListRequest) ProtoReflect

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

func (*GetTicketListRequest) Reset

func (x *GetTicketListRequest) Reset()

func (*GetTicketListRequest) String

func (x *GetTicketListRequest) String() string

func (*GetTicketListRequest) Validate

func (m *GetTicketListRequest) Validate() error

Validate checks the field values on GetTicketListRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetTicketListRequest) ValidateAll

func (m *GetTicketListRequest) ValidateAll() error

ValidateAll checks the field values on GetTicketListRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetTicketListRequestMultiError, or nil if none found.

type GetTicketListRequestMultiError

type GetTicketListRequestMultiError []error

GetTicketListRequestMultiError is an error wrapping multiple validation errors returned by GetTicketListRequest.ValidateAll() if the designated constraints aren't met.

func (GetTicketListRequestMultiError) AllErrors

func (m GetTicketListRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetTicketListRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type GetTicketListRequestValidationError

type GetTicketListRequestValidationError struct {
	// contains filtered or unexported fields
}

GetTicketListRequestValidationError is the validation error returned by GetTicketListRequest.Validate if the designated constraints aren't met.

func (GetTicketListRequestValidationError) Cause

Cause function returns cause value.

func (GetTicketListRequestValidationError) Error

Error satisfies the builtin error interface

func (GetTicketListRequestValidationError) ErrorName

ErrorName returns error name.

func (GetTicketListRequestValidationError) Field

Field function returns field value.

func (GetTicketListRequestValidationError) Key

Key function returns key value.

func (GetTicketListRequestValidationError) Reason

Reason function returns reason value.

type GetTicketReply

type GetTicketReply struct {
	Code    int32       `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`      // 状态码
	Message string      `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // 消息内容
	Data    *TicketInfo `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`       // 响应数据
	// contains filtered or unexported fields
}

GetTicketReply 获取工单详情响应

func (*GetTicketReply) Descriptor deprecated

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

Deprecated: Use GetTicketReply.ProtoReflect.Descriptor instead.

func (*GetTicketReply) GetCode

func (x *GetTicketReply) GetCode() int32

func (*GetTicketReply) GetData

func (x *GetTicketReply) GetData() *TicketInfo

func (*GetTicketReply) GetMessage

func (x *GetTicketReply) GetMessage() string

func (*GetTicketReply) ProtoMessage

func (*GetTicketReply) ProtoMessage()

func (*GetTicketReply) ProtoReflect

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

func (*GetTicketReply) Reset

func (x *GetTicketReply) Reset()

func (*GetTicketReply) String

func (x *GetTicketReply) String() string

func (*GetTicketReply) Validate

func (m *GetTicketReply) Validate() error

Validate checks the field values on GetTicketReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetTicketReply) ValidateAll

func (m *GetTicketReply) ValidateAll() error

ValidateAll checks the field values on GetTicketReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetTicketReplyMultiError, or nil if none found.

type GetTicketReplyMultiError

type GetTicketReplyMultiError []error

GetTicketReplyMultiError is an error wrapping multiple validation errors returned by GetTicketReply.ValidateAll() if the designated constraints aren't met.

func (GetTicketReplyMultiError) AllErrors

func (m GetTicketReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetTicketReplyMultiError) Error

func (m GetTicketReplyMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type GetTicketReplyValidationError

type GetTicketReplyValidationError struct {
	// contains filtered or unexported fields
}

GetTicketReplyValidationError is the validation error returned by GetTicketReply.Validate if the designated constraints aren't met.

func (GetTicketReplyValidationError) Cause

Cause function returns cause value.

func (GetTicketReplyValidationError) Error

Error satisfies the builtin error interface

func (GetTicketReplyValidationError) ErrorName

func (e GetTicketReplyValidationError) ErrorName() string

ErrorName returns error name.

func (GetTicketReplyValidationError) Field

Field function returns field value.

func (GetTicketReplyValidationError) Key

Key function returns key value.

func (GetTicketReplyValidationError) Reason

Reason function returns reason value.

type GetTicketRequest

type GetTicketRequest struct {
	Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 工单ID
	// contains filtered or unexported fields
}

GetTicketRequest 获取工单详情请求

func (*GetTicketRequest) Descriptor deprecated

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

Deprecated: Use GetTicketRequest.ProtoReflect.Descriptor instead.

func (*GetTicketRequest) GetId

func (x *GetTicketRequest) GetId() int64

func (*GetTicketRequest) ProtoMessage

func (*GetTicketRequest) ProtoMessage()

func (*GetTicketRequest) ProtoReflect

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

func (*GetTicketRequest) Reset

func (x *GetTicketRequest) Reset()

func (*GetTicketRequest) String

func (x *GetTicketRequest) String() string

func (*GetTicketRequest) Validate

func (m *GetTicketRequest) Validate() error

Validate checks the field values on GetTicketRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetTicketRequest) ValidateAll

func (m *GetTicketRequest) ValidateAll() error

ValidateAll checks the field values on GetTicketRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetTicketRequestMultiError, or nil if none found.

type GetTicketRequestMultiError

type GetTicketRequestMultiError []error

GetTicketRequestMultiError is an error wrapping multiple validation errors returned by GetTicketRequest.ValidateAll() if the designated constraints aren't met.

func (GetTicketRequestMultiError) AllErrors

func (m GetTicketRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetTicketRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type GetTicketRequestValidationError

type GetTicketRequestValidationError struct {
	// contains filtered or unexported fields
}

GetTicketRequestValidationError is the validation error returned by GetTicketRequest.Validate if the designated constraints aren't met.

func (GetTicketRequestValidationError) Cause

Cause function returns cause value.

func (GetTicketRequestValidationError) Error

Error satisfies the builtin error interface

func (GetTicketRequestValidationError) ErrorName

ErrorName returns error name.

func (GetTicketRequestValidationError) Field

Field function returns field value.

func (GetTicketRequestValidationError) Key

Key function returns key value.

func (GetTicketRequestValidationError) Reason

Reason function returns reason value.

type TicketClient

type TicketClient interface {
	// UpdateTicketStatus 更新工单状态
	UpdateTicketStatus(ctx context.Context, in *UpdateTicketStatusRequest, opts ...grpc.CallOption) (*UpdateTicketStatusReply, error)
	// GetTicket 获取工单详情
	GetTicket(ctx context.Context, in *GetTicketRequest, opts ...grpc.CallOption) (*GetTicketReply, error)
	// CreateTicketFollow 创建工单跟进
	CreateTicketFollow(ctx context.Context, in *CreateTicketFollowRequest, opts ...grpc.CallOption) (*CreateTicketFollowReply, error)
	// GetTicketList 获取工单列表
	GetTicketList(ctx context.Context, in *GetTicketListRequest, opts ...grpc.CallOption) (*GetTicketListReply, error)
}

TicketClient is the client API for Ticket 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 NewTicketClient

func NewTicketClient(cc grpc.ClientConnInterface) TicketClient

type TicketFollow

type TicketFollow struct {
	Id        int64  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`                                // 跟进ID
	TicketId  int64  `protobuf:"varint,2,opt,name=ticket_id,json=ticketId,proto3" json:"ticket_id,omitempty"`    // 工单ID
	From      string `protobuf:"bytes,3,opt,name=from,proto3" json:"from,omitempty"`                             // 来源/操作人
	Type      int32  `protobuf:"varint,4,opt,name=type,proto3" json:"type,omitempty"`                            // 类型: 1=文本, 2=图片
	Content   string `protobuf:"bytes,5,opt,name=content,proto3" json:"content,omitempty"`                       // 跟进内容
	CreatedAt int64  `protobuf:"varint,6,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // Unix timestamp in seconds
	// contains filtered or unexported fields
}

TicketFollow 工单跟进

func (*TicketFollow) Descriptor deprecated

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

Deprecated: Use TicketFollow.ProtoReflect.Descriptor instead.

func (*TicketFollow) GetContent

func (x *TicketFollow) GetContent() string

func (*TicketFollow) GetCreatedAt

func (x *TicketFollow) GetCreatedAt() int64

func (*TicketFollow) GetFrom

func (x *TicketFollow) GetFrom() string

func (*TicketFollow) GetId

func (x *TicketFollow) GetId() int64

func (*TicketFollow) GetTicketId

func (x *TicketFollow) GetTicketId() int64

func (*TicketFollow) GetType

func (x *TicketFollow) GetType() int32

func (*TicketFollow) ProtoMessage

func (*TicketFollow) ProtoMessage()

func (*TicketFollow) ProtoReflect

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

func (*TicketFollow) Reset

func (x *TicketFollow) Reset()

func (*TicketFollow) String

func (x *TicketFollow) String() string

func (*TicketFollow) Validate

func (m *TicketFollow) Validate() error

Validate checks the field values on TicketFollow with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*TicketFollow) ValidateAll

func (m *TicketFollow) ValidateAll() error

ValidateAll checks the field values on TicketFollow with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in TicketFollowMultiError, or nil if none found.

type TicketFollowMultiError

type TicketFollowMultiError []error

TicketFollowMultiError is an error wrapping multiple validation errors returned by TicketFollow.ValidateAll() if the designated constraints aren't met.

func (TicketFollowMultiError) AllErrors

func (m TicketFollowMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (TicketFollowMultiError) Error

func (m TicketFollowMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type TicketFollowValidationError

type TicketFollowValidationError struct {
	// contains filtered or unexported fields
}

TicketFollowValidationError is the validation error returned by TicketFollow.Validate if the designated constraints aren't met.

func (TicketFollowValidationError) Cause

Cause function returns cause value.

func (TicketFollowValidationError) Error

Error satisfies the builtin error interface

func (TicketFollowValidationError) ErrorName

func (e TicketFollowValidationError) ErrorName() string

ErrorName returns error name.

func (TicketFollowValidationError) Field

Field function returns field value.

func (TicketFollowValidationError) Key

Key function returns key value.

func (TicketFollowValidationError) Reason

Reason function returns reason value.

type TicketHTTPClient

type TicketHTTPClient interface {
	// CreateTicketFollow CreateTicketFollow 创建工单跟进
	CreateTicketFollow(ctx context.Context, req *CreateTicketFollowRequest, opts ...http.CallOption) (rsp *CreateTicketFollowReply, err error)
	// GetTicket GetTicket 获取工单详情
	GetTicket(ctx context.Context, req *GetTicketRequest, opts ...http.CallOption) (rsp *GetTicketReply, err error)
	// GetTicketList GetTicketList 获取工单列表
	GetTicketList(ctx context.Context, req *GetTicketListRequest, opts ...http.CallOption) (rsp *GetTicketListReply, err error)
	// UpdateTicketStatus UpdateTicketStatus 更新工单状态
	UpdateTicketStatus(ctx context.Context, req *UpdateTicketStatusRequest, opts ...http.CallOption) (rsp *UpdateTicketStatusReply, err error)
}

func NewTicketHTTPClient

func NewTicketHTTPClient(client *http.Client) TicketHTTPClient

type TicketHTTPClientImpl

type TicketHTTPClientImpl struct {
	// contains filtered or unexported fields
}

func (*TicketHTTPClientImpl) CreateTicketFollow

CreateTicketFollow CreateTicketFollow 创建工单跟进

func (*TicketHTTPClientImpl) GetTicket

GetTicket GetTicket 获取工单详情

func (*TicketHTTPClientImpl) GetTicketList

GetTicketList GetTicketList 获取工单列表

func (*TicketHTTPClientImpl) UpdateTicketStatus

UpdateTicketStatus UpdateTicketStatus 更新工单状态

type TicketHTTPServer

type TicketHTTPServer interface {
	// CreateTicketFollow CreateTicketFollow 创建工单跟进
	CreateTicketFollow(context.Context, *CreateTicketFollowRequest) (*CreateTicketFollowReply, error)
	// GetTicket GetTicket 获取工单详情
	GetTicket(context.Context, *GetTicketRequest) (*GetTicketReply, error)
	// GetTicketList GetTicketList 获取工单列表
	GetTicketList(context.Context, *GetTicketListRequest) (*GetTicketListReply, error)
	// UpdateTicketStatus UpdateTicketStatus 更新工单状态
	UpdateTicketStatus(context.Context, *UpdateTicketStatusRequest) (*UpdateTicketStatusReply, error)
}

type TicketInfo

type TicketInfo struct {
	Id          int64           `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`                                // 工单ID
	Title       string          `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`                           // 工单标题
	Description string          `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`               // 工单描述
	UserId      int64           `protobuf:"varint,4,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`          // 用户ID
	Follow      []*TicketFollow `protobuf:"bytes,5,rep,name=follow,proto3" json:"follow,omitempty"`                         // 工单跟进列表
	Status      int32           `protobuf:"varint,6,opt,name=status,proto3" json:"status,omitempty"`                        // 状态
	CreatedAt   int64           `protobuf:"varint,7,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // Unix timestamp in seconds
	UpdatedAt   int64           `protobuf:"varint,8,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` // Unix timestamp in seconds
	// contains filtered or unexported fields
}

TicketInfo 工单信息

func (*TicketInfo) Descriptor deprecated

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

Deprecated: Use TicketInfo.ProtoReflect.Descriptor instead.

func (*TicketInfo) GetCreatedAt

func (x *TicketInfo) GetCreatedAt() int64

func (*TicketInfo) GetDescription

func (x *TicketInfo) GetDescription() string

func (*TicketInfo) GetFollow

func (x *TicketInfo) GetFollow() []*TicketFollow

func (*TicketInfo) GetId

func (x *TicketInfo) GetId() int64

func (*TicketInfo) GetStatus

func (x *TicketInfo) GetStatus() int32

func (*TicketInfo) GetTitle

func (x *TicketInfo) GetTitle() string

func (*TicketInfo) GetUpdatedAt

func (x *TicketInfo) GetUpdatedAt() int64

func (*TicketInfo) GetUserId

func (x *TicketInfo) GetUserId() int64

func (*TicketInfo) ProtoMessage

func (*TicketInfo) ProtoMessage()

func (*TicketInfo) ProtoReflect

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

func (*TicketInfo) Reset

func (x *TicketInfo) Reset()

func (*TicketInfo) String

func (x *TicketInfo) String() string

func (*TicketInfo) Validate

func (m *TicketInfo) Validate() error

Validate checks the field values on TicketInfo with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*TicketInfo) ValidateAll

func (m *TicketInfo) ValidateAll() error

ValidateAll checks the field values on TicketInfo with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in TicketInfoMultiError, or nil if none found.

type TicketInfoMultiError

type TicketInfoMultiError []error

TicketInfoMultiError is an error wrapping multiple validation errors returned by TicketInfo.ValidateAll() if the designated constraints aren't met.

func (TicketInfoMultiError) AllErrors

func (m TicketInfoMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (TicketInfoMultiError) Error

func (m TicketInfoMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type TicketInfoValidationError

type TicketInfoValidationError struct {
	// contains filtered or unexported fields
}

TicketInfoValidationError is the validation error returned by TicketInfo.Validate if the designated constraints aren't met.

func (TicketInfoValidationError) Cause

func (e TicketInfoValidationError) Cause() error

Cause function returns cause value.

func (TicketInfoValidationError) Error

Error satisfies the builtin error interface

func (TicketInfoValidationError) ErrorName

func (e TicketInfoValidationError) ErrorName() string

ErrorName returns error name.

func (TicketInfoValidationError) Field

Field function returns field value.

func (TicketInfoValidationError) Key

Key function returns key value.

func (TicketInfoValidationError) Reason

func (e TicketInfoValidationError) Reason() string

Reason function returns reason value.

type TicketServer

type TicketServer interface {
	// UpdateTicketStatus 更新工单状态
	UpdateTicketStatus(context.Context, *UpdateTicketStatusRequest) (*UpdateTicketStatusReply, error)
	// GetTicket 获取工单详情
	GetTicket(context.Context, *GetTicketRequest) (*GetTicketReply, error)
	// CreateTicketFollow 创建工单跟进
	CreateTicketFollow(context.Context, *CreateTicketFollowRequest) (*CreateTicketFollowReply, error)
	// GetTicketList 获取工单列表
	GetTicketList(context.Context, *GetTicketListRequest) (*GetTicketListReply, error)
	// contains filtered or unexported methods
}

TicketServer is the server API for Ticket service. All implementations must embed UnimplementedTicketServer for forward compatibility.

type UnimplementedTicketServer

type UnimplementedTicketServer struct{}

UnimplementedTicketServer 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 (UnimplementedTicketServer) CreateTicketFollow

func (UnimplementedTicketServer) GetTicket

func (UnimplementedTicketServer) GetTicketList

func (UnimplementedTicketServer) UpdateTicketStatus

type UnsafeTicketServer

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

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

type UpdateTicketStatusReply

type UpdateTicketStatusReply struct {
	Code    int32  `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`      // 状态码
	Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // 消息内容
	// contains filtered or unexported fields
}

UpdateTicketStatusReply 更新工单状态响应

func (*UpdateTicketStatusReply) Descriptor deprecated

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

Deprecated: Use UpdateTicketStatusReply.ProtoReflect.Descriptor instead.

func (*UpdateTicketStatusReply) GetCode

func (x *UpdateTicketStatusReply) GetCode() int32

func (*UpdateTicketStatusReply) GetMessage

func (x *UpdateTicketStatusReply) GetMessage() string

func (*UpdateTicketStatusReply) ProtoMessage

func (*UpdateTicketStatusReply) ProtoMessage()

func (*UpdateTicketStatusReply) ProtoReflect

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

func (*UpdateTicketStatusReply) Reset

func (x *UpdateTicketStatusReply) Reset()

func (*UpdateTicketStatusReply) String

func (x *UpdateTicketStatusReply) String() string

func (*UpdateTicketStatusReply) Validate

func (m *UpdateTicketStatusReply) Validate() error

Validate checks the field values on UpdateTicketStatusReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*UpdateTicketStatusReply) ValidateAll

func (m *UpdateTicketStatusReply) ValidateAll() error

ValidateAll checks the field values on UpdateTicketStatusReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UpdateTicketStatusReplyMultiError, or nil if none found.

type UpdateTicketStatusReplyMultiError

type UpdateTicketStatusReplyMultiError []error

UpdateTicketStatusReplyMultiError is an error wrapping multiple validation errors returned by UpdateTicketStatusReply.ValidateAll() if the designated constraints aren't met.

func (UpdateTicketStatusReplyMultiError) AllErrors

func (m UpdateTicketStatusReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateTicketStatusReplyMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type UpdateTicketStatusReplyValidationError

type UpdateTicketStatusReplyValidationError struct {
	// contains filtered or unexported fields
}

UpdateTicketStatusReplyValidationError is the validation error returned by UpdateTicketStatusReply.Validate if the designated constraints aren't met.

func (UpdateTicketStatusReplyValidationError) Cause

Cause function returns cause value.

func (UpdateTicketStatusReplyValidationError) Error

Error satisfies the builtin error interface

func (UpdateTicketStatusReplyValidationError) ErrorName

ErrorName returns error name.

func (UpdateTicketStatusReplyValidationError) Field

Field function returns field value.

func (UpdateTicketStatusReplyValidationError) Key

Key function returns key value.

func (UpdateTicketStatusReplyValidationError) Reason

Reason function returns reason value.

type UpdateTicketStatusRequest

type UpdateTicketStatusRequest struct {
	Id     int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`         // 工单ID
	Status int32 `protobuf:"varint,2,opt,name=status,proto3" json:"status,omitempty"` // 状态: 1=Pending, 2=Waiting, 3=Processed, 4=Closed
	// contains filtered or unexported fields
}

UpdateTicketStatusRequest 更新工单状态请求

func (*UpdateTicketStatusRequest) Descriptor deprecated

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

Deprecated: Use UpdateTicketStatusRequest.ProtoReflect.Descriptor instead.

func (*UpdateTicketStatusRequest) GetId

func (x *UpdateTicketStatusRequest) GetId() int64

func (*UpdateTicketStatusRequest) GetStatus

func (x *UpdateTicketStatusRequest) GetStatus() int32

func (*UpdateTicketStatusRequest) ProtoMessage

func (*UpdateTicketStatusRequest) ProtoMessage()

func (*UpdateTicketStatusRequest) ProtoReflect

func (*UpdateTicketStatusRequest) Reset

func (x *UpdateTicketStatusRequest) Reset()

func (*UpdateTicketStatusRequest) String

func (x *UpdateTicketStatusRequest) String() string

func (*UpdateTicketStatusRequest) Validate

func (m *UpdateTicketStatusRequest) Validate() error

Validate checks the field values on UpdateTicketStatusRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*UpdateTicketStatusRequest) ValidateAll

func (m *UpdateTicketStatusRequest) ValidateAll() error

ValidateAll checks the field values on UpdateTicketStatusRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UpdateTicketStatusRequestMultiError, or nil if none found.

type UpdateTicketStatusRequestMultiError

type UpdateTicketStatusRequestMultiError []error

UpdateTicketStatusRequestMultiError is an error wrapping multiple validation errors returned by UpdateTicketStatusRequest.ValidateAll() if the designated constraints aren't met.

func (UpdateTicketStatusRequestMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (UpdateTicketStatusRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type UpdateTicketStatusRequestValidationError

type UpdateTicketStatusRequestValidationError struct {
	// contains filtered or unexported fields
}

UpdateTicketStatusRequestValidationError is the validation error returned by UpdateTicketStatusRequest.Validate if the designated constraints aren't met.

func (UpdateTicketStatusRequestValidationError) Cause

Cause function returns cause value.

func (UpdateTicketStatusRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdateTicketStatusRequestValidationError) ErrorName

ErrorName returns error name.

func (UpdateTicketStatusRequestValidationError) Field

Field function returns field value.

func (UpdateTicketStatusRequestValidationError) Key

Key function returns key value.

func (UpdateTicketStatusRequestValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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