v1

package
v1.0.11 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2026 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
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"
)
View Source
const OperationTicketCreateUserTicket = "/api.public.ticket.v1.Ticket/CreateUserTicket"
View Source
const OperationTicketCreateUserTicketFollow = "/api.public.ticket.v1.Ticket/CreateUserTicketFollow"
View Source
const OperationTicketGetUserTicketDetails = "/api.public.ticket.v1.Ticket/GetUserTicketDetails"
View Source
const OperationTicketGetUserTicketList = "/api.public.ticket.v1.Ticket/GetUserTicketList"
View Source
const OperationTicketUpdateUserTicketStatus = "/api.public.ticket.v1.Ticket/UpdateUserTicketStatus"

Variables

View Source
var File_public_ticket_v1_ticket_proto protoreflect.FileDescriptor
View Source
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 (*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 (*CreateUserTicketFollowRequest) Reset

func (x *CreateUserTicketFollowRequest) Reset()

func (*CreateUserTicketFollowRequest) 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

AllErrors returns a list of validation violation errors.

func (CreateUserTicketFollowRequestMultiError) Error

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

Cause function returns cause value.

func (CreateUserTicketFollowRequestValidationError) Error

Error satisfies the builtin error interface

func (CreateUserTicketFollowRequestValidationError) ErrorName

ErrorName returns error name.

func (CreateUserTicketFollowRequestValidationError) Field

Field function returns field value.

func (CreateUserTicketFollowRequestValidationError) Key

Key function returns key value.

func (CreateUserTicketFollowRequestValidationError) Reason

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

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

Cause function returns cause value.

func (CreateUserTicketRequestValidationError) Error

Error satisfies the builtin error interface

func (CreateUserTicketRequestValidationError) ErrorName

ErrorName returns error name.

func (CreateUserTicketRequestValidationError) Field

Field function returns field value.

func (CreateUserTicketRequestValidationError) Key

Key function returns key value.

func (CreateUserTicketRequestValidationError) Reason

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 (*GetUserTicketDetailsRequest) ProtoMessage

func (*GetUserTicketDetailsRequest) ProtoMessage()

func (*GetUserTicketDetailsRequest) ProtoReflect

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

AllErrors returns a list of validation violation errors.

func (GetUserTicketDetailsRequestMultiError) Error

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

Cause function returns cause value.

func (GetUserTicketDetailsRequestValidationError) Error

Error satisfies the builtin error interface

func (GetUserTicketDetailsRequestValidationError) ErrorName

ErrorName returns error name.

func (GetUserTicketDetailsRequestValidationError) Field

Field function returns field value.

func (GetUserTicketDetailsRequestValidationError) Key

Key function returns key value.

func (GetUserTicketDetailsRequestValidationError) Reason

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

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

Cause function returns cause value.

func (GetUserTicketListReplyValidationError) Error

Error satisfies the builtin error interface

func (GetUserTicketListReplyValidationError) ErrorName

ErrorName returns error name.

func (GetUserTicketListReplyValidationError) Field

Field function returns field value.

func (GetUserTicketListReplyValidationError) Key

Key function returns key value.

func (GetUserTicketListReplyValidationError) Reason

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

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

Cause function returns cause value.

func (GetUserTicketListRequestValidationError) Error

Error satisfies the builtin error interface

func (GetUserTicketListRequestValidationError) ErrorName

ErrorName returns error name.

func (GetUserTicketListRequestValidationError) Field

Field function returns field value.

func (GetUserTicketListRequestValidationError) Key

Key function returns key value.

func (GetUserTicketListRequestValidationError) Reason

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

Cause function returns cause value.

func (TicketFollowValidationError) Error

Error satisfies the builtin error interface

func (TicketFollowValidationError) ErrorName

func (e TicketFollowValidationError) ErrorName() string

ErrorName returns error name.

func (TicketFollowValidationError) Field

Field function returns field value.

func (TicketFollowValidationError) Key

Key function returns key value.

func (TicketFollowValidationError) Reason

Reason function returns reason value.

type TicketHTTPClient

type TicketHTTPClient interface {
	// 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

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

Error satisfies the builtin error interface

func (TicketInfoValidationError) ErrorName

func (e TicketInfoValidationError) ErrorName() string

ErrorName returns error name.

func (TicketInfoValidationError) Field

Field function returns field value.

func (TicketInfoValidationError) Key

Key function returns key value.

func (TicketInfoValidationError) Reason

func (e TicketInfoValidationError) Reason() string

Reason function returns reason value.

type TicketServer

type TicketServer interface {
	// 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) CreateUserTicketFollow

func (UnimplementedTicketServer) GetUserTicketDetails

func (UnimplementedTicketServer) GetUserTicketList

func (UnimplementedTicketServer) UpdateUserTicketStatus

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 (*UpdateUserTicketStatusRequest) GetStatus

func (x *UpdateUserTicketStatusRequest) GetStatus() int32

func (*UpdateUserTicketStatusRequest) ProtoMessage

func (*UpdateUserTicketStatusRequest) ProtoMessage()

func (*UpdateUserTicketStatusRequest) ProtoReflect

func (*UpdateUserTicketStatusRequest) Reset

func (x *UpdateUserTicketStatusRequest) Reset()

func (*UpdateUserTicketStatusRequest) 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

AllErrors returns a list of validation violation errors.

func (UpdateUserTicketStatusRequestMultiError) Error

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

Cause function returns cause value.

func (UpdateUserTicketStatusRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdateUserTicketStatusRequestValidationError) ErrorName

ErrorName returns error name.

func (UpdateUserTicketStatusRequestValidationError) Field

Field function returns field value.

func (UpdateUserTicketStatusRequestValidationError) Key

Key function returns key value.

func (UpdateUserTicketStatusRequestValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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