Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterTicketHTTPServer(s *http.Server, srv TicketHTTPServer)
- func RegisterTicketServer(s grpc.ServiceRegistrar, srv TicketServer)
- type CreateTicketFollowReply
- func (*CreateTicketFollowReply) Descriptor() ([]byte, []int)deprecated
- func (x *CreateTicketFollowReply) GetCode() int32
- func (x *CreateTicketFollowReply) GetMessage() string
- func (*CreateTicketFollowReply) ProtoMessage()
- func (x *CreateTicketFollowReply) ProtoReflect() protoreflect.Message
- func (x *CreateTicketFollowReply) Reset()
- func (x *CreateTicketFollowReply) String() string
- func (m *CreateTicketFollowReply) Validate() error
- func (m *CreateTicketFollowReply) ValidateAll() error
- type CreateTicketFollowReplyMultiError
- type CreateTicketFollowReplyValidationError
- func (e CreateTicketFollowReplyValidationError) Cause() error
- func (e CreateTicketFollowReplyValidationError) Error() string
- func (e CreateTicketFollowReplyValidationError) ErrorName() string
- func (e CreateTicketFollowReplyValidationError) Field() string
- func (e CreateTicketFollowReplyValidationError) Key() bool
- func (e CreateTicketFollowReplyValidationError) Reason() string
- type CreateTicketFollowRequest
- func (*CreateTicketFollowRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateTicketFollowRequest) GetContent() string
- func (x *CreateTicketFollowRequest) GetFrom() string
- func (x *CreateTicketFollowRequest) GetTicketId() int64
- func (x *CreateTicketFollowRequest) GetType() int32
- func (*CreateTicketFollowRequest) ProtoMessage()
- func (x *CreateTicketFollowRequest) ProtoReflect() protoreflect.Message
- func (x *CreateTicketFollowRequest) Reset()
- func (x *CreateTicketFollowRequest) String() string
- func (m *CreateTicketFollowRequest) Validate() error
- func (m *CreateTicketFollowRequest) ValidateAll() error
- type CreateTicketFollowRequestMultiError
- type CreateTicketFollowRequestValidationError
- func (e CreateTicketFollowRequestValidationError) Cause() error
- func (e CreateTicketFollowRequestValidationError) Error() string
- func (e CreateTicketFollowRequestValidationError) ErrorName() string
- func (e CreateTicketFollowRequestValidationError) Field() string
- func (e CreateTicketFollowRequestValidationError) Key() bool
- func (e CreateTicketFollowRequestValidationError) Reason() string
- type GetTicketListData
- func (*GetTicketListData) Descriptor() ([]byte, []int)deprecated
- func (x *GetTicketListData) GetList() []*TicketInfo
- func (x *GetTicketListData) GetTotal() int32
- func (*GetTicketListData) ProtoMessage()
- func (x *GetTicketListData) ProtoReflect() protoreflect.Message
- func (x *GetTicketListData) Reset()
- func (x *GetTicketListData) String() string
- func (m *GetTicketListData) Validate() error
- func (m *GetTicketListData) ValidateAll() error
- type GetTicketListDataMultiError
- type GetTicketListDataValidationError
- func (e GetTicketListDataValidationError) Cause() error
- func (e GetTicketListDataValidationError) Error() string
- func (e GetTicketListDataValidationError) ErrorName() string
- func (e GetTicketListDataValidationError) Field() string
- func (e GetTicketListDataValidationError) Key() bool
- func (e GetTicketListDataValidationError) Reason() string
- type GetTicketListReply
- func (*GetTicketListReply) Descriptor() ([]byte, []int)deprecated
- func (x *GetTicketListReply) GetCode() int32
- func (x *GetTicketListReply) GetData() *GetTicketListData
- func (x *GetTicketListReply) GetMessage() string
- func (*GetTicketListReply) ProtoMessage()
- func (x *GetTicketListReply) ProtoReflect() protoreflect.Message
- func (x *GetTicketListReply) Reset()
- func (x *GetTicketListReply) String() string
- func (m *GetTicketListReply) Validate() error
- func (m *GetTicketListReply) ValidateAll() error
- type GetTicketListReplyMultiError
- type GetTicketListReplyValidationError
- func (e GetTicketListReplyValidationError) Cause() error
- func (e GetTicketListReplyValidationError) Error() string
- func (e GetTicketListReplyValidationError) ErrorName() string
- func (e GetTicketListReplyValidationError) Field() string
- func (e GetTicketListReplyValidationError) Key() bool
- func (e GetTicketListReplyValidationError) Reason() string
- type GetTicketListRequest
- func (*GetTicketListRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetTicketListRequest) GetPage() int64
- func (x *GetTicketListRequest) GetSearch() string
- func (x *GetTicketListRequest) GetSize() int64
- func (x *GetTicketListRequest) GetStatus() int32
- func (x *GetTicketListRequest) GetUserId() int64
- func (*GetTicketListRequest) ProtoMessage()
- func (x *GetTicketListRequest) ProtoReflect() protoreflect.Message
- func (x *GetTicketListRequest) Reset()
- func (x *GetTicketListRequest) String() string
- func (m *GetTicketListRequest) Validate() error
- func (m *GetTicketListRequest) ValidateAll() error
- type GetTicketListRequestMultiError
- type GetTicketListRequestValidationError
- func (e GetTicketListRequestValidationError) Cause() error
- func (e GetTicketListRequestValidationError) Error() string
- func (e GetTicketListRequestValidationError) ErrorName() string
- func (e GetTicketListRequestValidationError) Field() string
- func (e GetTicketListRequestValidationError) Key() bool
- func (e GetTicketListRequestValidationError) Reason() string
- type GetTicketReply
- func (*GetTicketReply) Descriptor() ([]byte, []int)deprecated
- func (x *GetTicketReply) GetCode() int32
- func (x *GetTicketReply) GetData() *TicketInfo
- func (x *GetTicketReply) GetMessage() string
- func (*GetTicketReply) ProtoMessage()
- func (x *GetTicketReply) ProtoReflect() protoreflect.Message
- func (x *GetTicketReply) Reset()
- func (x *GetTicketReply) String() string
- func (m *GetTicketReply) Validate() error
- func (m *GetTicketReply) ValidateAll() error
- type GetTicketReplyMultiError
- type GetTicketReplyValidationError
- func (e GetTicketReplyValidationError) Cause() error
- func (e GetTicketReplyValidationError) Error() string
- func (e GetTicketReplyValidationError) ErrorName() string
- func (e GetTicketReplyValidationError) Field() string
- func (e GetTicketReplyValidationError) Key() bool
- func (e GetTicketReplyValidationError) Reason() string
- type GetTicketRequest
- func (*GetTicketRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetTicketRequest) GetId() int64
- func (*GetTicketRequest) ProtoMessage()
- func (x *GetTicketRequest) ProtoReflect() protoreflect.Message
- func (x *GetTicketRequest) Reset()
- func (x *GetTicketRequest) String() string
- func (m *GetTicketRequest) Validate() error
- func (m *GetTicketRequest) ValidateAll() error
- type GetTicketRequestMultiError
- type GetTicketRequestValidationError
- func (e GetTicketRequestValidationError) Cause() error
- func (e GetTicketRequestValidationError) Error() string
- func (e GetTicketRequestValidationError) ErrorName() string
- func (e GetTicketRequestValidationError) Field() string
- func (e GetTicketRequestValidationError) Key() bool
- func (e GetTicketRequestValidationError) Reason() string
- type TicketClient
- type TicketFollow
- func (*TicketFollow) Descriptor() ([]byte, []int)deprecated
- func (x *TicketFollow) GetContent() string
- func (x *TicketFollow) GetCreatedAt() int64
- func (x *TicketFollow) GetFrom() string
- func (x *TicketFollow) GetId() int64
- func (x *TicketFollow) GetTicketId() int64
- func (x *TicketFollow) GetType() int32
- func (*TicketFollow) ProtoMessage()
- func (x *TicketFollow) ProtoReflect() protoreflect.Message
- func (x *TicketFollow) Reset()
- func (x *TicketFollow) String() string
- func (m *TicketFollow) Validate() error
- func (m *TicketFollow) ValidateAll() error
- type TicketFollowMultiError
- type TicketFollowValidationError
- func (e TicketFollowValidationError) Cause() error
- func (e TicketFollowValidationError) Error() string
- func (e TicketFollowValidationError) ErrorName() string
- func (e TicketFollowValidationError) Field() string
- func (e TicketFollowValidationError) Key() bool
- func (e TicketFollowValidationError) Reason() string
- type TicketHTTPClient
- type TicketHTTPClientImpl
- func (c *TicketHTTPClientImpl) CreateTicketFollow(ctx context.Context, in *CreateTicketFollowRequest, opts ...http.CallOption) (*CreateTicketFollowReply, error)
- func (c *TicketHTTPClientImpl) GetTicket(ctx context.Context, in *GetTicketRequest, opts ...http.CallOption) (*GetTicketReply, error)
- func (c *TicketHTTPClientImpl) GetTicketList(ctx context.Context, in *GetTicketListRequest, opts ...http.CallOption) (*GetTicketListReply, error)
- func (c *TicketHTTPClientImpl) UpdateTicketStatus(ctx context.Context, in *UpdateTicketStatusRequest, opts ...http.CallOption) (*UpdateTicketStatusReply, error)
- type TicketHTTPServer
- type TicketInfo
- func (*TicketInfo) Descriptor() ([]byte, []int)deprecated
- func (x *TicketInfo) GetCreatedAt() int64
- func (x *TicketInfo) GetDescription() string
- func (x *TicketInfo) GetFollow() []*TicketFollow
- func (x *TicketInfo) GetId() int64
- func (x *TicketInfo) GetStatus() int32
- func (x *TicketInfo) GetTitle() string
- func (x *TicketInfo) GetUpdatedAt() int64
- func (x *TicketInfo) GetUserId() int64
- func (*TicketInfo) ProtoMessage()
- func (x *TicketInfo) ProtoReflect() protoreflect.Message
- func (x *TicketInfo) Reset()
- func (x *TicketInfo) String() string
- func (m *TicketInfo) Validate() error
- func (m *TicketInfo) ValidateAll() error
- type TicketInfoMultiError
- type TicketInfoValidationError
- type TicketServer
- type UnimplementedTicketServer
- func (UnimplementedTicketServer) CreateTicketFollow(context.Context, *CreateTicketFollowRequest) (*CreateTicketFollowReply, error)
- func (UnimplementedTicketServer) GetTicket(context.Context, *GetTicketRequest) (*GetTicketReply, error)
- func (UnimplementedTicketServer) GetTicketList(context.Context, *GetTicketListRequest) (*GetTicketListReply, error)
- func (UnimplementedTicketServer) UpdateTicketStatus(context.Context, *UpdateTicketStatusRequest) (*UpdateTicketStatusReply, error)
- type UnsafeTicketServer
- type UpdateTicketStatusReply
- func (*UpdateTicketStatusReply) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateTicketStatusReply) GetCode() int32
- func (x *UpdateTicketStatusReply) GetMessage() string
- func (*UpdateTicketStatusReply) ProtoMessage()
- func (x *UpdateTicketStatusReply) ProtoReflect() protoreflect.Message
- func (x *UpdateTicketStatusReply) Reset()
- func (x *UpdateTicketStatusReply) String() string
- func (m *UpdateTicketStatusReply) Validate() error
- func (m *UpdateTicketStatusReply) ValidateAll() error
- type UpdateTicketStatusReplyMultiError
- type UpdateTicketStatusReplyValidationError
- func (e UpdateTicketStatusReplyValidationError) Cause() error
- func (e UpdateTicketStatusReplyValidationError) Error() string
- func (e UpdateTicketStatusReplyValidationError) ErrorName() string
- func (e UpdateTicketStatusReplyValidationError) Field() string
- func (e UpdateTicketStatusReplyValidationError) Key() bool
- func (e UpdateTicketStatusReplyValidationError) Reason() string
- type UpdateTicketStatusRequest
- func (*UpdateTicketStatusRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateTicketStatusRequest) GetId() int64
- func (x *UpdateTicketStatusRequest) GetStatus() int32
- func (*UpdateTicketStatusRequest) ProtoMessage()
- func (x *UpdateTicketStatusRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateTicketStatusRequest) Reset()
- func (x *UpdateTicketStatusRequest) String() string
- func (m *UpdateTicketStatusRequest) Validate() error
- func (m *UpdateTicketStatusRequest) ValidateAll() error
- type UpdateTicketStatusRequestMultiError
- type UpdateTicketStatusRequestValidationError
- func (e UpdateTicketStatusRequestValidationError) Cause() error
- func (e UpdateTicketStatusRequestValidationError) Error() string
- func (e UpdateTicketStatusRequestValidationError) ErrorName() string
- func (e UpdateTicketStatusRequestValidationError) Field() string
- func (e UpdateTicketStatusRequestValidationError) Key() bool
- func (e UpdateTicketStatusRequestValidationError) Reason() string
Constants ¶
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" )
const OperationTicketCreateTicketFollow = "/api.admin.ticket.v1.Ticket/CreateTicketFollow"
const OperationTicketGetTicket = "/api.admin.ticket.v1.Ticket/GetTicket"
const OperationTicketGetTicketList = "/api.admin.ticket.v1.Ticket/GetTicketList"
const OperationTicketUpdateTicketStatus = "/api.admin.ticket.v1.Ticket/UpdateTicketStatus"
Variables ¶
var File_admin_ticket_v1_ticket_proto protoreflect.FileDescriptor
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 ¶
func (m CreateTicketFollowReplyMultiError) Error() string
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 ¶
func (e CreateTicketFollowReplyValidationError) Cause() error
Cause function returns cause value.
func (CreateTicketFollowReplyValidationError) Error ¶
func (e CreateTicketFollowReplyValidationError) Error() string
Error satisfies the builtin error interface
func (CreateTicketFollowReplyValidationError) ErrorName ¶
func (e CreateTicketFollowReplyValidationError) ErrorName() string
ErrorName returns error name.
func (CreateTicketFollowReplyValidationError) Field ¶
func (e CreateTicketFollowReplyValidationError) Field() string
Field function returns field value.
func (CreateTicketFollowReplyValidationError) Key ¶
func (e CreateTicketFollowReplyValidationError) Key() bool
Key function returns key value.
func (CreateTicketFollowReplyValidationError) Reason ¶
func (e CreateTicketFollowReplyValidationError) Reason() string
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 (x *CreateTicketFollowRequest) ProtoReflect() protoreflect.Message
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 ¶
func (m CreateTicketFollowRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateTicketFollowRequestMultiError) Error ¶
func (m CreateTicketFollowRequestMultiError) Error() string
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 ¶
func (e CreateTicketFollowRequestValidationError) Cause() error
Cause function returns cause value.
func (CreateTicketFollowRequestValidationError) Error ¶
func (e CreateTicketFollowRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CreateTicketFollowRequestValidationError) ErrorName ¶
func (e CreateTicketFollowRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CreateTicketFollowRequestValidationError) Field ¶
func (e CreateTicketFollowRequestValidationError) Field() string
Field function returns field value.
func (CreateTicketFollowRequestValidationError) Key ¶
func (e CreateTicketFollowRequestValidationError) Key() bool
Key function returns key value.
func (CreateTicketFollowRequestValidationError) Reason ¶
func (e CreateTicketFollowRequestValidationError) Reason() string
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 ¶
func (m GetTicketListDataMultiError) Error() string
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 ¶
func (e GetTicketListDataValidationError) Cause() error
Cause function returns cause value.
func (GetTicketListDataValidationError) Error ¶
func (e GetTicketListDataValidationError) Error() string
Error satisfies the builtin error interface
func (GetTicketListDataValidationError) ErrorName ¶
func (e GetTicketListDataValidationError) ErrorName() string
ErrorName returns error name.
func (GetTicketListDataValidationError) Field ¶
func (e GetTicketListDataValidationError) Field() string
Field function returns field value.
func (GetTicketListDataValidationError) Key ¶
func (e GetTicketListDataValidationError) Key() bool
Key function returns key value.
func (GetTicketListDataValidationError) Reason ¶
func (e GetTicketListDataValidationError) Reason() string
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 ¶
func (m GetTicketListReplyMultiError) Error() string
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 ¶
func (e GetTicketListReplyValidationError) Cause() error
Cause function returns cause value.
func (GetTicketListReplyValidationError) Error ¶
func (e GetTicketListReplyValidationError) Error() string
Error satisfies the builtin error interface
func (GetTicketListReplyValidationError) ErrorName ¶
func (e GetTicketListReplyValidationError) ErrorName() string
ErrorName returns error name.
func (GetTicketListReplyValidationError) Field ¶
func (e GetTicketListReplyValidationError) Field() string
Field function returns field value.
func (GetTicketListReplyValidationError) Key ¶
func (e GetTicketListReplyValidationError) Key() bool
Key function returns key value.
func (GetTicketListReplyValidationError) Reason ¶
func (e GetTicketListReplyValidationError) Reason() string
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 ¶
func (m GetTicketListRequestMultiError) Error() string
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 ¶
func (e GetTicketListRequestValidationError) Cause() error
Cause function returns cause value.
func (GetTicketListRequestValidationError) Error ¶
func (e GetTicketListRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetTicketListRequestValidationError) ErrorName ¶
func (e GetTicketListRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetTicketListRequestValidationError) Field ¶
func (e GetTicketListRequestValidationError) Field() string
Field function returns field value.
func (GetTicketListRequestValidationError) Key ¶
func (e GetTicketListRequestValidationError) Key() bool
Key function returns key value.
func (GetTicketListRequestValidationError) Reason ¶
func (e GetTicketListRequestValidationError) Reason() string
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 ¶
func (e GetTicketReplyValidationError) Cause() error
Cause function returns cause value.
func (GetTicketReplyValidationError) Error ¶
func (e GetTicketReplyValidationError) Error() string
Error satisfies the builtin error interface
func (GetTicketReplyValidationError) ErrorName ¶
func (e GetTicketReplyValidationError) ErrorName() string
ErrorName returns error name.
func (GetTicketReplyValidationError) Field ¶
func (e GetTicketReplyValidationError) Field() string
Field function returns field value.
func (GetTicketReplyValidationError) Key ¶
func (e GetTicketReplyValidationError) Key() bool
Key function returns key value.
func (GetTicketReplyValidationError) Reason ¶
func (e GetTicketReplyValidationError) Reason() string
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 ¶
func (m GetTicketRequestMultiError) Error() string
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 ¶
func (e GetTicketRequestValidationError) Cause() error
Cause function returns cause value.
func (GetTicketRequestValidationError) Error ¶
func (e GetTicketRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetTicketRequestValidationError) ErrorName ¶
func (e GetTicketRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetTicketRequestValidationError) Field ¶
func (e GetTicketRequestValidationError) Field() string
Field function returns field value.
func (GetTicketRequestValidationError) Key ¶
func (e GetTicketRequestValidationError) Key() bool
Key function returns key value.
func (GetTicketRequestValidationError) Reason ¶
func (e GetTicketRequestValidationError) Reason() string
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 ¶
func (e TicketFollowValidationError) Cause() error
Cause function returns cause value.
func (TicketFollowValidationError) Error ¶
func (e TicketFollowValidationError) Error() string
Error satisfies the builtin error interface
func (TicketFollowValidationError) ErrorName ¶
func (e TicketFollowValidationError) ErrorName() string
ErrorName returns error name.
func (TicketFollowValidationError) Field ¶
func (e TicketFollowValidationError) Field() string
Field function returns field value.
func (TicketFollowValidationError) Key ¶
func (e TicketFollowValidationError) Key() bool
Key function returns key value.
func (TicketFollowValidationError) Reason ¶
func (e TicketFollowValidationError) Reason() string
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 ¶
func (c *TicketHTTPClientImpl) CreateTicketFollow(ctx context.Context, in *CreateTicketFollowRequest, opts ...http.CallOption) (*CreateTicketFollowReply, error)
CreateTicketFollow CreateTicketFollow 创建工单跟进
func (*TicketHTTPClientImpl) GetTicket ¶
func (c *TicketHTTPClientImpl) GetTicket(ctx context.Context, in *GetTicketRequest, opts ...http.CallOption) (*GetTicketReply, error)
GetTicket GetTicket 获取工单详情
func (*TicketHTTPClientImpl) GetTicketList ¶
func (c *TicketHTTPClientImpl) GetTicketList(ctx context.Context, in *GetTicketListRequest, opts ...http.CallOption) (*GetTicketListReply, error)
GetTicketList GetTicketList 获取工单列表
func (*TicketHTTPClientImpl) UpdateTicketStatus ¶
func (c *TicketHTTPClientImpl) UpdateTicketStatus(ctx context.Context, in *UpdateTicketStatusRequest, opts ...http.CallOption) (*UpdateTicketStatusReply, error)
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 ¶
func (e TicketInfoValidationError) Error() string
Error satisfies the builtin error interface
func (TicketInfoValidationError) ErrorName ¶
func (e TicketInfoValidationError) ErrorName() string
ErrorName returns error name.
func (TicketInfoValidationError) Field ¶
func (e TicketInfoValidationError) Field() string
Field function returns field value.
func (TicketInfoValidationError) Key ¶
func (e TicketInfoValidationError) Key() bool
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) CreateTicketFollow(context.Context, *CreateTicketFollowRequest) (*CreateTicketFollowReply, error)
func (UnimplementedTicketServer) GetTicket ¶
func (UnimplementedTicketServer) GetTicket(context.Context, *GetTicketRequest) (*GetTicketReply, error)
func (UnimplementedTicketServer) GetTicketList ¶
func (UnimplementedTicketServer) GetTicketList(context.Context, *GetTicketListRequest) (*GetTicketListReply, error)
func (UnimplementedTicketServer) UpdateTicketStatus ¶
func (UnimplementedTicketServer) UpdateTicketStatus(context.Context, *UpdateTicketStatusRequest) (*UpdateTicketStatusReply, error)
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 ¶
func (m UpdateTicketStatusReplyMultiError) Error() string
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 ¶
func (e UpdateTicketStatusReplyValidationError) Cause() error
Cause function returns cause value.
func (UpdateTicketStatusReplyValidationError) Error ¶
func (e UpdateTicketStatusReplyValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateTicketStatusReplyValidationError) ErrorName ¶
func (e UpdateTicketStatusReplyValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateTicketStatusReplyValidationError) Field ¶
func (e UpdateTicketStatusReplyValidationError) Field() string
Field function returns field value.
func (UpdateTicketStatusReplyValidationError) Key ¶
func (e UpdateTicketStatusReplyValidationError) Key() bool
Key function returns key value.
func (UpdateTicketStatusReplyValidationError) Reason ¶
func (e UpdateTicketStatusReplyValidationError) Reason() string
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 (x *UpdateTicketStatusRequest) ProtoReflect() protoreflect.Message
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 ¶
func (m UpdateTicketStatusRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateTicketStatusRequestMultiError) Error ¶
func (m UpdateTicketStatusRequestMultiError) Error() string
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 ¶
func (e UpdateTicketStatusRequestValidationError) Cause() error
Cause function returns cause value.
func (UpdateTicketStatusRequestValidationError) Error ¶
func (e UpdateTicketStatusRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateTicketStatusRequestValidationError) ErrorName ¶
func (e UpdateTicketStatusRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateTicketStatusRequestValidationError) Field ¶
func (e UpdateTicketStatusRequestValidationError) Field() string
Field function returns field value.
func (UpdateTicketStatusRequestValidationError) Key ¶
func (e UpdateTicketStatusRequestValidationError) Key() bool
Key function returns key value.
func (UpdateTicketStatusRequestValidationError) Reason ¶
func (e UpdateTicketStatusRequestValidationError) Reason() string
Reason function returns reason value.