adminv1

package
v0.0.0-...-5a703b9 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2025 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RechargeAdmin_GetOrderList_FullMethodName            = "/player.admin.recharge.v1.RechargeAdmin/GetOrderList"
	RechargeAdmin_GetOrderById_FullMethodName            = "/player.admin.recharge.v1.RechargeAdmin/GetOrderById"
	RechargeAdmin_UpdateOrderAckStateById_FullMethodName = "/player.admin.recharge.v1.RechargeAdmin/UpdateOrderAckStateById"
)
View Source
const OperationRechargeAdminGetOrderById = "/player.admin.recharge.v1.RechargeAdmin/GetOrderById"
View Source
const OperationRechargeAdminGetOrderList = "/player.admin.recharge.v1.RechargeAdmin/GetOrderList"
View Source
const OperationRechargeAdminUpdateOrderAckStateById = "/player.admin.recharge.v1.RechargeAdmin/UpdateOrderAckStateById"

Variables

View Source
var (
	OrderAdminErrorReason_name = map[int32]string{
		0: "ORDER_ADMIN_ERROR_REASON_UNSPECIFIED",
		1: "ORDER_ADMIN_ERROR_REASON_SERVER",
		2: "ORDER_ADMIN_ERROR_REASON_ID",
	}
	OrderAdminErrorReason_value = map[string]int32{
		"ORDER_ADMIN_ERROR_REASON_UNSPECIFIED": 0,
		"ORDER_ADMIN_ERROR_REASON_SERVER":      1,
		"ORDER_ADMIN_ERROR_REASON_ID":          2,
	}
)

Enum value maps for OrderAdminErrorReason.

View Source
var File_player_admin_recharge_v1_recharge_error_proto protoreflect.FileDescriptor
View Source
var File_player_admin_recharge_v1_recharge_proto protoreflect.FileDescriptor
View Source
var RechargeAdmin_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "player.admin.recharge.v1.RechargeAdmin",
	HandlerType: (*RechargeAdminServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetOrderList",
			Handler:    _RechargeAdmin_GetOrderList_Handler,
		},
		{
			MethodName: "GetOrderById",
			Handler:    _RechargeAdmin_GetOrderById_Handler,
		},
		{
			MethodName: "UpdateOrderAckStateById",
			Handler:    _RechargeAdmin_UpdateOrderAckStateById_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "player/admin/recharge/v1/recharge.proto",
}

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

Functions

func ErrorOrderAdminErrorReasonId

func ErrorOrderAdminErrorReasonId(format string, args ...interface{}) *errors.Error

func ErrorOrderAdminErrorReasonServer

func ErrorOrderAdminErrorReasonServer(format string, args ...interface{}) *errors.Error

func ErrorOrderAdminErrorReasonUnspecified

func ErrorOrderAdminErrorReasonUnspecified(format string, args ...interface{}) *errors.Error

func IsOrderAdminErrorReasonId

func IsOrderAdminErrorReasonId(err error) bool

func IsOrderAdminErrorReasonServer

func IsOrderAdminErrorReasonServer(err error) bool

func IsOrderAdminErrorReasonUnspecified

func IsOrderAdminErrorReasonUnspecified(err error) bool

func RegisterRechargeAdminHTTPServer

func RegisterRechargeAdminHTTPServer(s *http.Server, srv RechargeAdminHTTPServer)

func RegisterRechargeAdminServer

func RegisterRechargeAdminServer(s grpc.ServiceRegistrar, srv RechargeAdminServer)

Types

type GetOrderByIdRequest

type GetOrderByIdRequest struct {
	Store   string `protobuf:"bytes,1,opt,name=store,proto3" json:"store,omitempty"`
	TransId string `protobuf:"bytes,2,opt,name=trans_id,json=transId,proto3" json:"trans_id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetOrderByIdRequest) Descriptor deprecated

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

Deprecated: Use GetOrderByIdRequest.ProtoReflect.Descriptor instead.

func (*GetOrderByIdRequest) GetStore

func (x *GetOrderByIdRequest) GetStore() string

func (*GetOrderByIdRequest) GetTransId

func (x *GetOrderByIdRequest) GetTransId() string

func (*GetOrderByIdRequest) ProtoMessage

func (*GetOrderByIdRequest) ProtoMessage()

func (*GetOrderByIdRequest) ProtoReflect

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

func (*GetOrderByIdRequest) Reset

func (x *GetOrderByIdRequest) Reset()

func (*GetOrderByIdRequest) String

func (x *GetOrderByIdRequest) String() string

func (*GetOrderByIdRequest) Validate

func (m *GetOrderByIdRequest) Validate() error

Validate checks the field values on GetOrderByIdRequest 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 (*GetOrderByIdRequest) ValidateAll

func (m *GetOrderByIdRequest) ValidateAll() error

ValidateAll checks the field values on GetOrderByIdRequest 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 GetOrderByIdRequestMultiError, or nil if none found.

type GetOrderByIdRequestMultiError

type GetOrderByIdRequestMultiError []error

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

func (GetOrderByIdRequestMultiError) AllErrors

func (m GetOrderByIdRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetOrderByIdRequestMultiError) Error

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

type GetOrderByIdRequestValidationError

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

GetOrderByIdRequestValidationError is the validation error returned by GetOrderByIdRequest.Validate if the designated constraints aren't met.

func (GetOrderByIdRequestValidationError) Cause

Cause function returns cause value.

func (GetOrderByIdRequestValidationError) Error

Error satisfies the builtin error interface

func (GetOrderByIdRequestValidationError) ErrorName

ErrorName returns error name.

func (GetOrderByIdRequestValidationError) Field

Field function returns field value.

func (GetOrderByIdRequestValidationError) Key

Key function returns key value.

func (GetOrderByIdRequestValidationError) Reason

Reason function returns reason value.

type GetOrderByIdResponse

type GetOrderByIdResponse 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"`
	Order   *OrderProto `protobuf:"bytes,3,opt,name=order,proto3" json:"order,omitempty"`
	// contains filtered or unexported fields
}

func (*GetOrderByIdResponse) Descriptor deprecated

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

Deprecated: Use GetOrderByIdResponse.ProtoReflect.Descriptor instead.

func (*GetOrderByIdResponse) GetCode

func (x *GetOrderByIdResponse) GetCode() int32

func (*GetOrderByIdResponse) GetMessage

func (x *GetOrderByIdResponse) GetMessage() string

func (*GetOrderByIdResponse) GetOrder

func (x *GetOrderByIdResponse) GetOrder() *OrderProto

func (*GetOrderByIdResponse) ProtoMessage

func (*GetOrderByIdResponse) ProtoMessage()

func (*GetOrderByIdResponse) ProtoReflect

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

func (*GetOrderByIdResponse) Reset

func (x *GetOrderByIdResponse) Reset()

func (*GetOrderByIdResponse) String

func (x *GetOrderByIdResponse) String() string

func (*GetOrderByIdResponse) Validate

func (m *GetOrderByIdResponse) Validate() error

Validate checks the field values on GetOrderByIdResponse 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 (*GetOrderByIdResponse) ValidateAll

func (m *GetOrderByIdResponse) ValidateAll() error

ValidateAll checks the field values on GetOrderByIdResponse 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 GetOrderByIdResponseMultiError, or nil if none found.

type GetOrderByIdResponseMultiError

type GetOrderByIdResponseMultiError []error

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

func (GetOrderByIdResponseMultiError) AllErrors

func (m GetOrderByIdResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetOrderByIdResponseMultiError) Error

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

type GetOrderByIdResponseValidationError

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

GetOrderByIdResponseValidationError is the validation error returned by GetOrderByIdResponse.Validate if the designated constraints aren't met.

func (GetOrderByIdResponseValidationError) Cause

Cause function returns cause value.

func (GetOrderByIdResponseValidationError) Error

Error satisfies the builtin error interface

func (GetOrderByIdResponseValidationError) ErrorName

ErrorName returns error name.

func (GetOrderByIdResponseValidationError) Field

Field function returns field value.

func (GetOrderByIdResponseValidationError) Key

Key function returns key value.

func (GetOrderByIdResponseValidationError) Reason

Reason function returns reason value.

type GetOrderListCond

type GetOrderListCond struct {
	Store   string `protobuf:"bytes,1,opt,name=store,proto3" json:"store,omitempty"`
	TransId string `protobuf:"bytes,2,opt,name=trans_id,json=transId,proto3" json:"trans_id,omitempty"`
	Uid     int64  `protobuf:"varint,3,opt,name=uid,proto3" json:"uid,omitempty"`
	Ack     int32  `protobuf:"varint,4,opt,name=ack,proto3" json:"ack,omitempty"`
	// contains filtered or unexported fields
}

func (*GetOrderListCond) Descriptor deprecated

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

Deprecated: Use GetOrderListCond.ProtoReflect.Descriptor instead.

func (*GetOrderListCond) GetAck

func (x *GetOrderListCond) GetAck() int32

func (*GetOrderListCond) GetStore

func (x *GetOrderListCond) GetStore() string

func (*GetOrderListCond) GetTransId

func (x *GetOrderListCond) GetTransId() string

func (*GetOrderListCond) GetUid

func (x *GetOrderListCond) GetUid() int64

func (*GetOrderListCond) ProtoMessage

func (*GetOrderListCond) ProtoMessage()

func (*GetOrderListCond) ProtoReflect

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

func (*GetOrderListCond) Reset

func (x *GetOrderListCond) Reset()

func (*GetOrderListCond) String

func (x *GetOrderListCond) String() string

func (*GetOrderListCond) Validate

func (m *GetOrderListCond) Validate() error

Validate checks the field values on GetOrderListCond 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 (*GetOrderListCond) ValidateAll

func (m *GetOrderListCond) ValidateAll() error

ValidateAll checks the field values on GetOrderListCond 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 GetOrderListCondMultiError, or nil if none found.

type GetOrderListCondMultiError

type GetOrderListCondMultiError []error

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

func (GetOrderListCondMultiError) AllErrors

func (m GetOrderListCondMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetOrderListCondMultiError) Error

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

type GetOrderListCondValidationError

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

GetOrderListCondValidationError is the validation error returned by GetOrderListCond.Validate if the designated constraints aren't met.

func (GetOrderListCondValidationError) Cause

Cause function returns cause value.

func (GetOrderListCondValidationError) Error

Error satisfies the builtin error interface

func (GetOrderListCondValidationError) ErrorName

ErrorName returns error name.

func (GetOrderListCondValidationError) Field

Field function returns field value.

func (GetOrderListCondValidationError) Key

Key function returns key value.

func (GetOrderListCondValidationError) Reason

Reason function returns reason value.

type GetOrderListRequest

type GetOrderListRequest struct {
	Page     int32             `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"`
	PageSize int32             `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	Cond     *GetOrderListCond `protobuf:"bytes,3,opt,name=cond,proto3" json:"cond,omitempty"`
	// contains filtered or unexported fields
}

func (*GetOrderListRequest) Descriptor deprecated

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

Deprecated: Use GetOrderListRequest.ProtoReflect.Descriptor instead.

func (*GetOrderListRequest) GetCond

func (x *GetOrderListRequest) GetCond() *GetOrderListCond

func (*GetOrderListRequest) GetPage

func (x *GetOrderListRequest) GetPage() int32

func (*GetOrderListRequest) GetPageSize

func (x *GetOrderListRequest) GetPageSize() int32

func (*GetOrderListRequest) ProtoMessage

func (*GetOrderListRequest) ProtoMessage()

func (*GetOrderListRequest) ProtoReflect

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

func (*GetOrderListRequest) Reset

func (x *GetOrderListRequest) Reset()

func (*GetOrderListRequest) String

func (x *GetOrderListRequest) String() string

func (*GetOrderListRequest) Validate

func (m *GetOrderListRequest) Validate() error

Validate checks the field values on GetOrderListRequest 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 (*GetOrderListRequest) ValidateAll

func (m *GetOrderListRequest) ValidateAll() error

ValidateAll checks the field values on GetOrderListRequest 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 GetOrderListRequestMultiError, or nil if none found.

type GetOrderListRequestMultiError

type GetOrderListRequestMultiError []error

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

func (GetOrderListRequestMultiError) AllErrors

func (m GetOrderListRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetOrderListRequestMultiError) Error

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

type GetOrderListRequestValidationError

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

GetOrderListRequestValidationError is the validation error returned by GetOrderListRequest.Validate if the designated constraints aren't met.

func (GetOrderListRequestValidationError) Cause

Cause function returns cause value.

func (GetOrderListRequestValidationError) Error

Error satisfies the builtin error interface

func (GetOrderListRequestValidationError) ErrorName

ErrorName returns error name.

func (GetOrderListRequestValidationError) Field

Field function returns field value.

func (GetOrderListRequestValidationError) Key

Key function returns key value.

func (GetOrderListRequestValidationError) Reason

Reason function returns reason value.

type GetOrderListResponse

type GetOrderListResponse 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"`
	Orders  []*OrderProto `protobuf:"bytes,3,rep,name=orders,proto3" json:"orders,omitempty"`
	Total   uint32        `protobuf:"varint,4,opt,name=total,proto3" json:"total,omitempty"`
	// contains filtered or unexported fields
}

func (*GetOrderListResponse) Descriptor deprecated

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

Deprecated: Use GetOrderListResponse.ProtoReflect.Descriptor instead.

func (*GetOrderListResponse) GetCode

func (x *GetOrderListResponse) GetCode() int32

func (*GetOrderListResponse) GetMessage

func (x *GetOrderListResponse) GetMessage() string

func (*GetOrderListResponse) GetOrders

func (x *GetOrderListResponse) GetOrders() []*OrderProto

func (*GetOrderListResponse) GetTotal

func (x *GetOrderListResponse) GetTotal() uint32

func (*GetOrderListResponse) ProtoMessage

func (*GetOrderListResponse) ProtoMessage()

func (*GetOrderListResponse) ProtoReflect

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

func (*GetOrderListResponse) Reset

func (x *GetOrderListResponse) Reset()

func (*GetOrderListResponse) String

func (x *GetOrderListResponse) String() string

func (*GetOrderListResponse) Validate

func (m *GetOrderListResponse) Validate() error

Validate checks the field values on GetOrderListResponse 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 (*GetOrderListResponse) ValidateAll

func (m *GetOrderListResponse) ValidateAll() error

ValidateAll checks the field values on GetOrderListResponse 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 GetOrderListResponseMultiError, or nil if none found.

type GetOrderListResponseMultiError

type GetOrderListResponseMultiError []error

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

func (GetOrderListResponseMultiError) AllErrors

func (m GetOrderListResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetOrderListResponseMultiError) Error

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

type GetOrderListResponseValidationError

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

GetOrderListResponseValidationError is the validation error returned by GetOrderListResponse.Validate if the designated constraints aren't met.

func (GetOrderListResponseValidationError) Cause

Cause function returns cause value.

func (GetOrderListResponseValidationError) Error

Error satisfies the builtin error interface

func (GetOrderListResponseValidationError) ErrorName

ErrorName returns error name.

func (GetOrderListResponseValidationError) Field

Field function returns field value.

func (GetOrderListResponseValidationError) Key

Key function returns key value.

func (GetOrderListResponseValidationError) Reason

Reason function returns reason value.

type OrderAdminErrorReason

type OrderAdminErrorReason int32
const (
	OrderAdminErrorReason_ORDER_ADMIN_ERROR_REASON_UNSPECIFIED OrderAdminErrorReason = 0
	OrderAdminErrorReason_ORDER_ADMIN_ERROR_REASON_SERVER      OrderAdminErrorReason = 1
	OrderAdminErrorReason_ORDER_ADMIN_ERROR_REASON_ID          OrderAdminErrorReason = 2
)

func (OrderAdminErrorReason) Descriptor

func (OrderAdminErrorReason) Enum

func (OrderAdminErrorReason) EnumDescriptor deprecated

func (OrderAdminErrorReason) EnumDescriptor() ([]byte, []int)

Deprecated: Use OrderAdminErrorReason.Descriptor instead.

func (OrderAdminErrorReason) Number

func (OrderAdminErrorReason) String

func (x OrderAdminErrorReason) String() string

func (OrderAdminErrorReason) Type

type OrderProto

type OrderProto struct {
	Store       string `protobuf:"bytes,1,opt,name=store,proto3" json:"store,omitempty"`
	TransId     string `protobuf:"bytes,2,opt,name=trans_id,json=transId,proto3" json:"trans_id,omitempty"`
	Ack         int32  `protobuf:"varint,3,opt,name=ack,proto3" json:"ack,omitempty"`
	Uid         int64  `protobuf:"varint,4,opt,name=uid,proto3" json:"uid,omitempty"`
	ProductId   string `protobuf:"bytes,5,opt,name=product_id,json=productId,proto3" json:"product_id,omitempty"`
	PurchasedAt int64  `protobuf:"varint,6,opt,name=purchased_at,json=purchasedAt,proto3" json:"purchased_at,omitempty"`
	AckAt       int64  `protobuf:"varint,7,opt,name=ack_at,json=ackAt,proto3" json:"ack_at,omitempty"`
	Detail      string `protobuf:"bytes,8,opt,name=detail,proto3" json:"detail,omitempty"`
	// contains filtered or unexported fields
}

func (*OrderProto) Descriptor deprecated

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

Deprecated: Use OrderProto.ProtoReflect.Descriptor instead.

func (*OrderProto) GetAck

func (x *OrderProto) GetAck() int32

func (*OrderProto) GetAckAt

func (x *OrderProto) GetAckAt() int64

func (*OrderProto) GetDetail

func (x *OrderProto) GetDetail() string

func (*OrderProto) GetProductId

func (x *OrderProto) GetProductId() string

func (*OrderProto) GetPurchasedAt

func (x *OrderProto) GetPurchasedAt() int64

func (*OrderProto) GetStore

func (x *OrderProto) GetStore() string

func (*OrderProto) GetTransId

func (x *OrderProto) GetTransId() string

func (*OrderProto) GetUid

func (x *OrderProto) GetUid() int64

func (*OrderProto) ProtoMessage

func (*OrderProto) ProtoMessage()

func (*OrderProto) ProtoReflect

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

func (*OrderProto) Reset

func (x *OrderProto) Reset()

func (*OrderProto) String

func (x *OrderProto) String() string

func (*OrderProto) Validate

func (m *OrderProto) Validate() error

Validate checks the field values on OrderProto 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 (*OrderProto) ValidateAll

func (m *OrderProto) ValidateAll() error

ValidateAll checks the field values on OrderProto 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 OrderProtoMultiError, or nil if none found.

type OrderProtoMultiError

type OrderProtoMultiError []error

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

func (OrderProtoMultiError) AllErrors

func (m OrderProtoMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (OrderProtoMultiError) Error

func (m OrderProtoMultiError) Error() string

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

type OrderProtoValidationError

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

OrderProtoValidationError is the validation error returned by OrderProto.Validate if the designated constraints aren't met.

func (OrderProtoValidationError) Cause

func (e OrderProtoValidationError) Cause() error

Cause function returns cause value.

func (OrderProtoValidationError) Error

Error satisfies the builtin error interface

func (OrderProtoValidationError) ErrorName

func (e OrderProtoValidationError) ErrorName() string

ErrorName returns error name.

func (OrderProtoValidationError) Field

Field function returns field value.

func (OrderProtoValidationError) Key

Key function returns key value.

func (OrderProtoValidationError) Reason

func (e OrderProtoValidationError) Reason() string

Reason function returns reason value.

type RechargeAdminClient

type RechargeAdminClient interface {
	// Query order list by page
	GetOrderList(ctx context.Context, in *GetOrderListRequest, opts ...grpc.CallOption) (*GetOrderListResponse, error)
	// Query order by id
	GetOrderById(ctx context.Context, in *GetOrderByIdRequest, opts ...grpc.CallOption) (*GetOrderByIdResponse, error)
	// Update order confirmation status by id
	UpdateOrderAckStateById(ctx context.Context, in *UpdateOrderAckStateByIdRequest, opts ...grpc.CallOption) (*UpdateOrderAckStateByIdResponse, error)
}

RechargeAdminClient is the client API for RechargeAdmin 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.

Recharge admin service Open to the server cluster Provide HTTP and gRPC interfaces

type RechargeAdminHTTPClient

type RechargeAdminHTTPClient interface {
	GetOrderById(ctx context.Context, req *GetOrderByIdRequest, opts ...http.CallOption) (rsp *GetOrderByIdResponse, err error)
	GetOrderList(ctx context.Context, req *GetOrderListRequest, opts ...http.CallOption) (rsp *GetOrderListResponse, err error)
	UpdateOrderAckStateById(ctx context.Context, req *UpdateOrderAckStateByIdRequest, opts ...http.CallOption) (rsp *UpdateOrderAckStateByIdResponse, err error)
}

func NewRechargeAdminHTTPClient

func NewRechargeAdminHTTPClient(client *http.Client) RechargeAdminHTTPClient

type RechargeAdminHTTPClientImpl

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

func (*RechargeAdminHTTPClientImpl) GetOrderById

func (*RechargeAdminHTTPClientImpl) GetOrderList

func (*RechargeAdminHTTPClientImpl) UpdateOrderAckStateById

type RechargeAdminHTTPServer

type RechargeAdminHTTPServer interface {
	// GetOrderById Query order by id
	GetOrderById(context.Context, *GetOrderByIdRequest) (*GetOrderByIdResponse, error)
	// GetOrderList Query order list by page
	GetOrderList(context.Context, *GetOrderListRequest) (*GetOrderListResponse, error)
	// UpdateOrderAckStateById Update order confirmation status by id
	UpdateOrderAckStateById(context.Context, *UpdateOrderAckStateByIdRequest) (*UpdateOrderAckStateByIdResponse, error)
}

type RechargeAdminServer

type RechargeAdminServer interface {
	// Query order list by page
	GetOrderList(context.Context, *GetOrderListRequest) (*GetOrderListResponse, error)
	// Query order by id
	GetOrderById(context.Context, *GetOrderByIdRequest) (*GetOrderByIdResponse, error)
	// Update order confirmation status by id
	UpdateOrderAckStateById(context.Context, *UpdateOrderAckStateByIdRequest) (*UpdateOrderAckStateByIdResponse, error)
	// contains filtered or unexported methods
}

RechargeAdminServer is the server API for RechargeAdmin service. All implementations must embed UnimplementedRechargeAdminServer for forward compatibility.

Recharge admin service Open to the server cluster Provide HTTP and gRPC interfaces

type UnimplementedRechargeAdminServer

type UnimplementedRechargeAdminServer struct{}

UnimplementedRechargeAdminServer 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 (UnimplementedRechargeAdminServer) GetOrderById

func (UnimplementedRechargeAdminServer) GetOrderList

type UnsafeRechargeAdminServer

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

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

type UpdateOrderAckStateByIdRequest

type UpdateOrderAckStateByIdRequest struct {
	Store   string `protobuf:"bytes,1,opt,name=store,proto3" json:"store,omitempty"`
	TransId string `protobuf:"bytes,2,opt,name=trans_id,json=transId,proto3" json:"trans_id,omitempty"`
	Ack     int32  `protobuf:"varint,3,opt,name=ack,proto3" json:"ack,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateOrderAckStateByIdRequest) Descriptor deprecated

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

Deprecated: Use UpdateOrderAckStateByIdRequest.ProtoReflect.Descriptor instead.

func (*UpdateOrderAckStateByIdRequest) GetAck

func (*UpdateOrderAckStateByIdRequest) GetStore

func (x *UpdateOrderAckStateByIdRequest) GetStore() string

func (*UpdateOrderAckStateByIdRequest) GetTransId

func (x *UpdateOrderAckStateByIdRequest) GetTransId() string

func (*UpdateOrderAckStateByIdRequest) ProtoMessage

func (*UpdateOrderAckStateByIdRequest) ProtoMessage()

func (*UpdateOrderAckStateByIdRequest) ProtoReflect

func (*UpdateOrderAckStateByIdRequest) Reset

func (x *UpdateOrderAckStateByIdRequest) Reset()

func (*UpdateOrderAckStateByIdRequest) String

func (*UpdateOrderAckStateByIdRequest) Validate

func (m *UpdateOrderAckStateByIdRequest) Validate() error

Validate checks the field values on UpdateOrderAckStateByIdRequest 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 (*UpdateOrderAckStateByIdRequest) ValidateAll

func (m *UpdateOrderAckStateByIdRequest) ValidateAll() error

ValidateAll checks the field values on UpdateOrderAckStateByIdRequest 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 UpdateOrderAckStateByIdRequestMultiError, or nil if none found.

type UpdateOrderAckStateByIdRequestMultiError

type UpdateOrderAckStateByIdRequestMultiError []error

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

func (UpdateOrderAckStateByIdRequestMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (UpdateOrderAckStateByIdRequestMultiError) Error

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

type UpdateOrderAckStateByIdRequestValidationError

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

UpdateOrderAckStateByIdRequestValidationError is the validation error returned by UpdateOrderAckStateByIdRequest.Validate if the designated constraints aren't met.

func (UpdateOrderAckStateByIdRequestValidationError) Cause

Cause function returns cause value.

func (UpdateOrderAckStateByIdRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdateOrderAckStateByIdRequestValidationError) ErrorName

ErrorName returns error name.

func (UpdateOrderAckStateByIdRequestValidationError) Field

Field function returns field value.

func (UpdateOrderAckStateByIdRequestValidationError) Key

Key function returns key value.

func (UpdateOrderAckStateByIdRequestValidationError) Reason

Reason function returns reason value.

type UpdateOrderAckStateByIdResponse

type UpdateOrderAckStateByIdResponse 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
}

func (*UpdateOrderAckStateByIdResponse) Descriptor deprecated

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

Deprecated: Use UpdateOrderAckStateByIdResponse.ProtoReflect.Descriptor instead.

func (*UpdateOrderAckStateByIdResponse) GetCode

func (*UpdateOrderAckStateByIdResponse) GetMessage

func (x *UpdateOrderAckStateByIdResponse) GetMessage() string

func (*UpdateOrderAckStateByIdResponse) ProtoMessage

func (*UpdateOrderAckStateByIdResponse) ProtoMessage()

func (*UpdateOrderAckStateByIdResponse) ProtoReflect

func (*UpdateOrderAckStateByIdResponse) Reset

func (*UpdateOrderAckStateByIdResponse) String

func (*UpdateOrderAckStateByIdResponse) Validate

func (m *UpdateOrderAckStateByIdResponse) Validate() error

Validate checks the field values on UpdateOrderAckStateByIdResponse 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 (*UpdateOrderAckStateByIdResponse) ValidateAll

func (m *UpdateOrderAckStateByIdResponse) ValidateAll() error

ValidateAll checks the field values on UpdateOrderAckStateByIdResponse 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 UpdateOrderAckStateByIdResponseMultiError, or nil if none found.

type UpdateOrderAckStateByIdResponseMultiError

type UpdateOrderAckStateByIdResponseMultiError []error

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

func (UpdateOrderAckStateByIdResponseMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (UpdateOrderAckStateByIdResponseMultiError) Error

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

type UpdateOrderAckStateByIdResponseValidationError

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

UpdateOrderAckStateByIdResponseValidationError is the validation error returned by UpdateOrderAckStateByIdResponse.Validate if the designated constraints aren't met.

func (UpdateOrderAckStateByIdResponseValidationError) Cause

Cause function returns cause value.

func (UpdateOrderAckStateByIdResponseValidationError) Error

Error satisfies the builtin error interface

func (UpdateOrderAckStateByIdResponseValidationError) ErrorName

ErrorName returns error name.

func (UpdateOrderAckStateByIdResponseValidationError) Field

Field function returns field value.

func (UpdateOrderAckStateByIdResponseValidationError) Key

Key function returns key value.

func (UpdateOrderAckStateByIdResponseValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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