Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterTicketHTTPServer(s *http.Server, srv TicketHTTPServer)
- func RegisterTicketServer(s grpc.ServiceRegistrar, srv TicketServer)
- type CreateUserTicketFollowRequest
- func (*CreateUserTicketFollowRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateUserTicketFollowRequest) GetContent() string
- func (x *CreateUserTicketFollowRequest) GetFrom() string
- func (x *CreateUserTicketFollowRequest) GetTicketId() int64
- func (x *CreateUserTicketFollowRequest) GetType() int32
- func (*CreateUserTicketFollowRequest) ProtoMessage()
- func (x *CreateUserTicketFollowRequest) ProtoReflect() protoreflect.Message
- func (x *CreateUserTicketFollowRequest) Reset()
- func (x *CreateUserTicketFollowRequest) String() string
- func (m *CreateUserTicketFollowRequest) Validate() error
- func (m *CreateUserTicketFollowRequest) ValidateAll() error
- type CreateUserTicketFollowRequestMultiError
- type CreateUserTicketFollowRequestValidationError
- func (e CreateUserTicketFollowRequestValidationError) Cause() error
- func (e CreateUserTicketFollowRequestValidationError) Error() string
- func (e CreateUserTicketFollowRequestValidationError) ErrorName() string
- func (e CreateUserTicketFollowRequestValidationError) Field() string
- func (e CreateUserTicketFollowRequestValidationError) Key() bool
- func (e CreateUserTicketFollowRequestValidationError) Reason() string
- type CreateUserTicketRequest
- func (*CreateUserTicketRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateUserTicketRequest) GetDescription() string
- func (x *CreateUserTicketRequest) GetTitle() string
- func (*CreateUserTicketRequest) ProtoMessage()
- func (x *CreateUserTicketRequest) ProtoReflect() protoreflect.Message
- func (x *CreateUserTicketRequest) Reset()
- func (x *CreateUserTicketRequest) String() string
- func (m *CreateUserTicketRequest) Validate() error
- func (m *CreateUserTicketRequest) ValidateAll() error
- type CreateUserTicketRequestMultiError
- type CreateUserTicketRequestValidationError
- func (e CreateUserTicketRequestValidationError) Cause() error
- func (e CreateUserTicketRequestValidationError) Error() string
- func (e CreateUserTicketRequestValidationError) ErrorName() string
- func (e CreateUserTicketRequestValidationError) Field() string
- func (e CreateUserTicketRequestValidationError) Key() bool
- func (e CreateUserTicketRequestValidationError) Reason() string
- type GetUserTicketDetailsRequest
- func (*GetUserTicketDetailsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetUserTicketDetailsRequest) GetId() int64
- func (*GetUserTicketDetailsRequest) ProtoMessage()
- func (x *GetUserTicketDetailsRequest) ProtoReflect() protoreflect.Message
- func (x *GetUserTicketDetailsRequest) Reset()
- func (x *GetUserTicketDetailsRequest) String() string
- func (m *GetUserTicketDetailsRequest) Validate() error
- func (m *GetUserTicketDetailsRequest) ValidateAll() error
- type GetUserTicketDetailsRequestMultiError
- type GetUserTicketDetailsRequestValidationError
- func (e GetUserTicketDetailsRequestValidationError) Cause() error
- func (e GetUserTicketDetailsRequestValidationError) Error() string
- func (e GetUserTicketDetailsRequestValidationError) ErrorName() string
- func (e GetUserTicketDetailsRequestValidationError) Field() string
- func (e GetUserTicketDetailsRequestValidationError) Key() bool
- func (e GetUserTicketDetailsRequestValidationError) Reason() string
- type GetUserTicketListReply
- func (*GetUserTicketListReply) Descriptor() ([]byte, []int)deprecated
- func (x *GetUserTicketListReply) GetList() []*TicketInfo
- func (x *GetUserTicketListReply) GetTotal() int32
- func (*GetUserTicketListReply) ProtoMessage()
- func (x *GetUserTicketListReply) ProtoReflect() protoreflect.Message
- func (x *GetUserTicketListReply) Reset()
- func (x *GetUserTicketListReply) String() string
- func (m *GetUserTicketListReply) Validate() error
- func (m *GetUserTicketListReply) ValidateAll() error
- type GetUserTicketListReplyMultiError
- type GetUserTicketListReplyValidationError
- func (e GetUserTicketListReplyValidationError) Cause() error
- func (e GetUserTicketListReplyValidationError) Error() string
- func (e GetUserTicketListReplyValidationError) ErrorName() string
- func (e GetUserTicketListReplyValidationError) Field() string
- func (e GetUserTicketListReplyValidationError) Key() bool
- func (e GetUserTicketListReplyValidationError) Reason() string
- type GetUserTicketListRequest
- func (*GetUserTicketListRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetUserTicketListRequest) GetPage() int32
- func (x *GetUserTicketListRequest) GetSearch() string
- func (x *GetUserTicketListRequest) GetSize() int32
- func (x *GetUserTicketListRequest) GetStatus() int32
- func (*GetUserTicketListRequest) ProtoMessage()
- func (x *GetUserTicketListRequest) ProtoReflect() protoreflect.Message
- func (x *GetUserTicketListRequest) Reset()
- func (x *GetUserTicketListRequest) String() string
- func (m *GetUserTicketListRequest) Validate() error
- func (m *GetUserTicketListRequest) ValidateAll() error
- type GetUserTicketListRequestMultiError
- type GetUserTicketListRequestValidationError
- func (e GetUserTicketListRequestValidationError) Cause() error
- func (e GetUserTicketListRequestValidationError) Error() string
- func (e GetUserTicketListRequestValidationError) ErrorName() string
- func (e GetUserTicketListRequestValidationError) Field() string
- func (e GetUserTicketListRequestValidationError) Key() bool
- func (e GetUserTicketListRequestValidationError) 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) CreateUserTicket(ctx context.Context, in *CreateUserTicketRequest, opts ...http.CallOption) (*emptypb.Empty, error)
- func (c *TicketHTTPClientImpl) CreateUserTicketFollow(ctx context.Context, in *CreateUserTicketFollowRequest, ...) (*emptypb.Empty, error)
- func (c *TicketHTTPClientImpl) GetUserTicketDetails(ctx context.Context, in *GetUserTicketDetailsRequest, opts ...http.CallOption) (*TicketInfo, error)
- func (c *TicketHTTPClientImpl) GetUserTicketList(ctx context.Context, in *GetUserTicketListRequest, opts ...http.CallOption) (*GetUserTicketListReply, error)
- func (c *TicketHTTPClientImpl) UpdateUserTicketStatus(ctx context.Context, in *UpdateUserTicketStatusRequest, ...) (*emptypb.Empty, 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) CreateUserTicket(context.Context, *CreateUserTicketRequest) (*emptypb.Empty, error)
- func (UnimplementedTicketServer) CreateUserTicketFollow(context.Context, *CreateUserTicketFollowRequest) (*emptypb.Empty, error)
- func (UnimplementedTicketServer) GetUserTicketDetails(context.Context, *GetUserTicketDetailsRequest) (*TicketInfo, error)
- func (UnimplementedTicketServer) GetUserTicketList(context.Context, *GetUserTicketListRequest) (*GetUserTicketListReply, error)
- func (UnimplementedTicketServer) UpdateUserTicketStatus(context.Context, *UpdateUserTicketStatusRequest) (*emptypb.Empty, error)
- type UnsafeTicketServer
- type UpdateUserTicketStatusRequest
- func (*UpdateUserTicketStatusRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateUserTicketStatusRequest) GetId() int64
- func (x *UpdateUserTicketStatusRequest) GetStatus() int32
- func (*UpdateUserTicketStatusRequest) ProtoMessage()
- func (x *UpdateUserTicketStatusRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateUserTicketStatusRequest) Reset()
- func (x *UpdateUserTicketStatusRequest) String() string
- func (m *UpdateUserTicketStatusRequest) Validate() error
- func (m *UpdateUserTicketStatusRequest) ValidateAll() error
- type UpdateUserTicketStatusRequestMultiError
- type UpdateUserTicketStatusRequestValidationError
- func (e UpdateUserTicketStatusRequestValidationError) Cause() error
- func (e UpdateUserTicketStatusRequestValidationError) Error() string
- func (e UpdateUserTicketStatusRequestValidationError) ErrorName() string
- func (e UpdateUserTicketStatusRequestValidationError) Field() string
- func (e UpdateUserTicketStatusRequestValidationError) Key() bool
- func (e UpdateUserTicketStatusRequestValidationError) Reason() string
Constants ¶
const ( Ticket_CreateUserTicket_FullMethodName = "/api.public.ticket.v1.Ticket/CreateUserTicket" Ticket_GetUserTicketList_FullMethodName = "/api.public.ticket.v1.Ticket/GetUserTicketList" Ticket_GetUserTicketDetails_FullMethodName = "/api.public.ticket.v1.Ticket/GetUserTicketDetails" Ticket_UpdateUserTicketStatus_FullMethodName = "/api.public.ticket.v1.Ticket/UpdateUserTicketStatus" Ticket_CreateUserTicketFollow_FullMethodName = "/api.public.ticket.v1.Ticket/CreateUserTicketFollow" )
const OperationTicketCreateUserTicket = "/api.public.ticket.v1.Ticket/CreateUserTicket"
const OperationTicketCreateUserTicketFollow = "/api.public.ticket.v1.Ticket/CreateUserTicketFollow"
const OperationTicketGetUserTicketDetails = "/api.public.ticket.v1.Ticket/GetUserTicketDetails"
const OperationTicketGetUserTicketList = "/api.public.ticket.v1.Ticket/GetUserTicketList"
const OperationTicketUpdateUserTicketStatus = "/api.public.ticket.v1.Ticket/UpdateUserTicketStatus"
Variables ¶
var File_public_ticket_v1_ticket_proto protoreflect.FileDescriptor
var Ticket_ServiceDesc = grpc.ServiceDesc{ ServiceName: "api.public.ticket.v1.Ticket", HandlerType: (*TicketServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateUserTicket", Handler: _Ticket_CreateUserTicket_Handler, }, { MethodName: "GetUserTicketList", Handler: _Ticket_GetUserTicketList_Handler, }, { MethodName: "GetUserTicketDetails", Handler: _Ticket_GetUserTicketDetails_Handler, }, { MethodName: "UpdateUserTicketStatus", Handler: _Ticket_UpdateUserTicketStatus_Handler, }, { MethodName: "CreateUserTicketFollow", Handler: _Ticket_CreateUserTicketFollow_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "public/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 CreateUserTicketFollowRequest ¶
type CreateUserTicketFollowRequest struct {
TicketId int64 `protobuf:"varint,1,opt,name=ticket_id,json=ticketId,proto3" json:"ticket_id,omitempty"`
From string `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"`
Type int32 `protobuf:"varint,3,opt,name=type,proto3" json:"type,omitempty"`
Content string `protobuf:"bytes,4,opt,name=content,proto3" json:"content,omitempty"`
// contains filtered or unexported fields
}
CreateUserTicketFollowRequest is the request to create a follow-up
func (*CreateUserTicketFollowRequest) Descriptor
deprecated
func (*CreateUserTicketFollowRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateUserTicketFollowRequest.ProtoReflect.Descriptor instead.
func (*CreateUserTicketFollowRequest) GetContent ¶
func (x *CreateUserTicketFollowRequest) GetContent() string
func (*CreateUserTicketFollowRequest) GetFrom ¶
func (x *CreateUserTicketFollowRequest) GetFrom() string
func (*CreateUserTicketFollowRequest) GetTicketId ¶
func (x *CreateUserTicketFollowRequest) GetTicketId() int64
func (*CreateUserTicketFollowRequest) GetType ¶
func (x *CreateUserTicketFollowRequest) GetType() int32
func (*CreateUserTicketFollowRequest) ProtoMessage ¶
func (*CreateUserTicketFollowRequest) ProtoMessage()
func (*CreateUserTicketFollowRequest) ProtoReflect ¶
func (x *CreateUserTicketFollowRequest) ProtoReflect() protoreflect.Message
func (*CreateUserTicketFollowRequest) Reset ¶
func (x *CreateUserTicketFollowRequest) Reset()
func (*CreateUserTicketFollowRequest) String ¶
func (x *CreateUserTicketFollowRequest) String() string
func (*CreateUserTicketFollowRequest) Validate ¶
func (m *CreateUserTicketFollowRequest) Validate() error
Validate checks the field values on CreateUserTicketFollowRequest 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 (*CreateUserTicketFollowRequest) ValidateAll ¶
func (m *CreateUserTicketFollowRequest) ValidateAll() error
ValidateAll checks the field values on CreateUserTicketFollowRequest 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 CreateUserTicketFollowRequestMultiError, or nil if none found.
type CreateUserTicketFollowRequestMultiError ¶
type CreateUserTicketFollowRequestMultiError []error
CreateUserTicketFollowRequestMultiError is an error wrapping multiple validation errors returned by CreateUserTicketFollowRequest.ValidateAll() if the designated constraints aren't met.
func (CreateUserTicketFollowRequestMultiError) AllErrors ¶
func (m CreateUserTicketFollowRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateUserTicketFollowRequestMultiError) Error ¶
func (m CreateUserTicketFollowRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateUserTicketFollowRequestValidationError ¶
type CreateUserTicketFollowRequestValidationError struct {
// contains filtered or unexported fields
}
CreateUserTicketFollowRequestValidationError is the validation error returned by CreateUserTicketFollowRequest.Validate if the designated constraints aren't met.
func (CreateUserTicketFollowRequestValidationError) Cause ¶
func (e CreateUserTicketFollowRequestValidationError) Cause() error
Cause function returns cause value.
func (CreateUserTicketFollowRequestValidationError) Error ¶
func (e CreateUserTicketFollowRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CreateUserTicketFollowRequestValidationError) ErrorName ¶
func (e CreateUserTicketFollowRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CreateUserTicketFollowRequestValidationError) Field ¶
func (e CreateUserTicketFollowRequestValidationError) Field() string
Field function returns field value.
func (CreateUserTicketFollowRequestValidationError) Key ¶
func (e CreateUserTicketFollowRequestValidationError) Key() bool
Key function returns key value.
func (CreateUserTicketFollowRequestValidationError) Reason ¶
func (e CreateUserTicketFollowRequestValidationError) Reason() string
Reason function returns reason value.
type CreateUserTicketRequest ¶
type CreateUserTicketRequest struct {
Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` // Ticket title
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` // Ticket description
// contains filtered or unexported fields
}
CreateUserTicketRequest is the request to create a ticket
func (*CreateUserTicketRequest) Descriptor
deprecated
func (*CreateUserTicketRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateUserTicketRequest.ProtoReflect.Descriptor instead.
func (*CreateUserTicketRequest) GetDescription ¶
func (x *CreateUserTicketRequest) GetDescription() string
func (*CreateUserTicketRequest) GetTitle ¶
func (x *CreateUserTicketRequest) GetTitle() string
func (*CreateUserTicketRequest) ProtoMessage ¶
func (*CreateUserTicketRequest) ProtoMessage()
func (*CreateUserTicketRequest) ProtoReflect ¶
func (x *CreateUserTicketRequest) ProtoReflect() protoreflect.Message
func (*CreateUserTicketRequest) Reset ¶
func (x *CreateUserTicketRequest) Reset()
func (*CreateUserTicketRequest) String ¶
func (x *CreateUserTicketRequest) String() string
func (*CreateUserTicketRequest) Validate ¶
func (m *CreateUserTicketRequest) Validate() error
Validate checks the field values on CreateUserTicketRequest 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 (*CreateUserTicketRequest) ValidateAll ¶
func (m *CreateUserTicketRequest) ValidateAll() error
ValidateAll checks the field values on CreateUserTicketRequest 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 CreateUserTicketRequestMultiError, or nil if none found.
type CreateUserTicketRequestMultiError ¶
type CreateUserTicketRequestMultiError []error
CreateUserTicketRequestMultiError is an error wrapping multiple validation errors returned by CreateUserTicketRequest.ValidateAll() if the designated constraints aren't met.
func (CreateUserTicketRequestMultiError) AllErrors ¶
func (m CreateUserTicketRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateUserTicketRequestMultiError) Error ¶
func (m CreateUserTicketRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateUserTicketRequestValidationError ¶
type CreateUserTicketRequestValidationError struct {
// contains filtered or unexported fields
}
CreateUserTicketRequestValidationError is the validation error returned by CreateUserTicketRequest.Validate if the designated constraints aren't met.
func (CreateUserTicketRequestValidationError) Cause ¶
func (e CreateUserTicketRequestValidationError) Cause() error
Cause function returns cause value.
func (CreateUserTicketRequestValidationError) Error ¶
func (e CreateUserTicketRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CreateUserTicketRequestValidationError) ErrorName ¶
func (e CreateUserTicketRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CreateUserTicketRequestValidationError) Field ¶
func (e CreateUserTicketRequestValidationError) Field() string
Field function returns field value.
func (CreateUserTicketRequestValidationError) Key ¶
func (e CreateUserTicketRequestValidationError) Key() bool
Key function returns key value.
func (CreateUserTicketRequestValidationError) Reason ¶
func (e CreateUserTicketRequestValidationError) Reason() string
Reason function returns reason value.
type GetUserTicketDetailsRequest ¶
type GetUserTicketDetailsRequest struct {
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
// contains filtered or unexported fields
}
GetUserTicketDetailsRequest is the request to get ticket details
func (*GetUserTicketDetailsRequest) Descriptor
deprecated
func (*GetUserTicketDetailsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetUserTicketDetailsRequest.ProtoReflect.Descriptor instead.
func (*GetUserTicketDetailsRequest) GetId ¶
func (x *GetUserTicketDetailsRequest) GetId() int64
func (*GetUserTicketDetailsRequest) ProtoMessage ¶
func (*GetUserTicketDetailsRequest) ProtoMessage()
func (*GetUserTicketDetailsRequest) ProtoReflect ¶
func (x *GetUserTicketDetailsRequest) ProtoReflect() protoreflect.Message
func (*GetUserTicketDetailsRequest) Reset ¶
func (x *GetUserTicketDetailsRequest) Reset()
func (*GetUserTicketDetailsRequest) String ¶
func (x *GetUserTicketDetailsRequest) String() string
func (*GetUserTicketDetailsRequest) Validate ¶
func (m *GetUserTicketDetailsRequest) Validate() error
Validate checks the field values on GetUserTicketDetailsRequest 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 (*GetUserTicketDetailsRequest) ValidateAll ¶
func (m *GetUserTicketDetailsRequest) ValidateAll() error
ValidateAll checks the field values on GetUserTicketDetailsRequest 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 GetUserTicketDetailsRequestMultiError, or nil if none found.
type GetUserTicketDetailsRequestMultiError ¶
type GetUserTicketDetailsRequestMultiError []error
GetUserTicketDetailsRequestMultiError is an error wrapping multiple validation errors returned by GetUserTicketDetailsRequest.ValidateAll() if the designated constraints aren't met.
func (GetUserTicketDetailsRequestMultiError) AllErrors ¶
func (m GetUserTicketDetailsRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetUserTicketDetailsRequestMultiError) Error ¶
func (m GetUserTicketDetailsRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetUserTicketDetailsRequestValidationError ¶
type GetUserTicketDetailsRequestValidationError struct {
// contains filtered or unexported fields
}
GetUserTicketDetailsRequestValidationError is the validation error returned by GetUserTicketDetailsRequest.Validate if the designated constraints aren't met.
func (GetUserTicketDetailsRequestValidationError) Cause ¶
func (e GetUserTicketDetailsRequestValidationError) Cause() error
Cause function returns cause value.
func (GetUserTicketDetailsRequestValidationError) Error ¶
func (e GetUserTicketDetailsRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetUserTicketDetailsRequestValidationError) ErrorName ¶
func (e GetUserTicketDetailsRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetUserTicketDetailsRequestValidationError) Field ¶
func (e GetUserTicketDetailsRequestValidationError) Field() string
Field function returns field value.
func (GetUserTicketDetailsRequestValidationError) Key ¶
func (e GetUserTicketDetailsRequestValidationError) Key() bool
Key function returns key value.
func (GetUserTicketDetailsRequestValidationError) Reason ¶
func (e GetUserTicketDetailsRequestValidationError) Reason() string
Reason function returns reason value.
type GetUserTicketListReply ¶
type GetUserTicketListReply 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
}
func (*GetUserTicketListReply) Descriptor
deprecated
func (*GetUserTicketListReply) Descriptor() ([]byte, []int)
Deprecated: Use GetUserTicketListReply.ProtoReflect.Descriptor instead.
func (*GetUserTicketListReply) GetList ¶
func (x *GetUserTicketListReply) GetList() []*TicketInfo
func (*GetUserTicketListReply) GetTotal ¶
func (x *GetUserTicketListReply) GetTotal() int32
func (*GetUserTicketListReply) ProtoMessage ¶
func (*GetUserTicketListReply) ProtoMessage()
func (*GetUserTicketListReply) ProtoReflect ¶
func (x *GetUserTicketListReply) ProtoReflect() protoreflect.Message
func (*GetUserTicketListReply) Reset ¶
func (x *GetUserTicketListReply) Reset()
func (*GetUserTicketListReply) String ¶
func (x *GetUserTicketListReply) String() string
func (*GetUserTicketListReply) Validate ¶
func (m *GetUserTicketListReply) Validate() error
Validate checks the field values on GetUserTicketListReply 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 (*GetUserTicketListReply) ValidateAll ¶
func (m *GetUserTicketListReply) ValidateAll() error
ValidateAll checks the field values on GetUserTicketListReply 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 GetUserTicketListReplyMultiError, or nil if none found.
type GetUserTicketListReplyMultiError ¶
type GetUserTicketListReplyMultiError []error
GetUserTicketListReplyMultiError is an error wrapping multiple validation errors returned by GetUserTicketListReply.ValidateAll() if the designated constraints aren't met.
func (GetUserTicketListReplyMultiError) AllErrors ¶
func (m GetUserTicketListReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetUserTicketListReplyMultiError) Error ¶
func (m GetUserTicketListReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetUserTicketListReplyValidationError ¶
type GetUserTicketListReplyValidationError struct {
// contains filtered or unexported fields
}
GetUserTicketListReplyValidationError is the validation error returned by GetUserTicketListReply.Validate if the designated constraints aren't met.
func (GetUserTicketListReplyValidationError) Cause ¶
func (e GetUserTicketListReplyValidationError) Cause() error
Cause function returns cause value.
func (GetUserTicketListReplyValidationError) Error ¶
func (e GetUserTicketListReplyValidationError) Error() string
Error satisfies the builtin error interface
func (GetUserTicketListReplyValidationError) ErrorName ¶
func (e GetUserTicketListReplyValidationError) ErrorName() string
ErrorName returns error name.
func (GetUserTicketListReplyValidationError) Field ¶
func (e GetUserTicketListReplyValidationError) Field() string
Field function returns field value.
func (GetUserTicketListReplyValidationError) Key ¶
func (e GetUserTicketListReplyValidationError) Key() bool
Key function returns key value.
func (GetUserTicketListReplyValidationError) Reason ¶
func (e GetUserTicketListReplyValidationError) Reason() string
Reason function returns reason value.
type GetUserTicketListRequest ¶
type GetUserTicketListRequest struct {
Page int32 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"`
Size int32 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"`
Status *int32 `protobuf:"varint,3,opt,name=status,proto3,oneof" json:"status,omitempty"`
Search string `protobuf:"bytes,4,opt,name=search,proto3" json:"search,omitempty"`
// contains filtered or unexported fields
}
GetUserTicketListRequest is the request to get ticket list
func (*GetUserTicketListRequest) Descriptor
deprecated
func (*GetUserTicketListRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetUserTicketListRequest.ProtoReflect.Descriptor instead.
func (*GetUserTicketListRequest) GetPage ¶
func (x *GetUserTicketListRequest) GetPage() int32
func (*GetUserTicketListRequest) GetSearch ¶
func (x *GetUserTicketListRequest) GetSearch() string
func (*GetUserTicketListRequest) GetSize ¶
func (x *GetUserTicketListRequest) GetSize() int32
func (*GetUserTicketListRequest) GetStatus ¶
func (x *GetUserTicketListRequest) GetStatus() int32
func (*GetUserTicketListRequest) ProtoMessage ¶
func (*GetUserTicketListRequest) ProtoMessage()
func (*GetUserTicketListRequest) ProtoReflect ¶
func (x *GetUserTicketListRequest) ProtoReflect() protoreflect.Message
func (*GetUserTicketListRequest) Reset ¶
func (x *GetUserTicketListRequest) Reset()
func (*GetUserTicketListRequest) String ¶
func (x *GetUserTicketListRequest) String() string
func (*GetUserTicketListRequest) Validate ¶
func (m *GetUserTicketListRequest) Validate() error
Validate checks the field values on GetUserTicketListRequest 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 (*GetUserTicketListRequest) ValidateAll ¶
func (m *GetUserTicketListRequest) ValidateAll() error
ValidateAll checks the field values on GetUserTicketListRequest 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 GetUserTicketListRequestMultiError, or nil if none found.
type GetUserTicketListRequestMultiError ¶
type GetUserTicketListRequestMultiError []error
GetUserTicketListRequestMultiError is an error wrapping multiple validation errors returned by GetUserTicketListRequest.ValidateAll() if the designated constraints aren't met.
func (GetUserTicketListRequestMultiError) AllErrors ¶
func (m GetUserTicketListRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetUserTicketListRequestMultiError) Error ¶
func (m GetUserTicketListRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetUserTicketListRequestValidationError ¶
type GetUserTicketListRequestValidationError struct {
// contains filtered or unexported fields
}
GetUserTicketListRequestValidationError is the validation error returned by GetUserTicketListRequest.Validate if the designated constraints aren't met.
func (GetUserTicketListRequestValidationError) Cause ¶
func (e GetUserTicketListRequestValidationError) Cause() error
Cause function returns cause value.
func (GetUserTicketListRequestValidationError) Error ¶
func (e GetUserTicketListRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetUserTicketListRequestValidationError) ErrorName ¶
func (e GetUserTicketListRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetUserTicketListRequestValidationError) Field ¶
func (e GetUserTicketListRequestValidationError) Field() string
Field function returns field value.
func (GetUserTicketListRequestValidationError) Key ¶
func (e GetUserTicketListRequestValidationError) Key() bool
Key function returns key value.
func (GetUserTicketListRequestValidationError) Reason ¶
func (e GetUserTicketListRequestValidationError) Reason() string
Reason function returns reason value.
type TicketClient ¶
type TicketClient interface {
// CreateUserTicket creates a new ticket
CreateUserTicket(ctx context.Context, in *CreateUserTicketRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// GetUserTicketList gets user's ticket list with pagination
GetUserTicketList(ctx context.Context, in *GetUserTicketListRequest, opts ...grpc.CallOption) (*GetUserTicketListReply, error)
// GetUserTicketDetails gets ticket details
GetUserTicketDetails(ctx context.Context, in *GetUserTicketDetailsRequest, opts ...grpc.CallOption) (*TicketInfo, error)
// UpdateUserTicketStatus updates ticket status
UpdateUserTicketStatus(ctx context.Context, in *UpdateUserTicketStatusRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// CreateUserTicketFollow creates a follow-up for ticket
CreateUserTicketFollow(ctx context.Context, in *CreateUserTicketFollowRequest, opts ...grpc.CallOption) (*emptypb.Empty, 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.
Ticket service for users
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"`
TicketId int64 `protobuf:"varint,2,opt,name=ticket_id,json=ticketId,proto3" json:"ticket_id,omitempty"`
From string `protobuf:"bytes,3,opt,name=from,proto3" json:"from,omitempty"`
Type int32 `protobuf:"varint,4,opt,name=type,proto3" json:"type,omitempty"`
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"`
// contains filtered or unexported fields
}
TicketFollow represents a follow-up record
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 {
// CreateUserTicket CreateUserTicket creates a new ticket
CreateUserTicket(ctx context.Context, req *CreateUserTicketRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
// CreateUserTicketFollow CreateUserTicketFollow creates a follow-up for ticket
CreateUserTicketFollow(ctx context.Context, req *CreateUserTicketFollowRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
// GetUserTicketDetails GetUserTicketDetails gets ticket details
GetUserTicketDetails(ctx context.Context, req *GetUserTicketDetailsRequest, opts ...http.CallOption) (rsp *TicketInfo, err error)
// GetUserTicketList GetUserTicketList gets user's ticket list with pagination
GetUserTicketList(ctx context.Context, req *GetUserTicketListRequest, opts ...http.CallOption) (rsp *GetUserTicketListReply, err error)
// UpdateUserTicketStatus UpdateUserTicketStatus updates ticket status
UpdateUserTicketStatus(ctx context.Context, req *UpdateUserTicketStatusRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
}
func NewTicketHTTPClient ¶
func NewTicketHTTPClient(client *http.Client) TicketHTTPClient
type TicketHTTPClientImpl ¶
type TicketHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*TicketHTTPClientImpl) CreateUserTicket ¶
func (c *TicketHTTPClientImpl) CreateUserTicket(ctx context.Context, in *CreateUserTicketRequest, opts ...http.CallOption) (*emptypb.Empty, error)
CreateUserTicket CreateUserTicket creates a new ticket
func (*TicketHTTPClientImpl) CreateUserTicketFollow ¶
func (c *TicketHTTPClientImpl) CreateUserTicketFollow(ctx context.Context, in *CreateUserTicketFollowRequest, opts ...http.CallOption) (*emptypb.Empty, error)
CreateUserTicketFollow CreateUserTicketFollow creates a follow-up for ticket
func (*TicketHTTPClientImpl) GetUserTicketDetails ¶
func (c *TicketHTTPClientImpl) GetUserTicketDetails(ctx context.Context, in *GetUserTicketDetailsRequest, opts ...http.CallOption) (*TicketInfo, error)
GetUserTicketDetails GetUserTicketDetails gets ticket details
func (*TicketHTTPClientImpl) GetUserTicketList ¶
func (c *TicketHTTPClientImpl) GetUserTicketList(ctx context.Context, in *GetUserTicketListRequest, opts ...http.CallOption) (*GetUserTicketListReply, error)
GetUserTicketList GetUserTicketList gets user's ticket list with pagination
func (*TicketHTTPClientImpl) UpdateUserTicketStatus ¶
func (c *TicketHTTPClientImpl) UpdateUserTicketStatus(ctx context.Context, in *UpdateUserTicketStatusRequest, opts ...http.CallOption) (*emptypb.Empty, error)
UpdateUserTicketStatus UpdateUserTicketStatus updates ticket status
type TicketHTTPServer ¶
type TicketHTTPServer interface {
// CreateUserTicket CreateUserTicket creates a new ticket
CreateUserTicket(context.Context, *CreateUserTicketRequest) (*emptypb.Empty, error)
// CreateUserTicketFollow CreateUserTicketFollow creates a follow-up for ticket
CreateUserTicketFollow(context.Context, *CreateUserTicketFollowRequest) (*emptypb.Empty, error)
// GetUserTicketDetails GetUserTicketDetails gets ticket details
GetUserTicketDetails(context.Context, *GetUserTicketDetailsRequest) (*TicketInfo, error)
// GetUserTicketList GetUserTicketList gets user's ticket list with pagination
GetUserTicketList(context.Context, *GetUserTicketListRequest) (*GetUserTicketListReply, error)
// UpdateUserTicketStatus UpdateUserTicketStatus updates ticket status
UpdateUserTicketStatus(context.Context, *UpdateUserTicketStatusRequest) (*emptypb.Empty, error)
}
type TicketInfo ¶
type TicketInfo struct {
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
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"`
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"`
UpdatedAt int64 `protobuf:"varint,8,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
// contains filtered or unexported fields
}
TicketInfo represents a ticket with follow-ups
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 {
// CreateUserTicket creates a new ticket
CreateUserTicket(context.Context, *CreateUserTicketRequest) (*emptypb.Empty, error)
// GetUserTicketList gets user's ticket list with pagination
GetUserTicketList(context.Context, *GetUserTicketListRequest) (*GetUserTicketListReply, error)
// GetUserTicketDetails gets ticket details
GetUserTicketDetails(context.Context, *GetUserTicketDetailsRequest) (*TicketInfo, error)
// UpdateUserTicketStatus updates ticket status
UpdateUserTicketStatus(context.Context, *UpdateUserTicketStatusRequest) (*emptypb.Empty, error)
// CreateUserTicketFollow creates a follow-up for ticket
CreateUserTicketFollow(context.Context, *CreateUserTicketFollowRequest) (*emptypb.Empty, error)
// contains filtered or unexported methods
}
TicketServer is the server API for Ticket service. All implementations must embed UnimplementedTicketServer for forward compatibility.
Ticket service for users
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) CreateUserTicket ¶
func (UnimplementedTicketServer) CreateUserTicket(context.Context, *CreateUserTicketRequest) (*emptypb.Empty, error)
func (UnimplementedTicketServer) CreateUserTicketFollow ¶
func (UnimplementedTicketServer) CreateUserTicketFollow(context.Context, *CreateUserTicketFollowRequest) (*emptypb.Empty, error)
func (UnimplementedTicketServer) GetUserTicketDetails ¶
func (UnimplementedTicketServer) GetUserTicketDetails(context.Context, *GetUserTicketDetailsRequest) (*TicketInfo, error)
func (UnimplementedTicketServer) GetUserTicketList ¶
func (UnimplementedTicketServer) GetUserTicketList(context.Context, *GetUserTicketListRequest) (*GetUserTicketListReply, error)
func (UnimplementedTicketServer) UpdateUserTicketStatus ¶
func (UnimplementedTicketServer) UpdateUserTicketStatus(context.Context, *UpdateUserTicketStatusRequest) (*emptypb.Empty, 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 UpdateUserTicketStatusRequest ¶
type UpdateUserTicketStatusRequest struct {
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
Status *int32 `protobuf:"varint,2,opt,name=status,proto3,oneof" json:"status,omitempty"`
// contains filtered or unexported fields
}
UpdateUserTicketStatusRequest is the request to update ticket status
func (*UpdateUserTicketStatusRequest) Descriptor
deprecated
func (*UpdateUserTicketStatusRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateUserTicketStatusRequest.ProtoReflect.Descriptor instead.
func (*UpdateUserTicketStatusRequest) GetId ¶
func (x *UpdateUserTicketStatusRequest) GetId() int64
func (*UpdateUserTicketStatusRequest) GetStatus ¶
func (x *UpdateUserTicketStatusRequest) GetStatus() int32
func (*UpdateUserTicketStatusRequest) ProtoMessage ¶
func (*UpdateUserTicketStatusRequest) ProtoMessage()
func (*UpdateUserTicketStatusRequest) ProtoReflect ¶
func (x *UpdateUserTicketStatusRequest) ProtoReflect() protoreflect.Message
func (*UpdateUserTicketStatusRequest) Reset ¶
func (x *UpdateUserTicketStatusRequest) Reset()
func (*UpdateUserTicketStatusRequest) String ¶
func (x *UpdateUserTicketStatusRequest) String() string
func (*UpdateUserTicketStatusRequest) Validate ¶
func (m *UpdateUserTicketStatusRequest) Validate() error
Validate checks the field values on UpdateUserTicketStatusRequest 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 (*UpdateUserTicketStatusRequest) ValidateAll ¶
func (m *UpdateUserTicketStatusRequest) ValidateAll() error
ValidateAll checks the field values on UpdateUserTicketStatusRequest 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 UpdateUserTicketStatusRequestMultiError, or nil if none found.
type UpdateUserTicketStatusRequestMultiError ¶
type UpdateUserTicketStatusRequestMultiError []error
UpdateUserTicketStatusRequestMultiError is an error wrapping multiple validation errors returned by UpdateUserTicketStatusRequest.ValidateAll() if the designated constraints aren't met.
func (UpdateUserTicketStatusRequestMultiError) AllErrors ¶
func (m UpdateUserTicketStatusRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateUserTicketStatusRequestMultiError) Error ¶
func (m UpdateUserTicketStatusRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateUserTicketStatusRequestValidationError ¶
type UpdateUserTicketStatusRequestValidationError struct {
// contains filtered or unexported fields
}
UpdateUserTicketStatusRequestValidationError is the validation error returned by UpdateUserTicketStatusRequest.Validate if the designated constraints aren't met.
func (UpdateUserTicketStatusRequestValidationError) Cause ¶
func (e UpdateUserTicketStatusRequestValidationError) Cause() error
Cause function returns cause value.
func (UpdateUserTicketStatusRequestValidationError) Error ¶
func (e UpdateUserTicketStatusRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateUserTicketStatusRequestValidationError) ErrorName ¶
func (e UpdateUserTicketStatusRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateUserTicketStatusRequestValidationError) Field ¶
func (e UpdateUserTicketStatusRequestValidationError) Field() string
Field function returns field value.
func (UpdateUserTicketStatusRequestValidationError) Key ¶
func (e UpdateUserTicketStatusRequestValidationError) Key() bool
Key function returns key value.
func (UpdateUserTicketStatusRequestValidationError) Reason ¶
func (e UpdateUserTicketStatusRequestValidationError) Reason() string
Reason function returns reason value.