Documentation ¶
Overview ¶
Package order_business is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterOrderBusinessServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterOrderBusinessServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client OrderBusinessServiceClient) error
- func RegisterOrderBusinessServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterOrderBusinessServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server OrderBusinessServiceServer) error
- func RegisterOrderBusinessServiceServer(s *grpc.Server, srv OrderBusinessServiceServer)
- type AccountState
- func (AccountState) Descriptor() protoreflect.EnumDescriptor
- func (x AccountState) Enum() *AccountState
- func (AccountState) EnumDescriptor() ([]byte, []int)deprecated
- func (x AccountState) Number() protoreflect.EnumNumber
- func (x AccountState) String() string
- func (AccountState) Type() protoreflect.EnumType
- type AccountType
- func (AccountType) Descriptor() protoreflect.EnumDescriptor
- func (x AccountType) Enum() *AccountType
- func (AccountType) EnumDescriptor() ([]byte, []int)deprecated
- func (x AccountType) Number() protoreflect.EnumNumber
- func (x AccountType) String() string
- func (AccountType) Type() protoreflect.EnumType
- type CheckOrderExistRequest
- func (*CheckOrderExistRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CheckOrderExistRequest) GetOrderTxCode() string
- func (x *CheckOrderExistRequest) GetUid() int64
- func (*CheckOrderExistRequest) ProtoMessage()
- func (x *CheckOrderExistRequest) ProtoReflect() protoreflect.Message
- func (x *CheckOrderExistRequest) Reset()
- func (x *CheckOrderExistRequest) String() string
- type CheckOrderExistResponse
- func (*CheckOrderExistResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CheckOrderExistResponse) GetCommon() *CommonResponse
- func (x *CheckOrderExistResponse) GetIsExist() bool
- func (*CheckOrderExistResponse) ProtoMessage()
- func (x *CheckOrderExistResponse) ProtoReflect() protoreflect.Message
- func (x *CheckOrderExistResponse) Reset()
- func (x *CheckOrderExistResponse) String() string
- type CheckOrderStateRequest
- func (*CheckOrderStateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CheckOrderStateRequest) GetOrderCodes() []string
- func (*CheckOrderStateRequest) ProtoMessage()
- func (x *CheckOrderStateRequest) ProtoReflect() protoreflect.Message
- func (x *CheckOrderStateRequest) Reset()
- func (x *CheckOrderStateRequest) String() string
- type CheckOrderStateResponse
- func (*CheckOrderStateResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CheckOrderStateResponse) GetCommon() *CommonResponse
- func (x *CheckOrderStateResponse) GetList() []*OrderState
- func (*CheckOrderStateResponse) ProtoMessage()
- func (x *CheckOrderStateResponse) ProtoReflect() protoreflect.Message
- func (x *CheckOrderStateResponse) Reset()
- func (x *CheckOrderStateResponse) String() string
- type CoinType
- type CommonResponse
- func (*CommonResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CommonResponse) GetCode() RetCode
- func (x *CommonResponse) GetMsg() string
- func (*CommonResponse) ProtoMessage()
- func (x *CommonResponse) ProtoReflect() protoreflect.Message
- func (x *CommonResponse) Reset()
- func (x *CommonResponse) String() string
- type CreateOrderRequest
- func (*CreateOrderRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateOrderRequest) GetDeliveryInfo() *OrderDeliveryInfo
- func (x *CreateOrderRequest) GetDescription() string
- func (x *CreateOrderRequest) GetDetail() *OrderDetail
- func (x *CreateOrderRequest) GetDeviceId() string
- func (x *CreateOrderRequest) GetOrderTxCode() string
- func (x *CreateOrderRequest) GetPayerClientIp() string
- func (x *CreateOrderRequest) GetTime() string
- func (x *CreateOrderRequest) GetUid() int64
- func (*CreateOrderRequest) ProtoMessage()
- func (x *CreateOrderRequest) ProtoReflect() protoreflect.Message
- func (x *CreateOrderRequest) Reset()
- func (x *CreateOrderRequest) String() string
- type CreateOrderResponse
- func (*CreateOrderResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateOrderResponse) GetCommon() *CommonResponse
- func (x *CreateOrderResponse) GetTxCode() string
- func (*CreateOrderResponse) ProtoMessage()
- func (x *CreateOrderResponse) ProtoReflect() protoreflect.Message
- func (x *CreateOrderResponse) Reset()
- func (x *CreateOrderResponse) String() string
- type FiltrateTimeMeta
- func (*FiltrateTimeMeta) Descriptor() ([]byte, []int)deprecated
- func (x *FiltrateTimeMeta) GetEndTime() string
- func (x *FiltrateTimeMeta) GetStartTime() string
- func (*FiltrateTimeMeta) ProtoMessage()
- func (x *FiltrateTimeMeta) ProtoReflect() protoreflect.Message
- func (x *FiltrateTimeMeta) Reset()
- func (x *FiltrateTimeMeta) String() string
- type FindOrderListRequest
- func (*FindOrderListRequest) Descriptor() ([]byte, []int)deprecated
- func (x *FindOrderListRequest) GetPageMeta() *PageMeta
- func (x *FindOrderListRequest) GetShopIdList() []int64
- func (x *FindOrderListRequest) GetTimeMeta() *FiltrateTimeMeta
- func (x *FindOrderListRequest) GetUidList() []int64
- func (*FindOrderListRequest) ProtoMessage()
- func (x *FindOrderListRequest) ProtoReflect() protoreflect.Message
- func (x *FindOrderListRequest) Reset()
- func (x *FindOrderListRequest) String() string
- type FindOrderListResponse
- func (*FindOrderListResponse) Descriptor() ([]byte, []int)deprecated
- func (x *FindOrderListResponse) GetCommon() *CommonResponse
- func (x *FindOrderListResponse) GetList() []*OrderListEntry
- func (x *FindOrderListResponse) GetTotal() int64
- func (*FindOrderListResponse) ProtoMessage()
- func (x *FindOrderListResponse) ProtoReflect() protoreflect.Message
- func (x *FindOrderListResponse) Reset()
- func (x *FindOrderListResponse) String() string
- type GenOrderTxCodeRequest
- func (*GenOrderTxCodeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GenOrderTxCodeRequest) GetUid() int64
- func (*GenOrderTxCodeRequest) ProtoMessage()
- func (x *GenOrderTxCodeRequest) ProtoReflect() protoreflect.Message
- func (x *GenOrderTxCodeRequest) Reset()
- func (x *GenOrderTxCodeRequest) String() string
- type GenOrderTxCodeResponse
- func (*GenOrderTxCodeResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GenOrderTxCodeResponse) GetCommon() *CommonResponse
- func (x *GenOrderTxCodeResponse) GetOrderTxCode() string
- func (*GenOrderTxCodeResponse) ProtoMessage()
- func (x *GenOrderTxCodeResponse) ProtoReflect() protoreflect.Message
- func (x *GenOrderTxCodeResponse) Reset()
- func (x *GenOrderTxCodeResponse) String() string
- type GetOrderDetailRequest
- func (*GetOrderDetailRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetOrderDetailRequest) GetTxCode() string
- func (*GetOrderDetailRequest) ProtoMessage()
- func (x *GetOrderDetailRequest) ProtoReflect() protoreflect.Message
- func (x *GetOrderDetailRequest) Reset()
- func (x *GetOrderDetailRequest) String() string
- type GetOrderDetailResponse
- func (*GetOrderDetailResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetOrderDetailResponse) GetAccount() string
- func (x *GetOrderDetailResponse) GetCoinType() CoinType
- func (x *GetOrderDetailResponse) GetCommon() *CommonResponse
- func (x *GetOrderDetailResponse) GetList() []*ShopOrderDetail
- func (*GetOrderDetailResponse) ProtoMessage()
- func (x *GetOrderDetailResponse) ProtoReflect() protoreflect.Message
- func (x *GetOrderDetailResponse) Reset()
- func (x *GetOrderDetailResponse) String() string
- type GetOrderSkuRequest
- func (*GetOrderSkuRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetOrderSkuRequest) GetTxCode() string
- func (*GetOrderSkuRequest) ProtoMessage()
- func (x *GetOrderSkuRequest) ProtoReflect() protoreflect.Message
- func (x *GetOrderSkuRequest) Reset()
- func (x *GetOrderSkuRequest) String() string
- type GetOrderSkuResponse
- func (*GetOrderSkuResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetOrderSkuResponse) GetCommon() *CommonResponse
- func (x *GetOrderSkuResponse) GetOrderList() []*OrderSku
- func (*GetOrderSkuResponse) ProtoMessage()
- func (x *GetOrderSkuResponse) ProtoReflect() protoreflect.Message
- func (x *GetOrderSkuResponse) Reset()
- func (x *GetOrderSkuResponse) String() string
- type InspectShopOrderRequest
- func (*InspectShopOrderRequest) Descriptor() ([]byte, []int)deprecated
- func (x *InspectShopOrderRequest) GetOrderCode() string
- func (x *InspectShopOrderRequest) GetShopId() int64
- func (x *InspectShopOrderRequest) GetUid() int64
- func (*InspectShopOrderRequest) ProtoMessage()
- func (x *InspectShopOrderRequest) ProtoReflect() protoreflect.Message
- func (x *InspectShopOrderRequest) Reset()
- func (x *InspectShopOrderRequest) String() string
- type InspectShopOrderResponse
- func (*InspectShopOrderResponse) Descriptor() ([]byte, []int)deprecated
- func (x *InspectShopOrderResponse) GetCommon() *CommonResponse
- func (*InspectShopOrderResponse) ProtoMessage()
- func (x *InspectShopOrderResponse) ProtoReflect() protoreflect.Message
- func (x *InspectShopOrderResponse) Reset()
- func (x *InspectShopOrderResponse) String() string
- type OperationMeta
- func (*OperationMeta) Descriptor() ([]byte, []int)deprecated
- func (x *OperationMeta) GetOpDevice() string
- func (x *OperationMeta) GetOpIp() string
- func (x *OperationMeta) GetOpPlatform() string
- func (x *OperationMeta) GetOpUid() int64
- func (*OperationMeta) ProtoMessage()
- func (x *OperationMeta) ProtoReflect() protoreflect.Message
- func (x *OperationMeta) Reset()
- func (x *OperationMeta) String() string
- type OperationType
- func (OperationType) Descriptor() protoreflect.EnumDescriptor
- func (x OperationType) Enum() *OperationType
- func (OperationType) EnumDescriptor() ([]byte, []int)deprecated
- func (x OperationType) Number() protoreflect.EnumNumber
- func (x OperationType) String() string
- func (OperationType) Type() protoreflect.EnumType
- type OrderBusinessServiceClient
- type OrderBusinessServiceServer
- type OrderDeliveryInfo
- func (*OrderDeliveryInfo) Descriptor() ([]byte, []int)deprecated
- func (x *OrderDeliveryInfo) GetUserDeliveryId() int32
- func (*OrderDeliveryInfo) ProtoMessage()
- func (x *OrderDeliveryInfo) ProtoReflect() protoreflect.Message
- func (x *OrderDeliveryInfo) Reset()
- func (x *OrderDeliveryInfo) String() string
- type OrderDetail
- type OrderEntry
- func (*OrderEntry) Descriptor() ([]byte, []int)deprecated
- func (x *OrderEntry) GetOrderCode() string
- func (x *OrderEntry) GetTimeExpire() string
- func (*OrderEntry) ProtoMessage()
- func (x *OrderEntry) ProtoReflect() protoreflect.Message
- func (x *OrderEntry) Reset()
- func (x *OrderEntry) String() string
- type OrderGoods
- func (*OrderGoods) Descriptor() ([]byte, []int)deprecated
- func (x *OrderGoods) GetAmount() int64
- func (x *OrderGoods) GetName() string
- func (x *OrderGoods) GetPrice() string
- func (x *OrderGoods) GetReduction() string
- func (x *OrderGoods) GetSkuCode() string
- func (x *OrderGoods) GetVersion() int64
- func (*OrderGoods) ProtoMessage()
- func (x *OrderGoods) ProtoReflect() protoreflect.Message
- func (x *OrderGoods) Reset()
- func (x *OrderGoods) String() string
- type OrderListEntry
- func (*OrderListEntry) Descriptor() ([]byte, []int)deprecated
- func (x *OrderListEntry) GetClientIp() string
- func (x *OrderListEntry) GetCreateTime() string
- func (x *OrderListEntry) GetDescription() string
- func (x *OrderListEntry) GetDeviceCode() string
- func (x *OrderListEntry) GetMoney() string
- func (x *OrderListEntry) GetOrderCode() string
- func (x *OrderListEntry) GetPayState() OrderPayStateType
- func (x *OrderListEntry) GetShopId() int64
- func (x *OrderListEntry) GetState() OrderStateType
- func (x *OrderListEntry) GetUid() int64
- func (*OrderListEntry) ProtoMessage()
- func (x *OrderListEntry) ProtoReflect() protoreflect.Message
- func (x *OrderListEntry) Reset()
- func (x *OrderListEntry) String() string
- type OrderPayStateType
- func (OrderPayStateType) Descriptor() protoreflect.EnumDescriptor
- func (x OrderPayStateType) Enum() *OrderPayStateType
- func (OrderPayStateType) EnumDescriptor() ([]byte, []int)deprecated
- func (x OrderPayStateType) Number() protoreflect.EnumNumber
- func (x OrderPayStateType) String() string
- func (OrderPayStateType) Type() protoreflect.EnumType
- type OrderSceneInfo
- type OrderShopDetail
- func (*OrderShopDetail) Descriptor() ([]byte, []int)deprecated
- func (x *OrderShopDetail) GetCoinType() CoinType
- func (x *OrderShopDetail) GetGoods() []*OrderGoods
- func (x *OrderShopDetail) GetSceneInfo() *OrderSceneInfo
- func (x *OrderShopDetail) GetShopId() int64
- func (*OrderShopDetail) ProtoMessage()
- func (x *OrderShopDetail) ProtoReflect() protoreflect.Message
- func (x *OrderShopDetail) Reset()
- func (x *OrderShopDetail) String() string
- type OrderSku
- type OrderState
- func (*OrderState) Descriptor() ([]byte, []int)deprecated
- func (x *OrderState) GetIsExist() bool
- func (x *OrderState) GetOrderCode() string
- func (x *OrderState) GetPayState() OrderPayStateType
- func (x *OrderState) GetState() OrderStateType
- func (*OrderState) ProtoMessage()
- func (x *OrderState) ProtoReflect() protoreflect.Message
- func (x *OrderState) Reset()
- func (x *OrderState) String() string
- type OrderStateEntry
- func (*OrderStateEntry) Descriptor() ([]byte, []int)deprecated
- func (x *OrderStateEntry) GetOrderCode() string
- func (x *OrderStateEntry) GetPayState() OrderPayStateType
- func (x *OrderStateEntry) GetState() OrderStateType
- func (*OrderStateEntry) ProtoMessage()
- func (x *OrderStateEntry) ProtoReflect() protoreflect.Message
- func (x *OrderStateEntry) Reset()
- func (x *OrderStateEntry) String() string
- type OrderStateType
- func (OrderStateType) Descriptor() protoreflect.EnumDescriptor
- func (x OrderStateType) Enum() *OrderStateType
- func (OrderStateType) EnumDescriptor() ([]byte, []int)deprecated
- func (x OrderStateType) Number() protoreflect.EnumNumber
- func (x OrderStateType) String() string
- func (OrderStateType) Type() protoreflect.EnumType
- type OrderTradeNoticeRequest
- func (*OrderTradeNoticeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *OrderTradeNoticeRequest) GetOrderTxCode() string
- func (x *OrderTradeNoticeRequest) GetPayId() string
- func (x *OrderTradeNoticeRequest) GetUid() int64
- func (*OrderTradeNoticeRequest) ProtoMessage()
- func (x *OrderTradeNoticeRequest) ProtoReflect() protoreflect.Message
- func (x *OrderTradeNoticeRequest) Reset()
- func (x *OrderTradeNoticeRequest) String() string
- type OrderTradeNoticeResponse
- func (*OrderTradeNoticeResponse) Descriptor() ([]byte, []int)deprecated
- func (x *OrderTradeNoticeResponse) GetCommon() *CommonResponse
- func (*OrderTradeNoticeResponse) ProtoMessage()
- func (x *OrderTradeNoticeResponse) ProtoReflect() protoreflect.Message
- func (x *OrderTradeNoticeResponse) Reset()
- func (x *OrderTradeNoticeResponse) String() string
- type PageMeta
- type RetCode
- type ShopOrderDetail
- func (*ShopOrderDetail) Descriptor() ([]byte, []int)deprecated
- func (x *ShopOrderDetail) GetDescription() string
- func (x *ShopOrderDetail) GetDetail() *TradeGoodsDetail
- func (x *ShopOrderDetail) GetMerchant() string
- func (x *ShopOrderDetail) GetNotifyUrl() string
- func (x *ShopOrderDetail) GetOrderCode() string
- func (x *ShopOrderDetail) GetTimeExpire() string
- func (*ShopOrderDetail) ProtoMessage()
- func (x *ShopOrderDetail) ProtoReflect() protoreflect.Message
- func (x *ShopOrderDetail) Reset()
- func (x *ShopOrderDetail) String() string
- type StoreInfo
- func (*StoreInfo) Descriptor() ([]byte, []int)deprecated
- func (x *StoreInfo) GetAddress() string
- func (x *StoreInfo) GetAreaCode() string
- func (x *StoreInfo) GetId() int64
- func (x *StoreInfo) GetName() string
- func (*StoreInfo) ProtoMessage()
- func (x *StoreInfo) ProtoReflect() protoreflect.Message
- func (x *StoreInfo) Reset()
- func (x *StoreInfo) String() string
- type TradeGoodsDetail
- type UnimplementedOrderBusinessServiceServer
- func (*UnimplementedOrderBusinessServiceServer) CheckOrderExist(context.Context, *CheckOrderExistRequest) (*CheckOrderExistResponse, error)
- func (*UnimplementedOrderBusinessServiceServer) CheckOrderState(context.Context, *CheckOrderStateRequest) (*CheckOrderStateResponse, error)
- func (*UnimplementedOrderBusinessServiceServer) CreateOrder(context.Context, *CreateOrderRequest) (*CreateOrderResponse, error)
- func (*UnimplementedOrderBusinessServiceServer) FindOrderList(context.Context, *FindOrderListRequest) (*FindOrderListResponse, error)
- func (*UnimplementedOrderBusinessServiceServer) GenOrderTxCode(context.Context, *GenOrderTxCodeRequest) (*GenOrderTxCodeResponse, error)
- func (*UnimplementedOrderBusinessServiceServer) GetOrderDetail(context.Context, *GetOrderDetailRequest) (*GetOrderDetailResponse, error)
- func (*UnimplementedOrderBusinessServiceServer) GetOrderSku(context.Context, *GetOrderSkuRequest) (*GetOrderSkuResponse, error)
- func (*UnimplementedOrderBusinessServiceServer) InspectShopOrder(context.Context, *InspectShopOrderRequest) (*InspectShopOrderResponse, error)
- func (*UnimplementedOrderBusinessServiceServer) OrderTradeNotice(context.Context, *OrderTradeNoticeRequest) (*OrderTradeNoticeResponse, error)
- func (*UnimplementedOrderBusinessServiceServer) UpdateOrderState(context.Context, *UpdateOrderStateRequest) (*UpdateOrderStateResponse, error)
- type UpdateOrderStateRequest
- func (*UpdateOrderStateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateOrderStateRequest) GetEntryList() []*OrderStateEntry
- func (x *UpdateOrderStateRequest) GetOperationMeta() *OperationMeta
- func (*UpdateOrderStateRequest) ProtoMessage()
- func (x *UpdateOrderStateRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateOrderStateRequest) Reset()
- func (x *UpdateOrderStateRequest) String() string
- type UpdateOrderStateResponse
- func (*UpdateOrderStateResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateOrderStateResponse) GetCommon() *CommonResponse
- func (*UpdateOrderStateResponse) ProtoMessage()
- func (x *UpdateOrderStateResponse) ProtoReflect() protoreflect.Message
- func (x *UpdateOrderStateResponse) Reset()
- func (x *UpdateOrderStateResponse) String() string
Constants ¶
This section is empty.
Variables ¶
var ( RetCode_name = map[int32]string{ 0: "SUCCESS", 500: "ERROR", 40000: "ERR_REQUEST_DATA_FORMAT", 50001: "USER_NOT_EXIST", 50002: "USER_EXIST", 50003: "MERCHANT_NOT_EXIST", 50004: "MERCHANT_EXIST", 50005: "SHOP_NOT_EXIST", 50006: "SHOP_EXIST", 50007: "SKU_NOT_EXIST", 50008: "SKU_EXIST", 50009: "SKU_AMOUNT_NOT_ENOUGH", 50010: "TRANSACTION_FAILED", 50011: "ORDER_NOT_EXIST", 50012: "ORDER_EXIST", 50013: "ORDER_STATE_PROHIBIT", 50014: "ORDER_STATE_LOCKED", 50015: "OPERATION_NOT_EFFECT", 50016: "ORDER_TX_CODE_EMPTY", 50017: "ORDER_DELIVERY_NOT_EXIST", 50018: "ORDER_TX_CODE_NOT_EXIST", 50019: "SKU_PRICE_VERSION_NOT_EXIST", 50020: "ORDER_PAY_COMPLETED", 50021: "ORDER_EXPIRE", 50022: "ORDER_STATE_INVALID", 50023: "REQUEST_DATA_TOO_MUCH", } RetCode_value = map[string]int32{ "SUCCESS": 0, "ERROR": 500, "ERR_REQUEST_DATA_FORMAT": 40000, "USER_NOT_EXIST": 50001, "USER_EXIST": 50002, "MERCHANT_NOT_EXIST": 50003, "MERCHANT_EXIST": 50004, "SHOP_NOT_EXIST": 50005, "SHOP_EXIST": 50006, "SKU_NOT_EXIST": 50007, "SKU_EXIST": 50008, "SKU_AMOUNT_NOT_ENOUGH": 50009, "TRANSACTION_FAILED": 50010, "ORDER_NOT_EXIST": 50011, "ORDER_EXIST": 50012, "ORDER_STATE_PROHIBIT": 50013, "ORDER_STATE_LOCKED": 50014, "OPERATION_NOT_EFFECT": 50015, "ORDER_TX_CODE_EMPTY": 50016, "ORDER_DELIVERY_NOT_EXIST": 50017, "ORDER_TX_CODE_NOT_EXIST": 50018, "SKU_PRICE_VERSION_NOT_EXIST": 50019, "ORDER_PAY_COMPLETED": 50020, "ORDER_EXPIRE": 50021, "ORDER_STATE_INVALID": 50022, "REQUEST_DATA_TOO_MUCH": 50023, } )
Enum value maps for RetCode.
var ( OperationType_name = map[int32]string{ 0: "CREATE", 1: "UPDATE", 2: "DELETE", 3: "AUDIT", 4: "PUT_AWAY", } OperationType_value = map[string]int32{ "CREATE": 0, "UPDATE": 1, "DELETE": 2, "AUDIT": 3, "PUT_AWAY": 4, } )
Enum value maps for OperationType.
var ( CoinType_name = map[int32]string{ 0: "CNY", 1: "USD", } CoinType_value = map[string]int32{ "CNY": 0, "USD": 1, } )
Enum value maps for CoinType.
var ( AccountState_name = map[int32]string{ 0: "NORMAL", 1: "LOCK", 2: "INVALID", } AccountState_value = map[string]int32{ "NORMAL": 0, "LOCK": 1, "INVALID": 2, } )
Enum value maps for AccountState.
var ( AccountType_name = map[int32]string{ 0: "PERSONAL", 1: "COMPANY", 2: "SYSTEM", } AccountType_value = map[string]int32{ "PERSONAL": 0, "COMPANY": 1, "SYSTEM": 2, } )
Enum value maps for AccountType.
var ( OrderStateType_name = map[int32]string{ 0: "ORDER_EFFECTIVE", 1: "ORDER_LOCKED", 2: "ORDER_INVALID", } OrderStateType_value = map[string]int32{ "ORDER_EFFECTIVE": 0, "ORDER_LOCKED": 1, "ORDER_INVALID": 2, } )
Enum value maps for OrderStateType.
var ( OrderPayStateType_name = map[int32]string{ 0: "PAY_READY", 1: "PAY_RUN", 2: "PAY_FAILED", 3: "PAY_SUCCESS", 4: "PAY_CANCEL", } OrderPayStateType_value = map[string]int32{ "PAY_READY": 0, "PAY_RUN": 1, "PAY_FAILED": 2, "PAY_SUCCESS": 3, "PAY_CANCEL": 4, } )
Enum value maps for OrderPayStateType.
var File_proto_micro_mall_order_proto_order_business_order_business_proto protoreflect.FileDescriptor
Functions ¶
func RegisterOrderBusinessServiceHandler ¶
func RegisterOrderBusinessServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterOrderBusinessServiceHandler registers the http handlers for service OrderBusinessService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterOrderBusinessServiceHandlerClient ¶
func RegisterOrderBusinessServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client OrderBusinessServiceClient) error
RegisterOrderBusinessServiceHandlerClient registers the http handlers for service OrderBusinessService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "OrderBusinessServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "OrderBusinessServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "OrderBusinessServiceClient" to call the correct interceptors.
func RegisterOrderBusinessServiceHandlerFromEndpoint ¶
func RegisterOrderBusinessServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterOrderBusinessServiceHandlerFromEndpoint is same as RegisterOrderBusinessServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterOrderBusinessServiceHandlerServer ¶
func RegisterOrderBusinessServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server OrderBusinessServiceServer) error
RegisterOrderBusinessServiceHandlerServer registers the http handlers for service OrderBusinessService to "mux". UnaryRPC :call OrderBusinessServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features (such as grpc.SendHeader, etc) to stop working. Consider using RegisterOrderBusinessServiceHandlerFromEndpoint instead.
func RegisterOrderBusinessServiceServer ¶
func RegisterOrderBusinessServiceServer(s *grpc.Server, srv OrderBusinessServiceServer)
Types ¶
type AccountState ¶
type AccountState int32
const ( AccountState_NORMAL AccountState = 0 AccountState_LOCK AccountState = 1 AccountState_INVALID AccountState = 2 )
func (AccountState) Descriptor ¶
func (AccountState) Descriptor() protoreflect.EnumDescriptor
func (AccountState) Enum ¶
func (x AccountState) Enum() *AccountState
func (AccountState) EnumDescriptor
deprecated
func (AccountState) EnumDescriptor() ([]byte, []int)
Deprecated: Use AccountState.Descriptor instead.
func (AccountState) Number ¶
func (x AccountState) Number() protoreflect.EnumNumber
func (AccountState) String ¶
func (x AccountState) String() string
func (AccountState) Type ¶
func (AccountState) Type() protoreflect.EnumType
type AccountType ¶
type AccountType int32
const ( AccountType_PERSONAL AccountType = 0 AccountType_COMPANY AccountType = 1 AccountType_SYSTEM AccountType = 2 )
func (AccountType) Descriptor ¶
func (AccountType) Descriptor() protoreflect.EnumDescriptor
func (AccountType) Enum ¶
func (x AccountType) Enum() *AccountType
func (AccountType) EnumDescriptor
deprecated
func (AccountType) EnumDescriptor() ([]byte, []int)
Deprecated: Use AccountType.Descriptor instead.
func (AccountType) Number ¶
func (x AccountType) Number() protoreflect.EnumNumber
func (AccountType) String ¶
func (x AccountType) String() string
func (AccountType) Type ¶
func (AccountType) Type() protoreflect.EnumType
type CheckOrderExistRequest ¶
type CheckOrderExistRequest struct { Uid int64 `protobuf:"varint,1,opt,name=uid,proto3" json:"uid,omitempty"` OrderTxCode string `protobuf:"bytes,2,opt,name=order_tx_code,json=orderTxCode,proto3" json:"order_tx_code,omitempty"` // contains filtered or unexported fields }
func (*CheckOrderExistRequest) Descriptor
deprecated
func (*CheckOrderExistRequest) Descriptor() ([]byte, []int)
Deprecated: Use CheckOrderExistRequest.ProtoReflect.Descriptor instead.
func (*CheckOrderExistRequest) GetOrderTxCode ¶
func (x *CheckOrderExistRequest) GetOrderTxCode() string
func (*CheckOrderExistRequest) GetUid ¶
func (x *CheckOrderExistRequest) GetUid() int64
func (*CheckOrderExistRequest) ProtoMessage ¶
func (*CheckOrderExistRequest) ProtoMessage()
func (*CheckOrderExistRequest) ProtoReflect ¶
func (x *CheckOrderExistRequest) ProtoReflect() protoreflect.Message
func (*CheckOrderExistRequest) Reset ¶
func (x *CheckOrderExistRequest) Reset()
func (*CheckOrderExistRequest) String ¶
func (x *CheckOrderExistRequest) String() string
type CheckOrderExistResponse ¶
type CheckOrderExistResponse struct { Common *CommonResponse `protobuf:"bytes,1,opt,name=common,proto3" json:"common,omitempty"` IsExist bool `protobuf:"varint,2,opt,name=is_exist,json=isExist,proto3" json:"is_exist,omitempty"` // contains filtered or unexported fields }
func (*CheckOrderExistResponse) Descriptor
deprecated
func (*CheckOrderExistResponse) Descriptor() ([]byte, []int)
Deprecated: Use CheckOrderExistResponse.ProtoReflect.Descriptor instead.
func (*CheckOrderExistResponse) GetCommon ¶
func (x *CheckOrderExistResponse) GetCommon() *CommonResponse
func (*CheckOrderExistResponse) GetIsExist ¶
func (x *CheckOrderExistResponse) GetIsExist() bool
func (*CheckOrderExistResponse) ProtoMessage ¶
func (*CheckOrderExistResponse) ProtoMessage()
func (*CheckOrderExistResponse) ProtoReflect ¶
func (x *CheckOrderExistResponse) ProtoReflect() protoreflect.Message
func (*CheckOrderExistResponse) Reset ¶
func (x *CheckOrderExistResponse) Reset()
func (*CheckOrderExistResponse) String ¶
func (x *CheckOrderExistResponse) String() string
type CheckOrderStateRequest ¶
type CheckOrderStateRequest struct { OrderCodes []string `protobuf:"bytes,1,rep,name=order_codes,json=orderCodes,proto3" json:"order_codes,omitempty"` // contains filtered or unexported fields }
func (*CheckOrderStateRequest) Descriptor
deprecated
func (*CheckOrderStateRequest) Descriptor() ([]byte, []int)
Deprecated: Use CheckOrderStateRequest.ProtoReflect.Descriptor instead.
func (*CheckOrderStateRequest) GetOrderCodes ¶
func (x *CheckOrderStateRequest) GetOrderCodes() []string
func (*CheckOrderStateRequest) ProtoMessage ¶
func (*CheckOrderStateRequest) ProtoMessage()
func (*CheckOrderStateRequest) ProtoReflect ¶
func (x *CheckOrderStateRequest) ProtoReflect() protoreflect.Message
func (*CheckOrderStateRequest) Reset ¶
func (x *CheckOrderStateRequest) Reset()
func (*CheckOrderStateRequest) String ¶
func (x *CheckOrderStateRequest) String() string
type CheckOrderStateResponse ¶
type CheckOrderStateResponse struct { Common *CommonResponse `protobuf:"bytes,1,opt,name=common,proto3" json:"common,omitempty"` List []*OrderState `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"` // contains filtered or unexported fields }
func (*CheckOrderStateResponse) Descriptor
deprecated
func (*CheckOrderStateResponse) Descriptor() ([]byte, []int)
Deprecated: Use CheckOrderStateResponse.ProtoReflect.Descriptor instead.
func (*CheckOrderStateResponse) GetCommon ¶
func (x *CheckOrderStateResponse) GetCommon() *CommonResponse
func (*CheckOrderStateResponse) GetList ¶
func (x *CheckOrderStateResponse) GetList() []*OrderState
func (*CheckOrderStateResponse) ProtoMessage ¶
func (*CheckOrderStateResponse) ProtoMessage()
func (*CheckOrderStateResponse) ProtoReflect ¶
func (x *CheckOrderStateResponse) ProtoReflect() protoreflect.Message
func (*CheckOrderStateResponse) Reset ¶
func (x *CheckOrderStateResponse) Reset()
func (*CheckOrderStateResponse) String ¶
func (x *CheckOrderStateResponse) String() string
type CoinType ¶
type CoinType int32
func (CoinType) Descriptor ¶
func (CoinType) Descriptor() protoreflect.EnumDescriptor
func (CoinType) EnumDescriptor
deprecated
func (CoinType) Number ¶
func (x CoinType) Number() protoreflect.EnumNumber
func (CoinType) Type ¶
func (CoinType) Type() protoreflect.EnumType
type CommonResponse ¶
type CommonResponse struct { Code RetCode `protobuf:"varint,1,opt,name=code,proto3,enum=order_business.RetCode" json:"code,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` // contains filtered or unexported fields }
func (*CommonResponse) Descriptor
deprecated
func (*CommonResponse) Descriptor() ([]byte, []int)
Deprecated: Use CommonResponse.ProtoReflect.Descriptor instead.
func (*CommonResponse) GetCode ¶
func (x *CommonResponse) GetCode() RetCode
func (*CommonResponse) GetMsg ¶
func (x *CommonResponse) GetMsg() string
func (*CommonResponse) ProtoMessage ¶
func (*CommonResponse) ProtoMessage()
func (*CommonResponse) ProtoReflect ¶
func (x *CommonResponse) ProtoReflect() protoreflect.Message
func (*CommonResponse) Reset ¶
func (x *CommonResponse) Reset()
func (*CommonResponse) String ¶
func (x *CommonResponse) String() string
type CreateOrderRequest ¶
type CreateOrderRequest struct { Uid int64 `protobuf:"varint,1,opt,name=uid,proto3" json:"uid,omitempty"` Time string `protobuf:"bytes,2,opt,name=time,proto3" json:"time,omitempty"` Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` // 订单描述 PayerClientIp string `protobuf:"bytes,4,opt,name=payer_client_ip,json=payerClientIp,proto3" json:"payer_client_ip,omitempty"` // 用户终端IP DeviceId string `protobuf:"bytes,5,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"` // 用户设备号 OrderTxCode string `protobuf:"bytes,298,opt,name=order_tx_code,json=orderTxCode,proto3" json:"order_tx_code,omitempty"` Detail *OrderDetail `protobuf:"bytes,299,opt,name=detail,proto3" json:"detail,omitempty"` DeliveryInfo *OrderDeliveryInfo `protobuf:"bytes,300,opt,name=delivery_info,json=deliveryInfo,proto3" json:"delivery_info,omitempty"` // 订单交付信息 // contains filtered or unexported fields }
一个店铺的商品算一个订单,如果同时包含多个店铺则有多个订单
func (*CreateOrderRequest) Descriptor
deprecated
func (*CreateOrderRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateOrderRequest.ProtoReflect.Descriptor instead.
func (*CreateOrderRequest) GetDeliveryInfo ¶
func (x *CreateOrderRequest) GetDeliveryInfo() *OrderDeliveryInfo
func (*CreateOrderRequest) GetDescription ¶
func (x *CreateOrderRequest) GetDescription() string
func (*CreateOrderRequest) GetDetail ¶
func (x *CreateOrderRequest) GetDetail() *OrderDetail
func (*CreateOrderRequest) GetDeviceId ¶
func (x *CreateOrderRequest) GetDeviceId() string
func (*CreateOrderRequest) GetOrderTxCode ¶
func (x *CreateOrderRequest) GetOrderTxCode() string
func (*CreateOrderRequest) GetPayerClientIp ¶
func (x *CreateOrderRequest) GetPayerClientIp() string
func (*CreateOrderRequest) GetTime ¶
func (x *CreateOrderRequest) GetTime() string
func (*CreateOrderRequest) GetUid ¶
func (x *CreateOrderRequest) GetUid() int64
func (*CreateOrderRequest) ProtoMessage ¶
func (*CreateOrderRequest) ProtoMessage()
func (*CreateOrderRequest) ProtoReflect ¶
func (x *CreateOrderRequest) ProtoReflect() protoreflect.Message
func (*CreateOrderRequest) Reset ¶
func (x *CreateOrderRequest) Reset()
func (*CreateOrderRequest) String ¶
func (x *CreateOrderRequest) String() string
type CreateOrderResponse ¶
type CreateOrderResponse struct { Common *CommonResponse `protobuf:"bytes,1,opt,name=common,proto3" json:"common,omitempty"` TxCode string `protobuf:"bytes,2,opt,name=tx_code,json=txCode,proto3" json:"tx_code,omitempty"` // contains filtered or unexported fields }
func (*CreateOrderResponse) Descriptor
deprecated
func (*CreateOrderResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateOrderResponse.ProtoReflect.Descriptor instead.
func (*CreateOrderResponse) GetCommon ¶
func (x *CreateOrderResponse) GetCommon() *CommonResponse
func (*CreateOrderResponse) GetTxCode ¶
func (x *CreateOrderResponse) GetTxCode() string
func (*CreateOrderResponse) ProtoMessage ¶
func (*CreateOrderResponse) ProtoMessage()
func (*CreateOrderResponse) ProtoReflect ¶
func (x *CreateOrderResponse) ProtoReflect() protoreflect.Message
func (*CreateOrderResponse) Reset ¶
func (x *CreateOrderResponse) Reset()
func (*CreateOrderResponse) String ¶
func (x *CreateOrderResponse) String() string
type FiltrateTimeMeta ¶
type FiltrateTimeMeta struct { StartTime string `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` EndTime string `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` // contains filtered or unexported fields }
func (*FiltrateTimeMeta) Descriptor
deprecated
func (*FiltrateTimeMeta) Descriptor() ([]byte, []int)
Deprecated: Use FiltrateTimeMeta.ProtoReflect.Descriptor instead.
func (*FiltrateTimeMeta) GetEndTime ¶
func (x *FiltrateTimeMeta) GetEndTime() string
func (*FiltrateTimeMeta) GetStartTime ¶
func (x *FiltrateTimeMeta) GetStartTime() string
func (*FiltrateTimeMeta) ProtoMessage ¶
func (*FiltrateTimeMeta) ProtoMessage()
func (*FiltrateTimeMeta) ProtoReflect ¶
func (x *FiltrateTimeMeta) ProtoReflect() protoreflect.Message
func (*FiltrateTimeMeta) Reset ¶
func (x *FiltrateTimeMeta) Reset()
func (*FiltrateTimeMeta) String ¶
func (x *FiltrateTimeMeta) String() string
type FindOrderListRequest ¶
type FindOrderListRequest struct { ShopIdList []int64 `protobuf:"varint,1,rep,packed,name=shop_id_list,json=shopIdList,proto3" json:"shop_id_list,omitempty"` // 店铺ID,用户ID不能都为空 UidList []int64 `protobuf:"varint,2,rep,packed,name=uid_list,json=uidList,proto3" json:"uid_list,omitempty"` // 用户ID,店铺ID不能都为空 TimeMeta *FiltrateTimeMeta `protobuf:"bytes,198,opt,name=time_meta,json=timeMeta,proto3" json:"time_meta,omitempty"` // 时间参数 PageMeta *PageMeta `protobuf:"bytes,199,opt,name=page_meta,json=pageMeta,proto3" json:"page_meta,omitempty"` // 分页 // contains filtered or unexported fields }
func (*FindOrderListRequest) Descriptor
deprecated
func (*FindOrderListRequest) Descriptor() ([]byte, []int)
Deprecated: Use FindOrderListRequest.ProtoReflect.Descriptor instead.
func (*FindOrderListRequest) GetPageMeta ¶
func (x *FindOrderListRequest) GetPageMeta() *PageMeta
func (*FindOrderListRequest) GetShopIdList ¶
func (x *FindOrderListRequest) GetShopIdList() []int64
func (*FindOrderListRequest) GetTimeMeta ¶
func (x *FindOrderListRequest) GetTimeMeta() *FiltrateTimeMeta
func (*FindOrderListRequest) GetUidList ¶
func (x *FindOrderListRequest) GetUidList() []int64
func (*FindOrderListRequest) ProtoMessage ¶
func (*FindOrderListRequest) ProtoMessage()
func (*FindOrderListRequest) ProtoReflect ¶
func (x *FindOrderListRequest) ProtoReflect() protoreflect.Message
func (*FindOrderListRequest) Reset ¶
func (x *FindOrderListRequest) Reset()
func (*FindOrderListRequest) String ¶
func (x *FindOrderListRequest) String() string
type FindOrderListResponse ¶
type FindOrderListResponse struct { Common *CommonResponse `protobuf:"bytes,1,opt,name=common,proto3" json:"common,omitempty"` List []*OrderListEntry `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"` Total int64 `protobuf:"varint,3,opt,name=total,proto3" json:"total,omitempty"` // 当前条件下订单总数 // contains filtered or unexported fields }
func (*FindOrderListResponse) Descriptor
deprecated
func (*FindOrderListResponse) Descriptor() ([]byte, []int)
Deprecated: Use FindOrderListResponse.ProtoReflect.Descriptor instead.
func (*FindOrderListResponse) GetCommon ¶
func (x *FindOrderListResponse) GetCommon() *CommonResponse
func (*FindOrderListResponse) GetList ¶
func (x *FindOrderListResponse) GetList() []*OrderListEntry
func (*FindOrderListResponse) GetTotal ¶
func (x *FindOrderListResponse) GetTotal() int64
func (*FindOrderListResponse) ProtoMessage ¶
func (*FindOrderListResponse) ProtoMessage()
func (*FindOrderListResponse) ProtoReflect ¶
func (x *FindOrderListResponse) ProtoReflect() protoreflect.Message
func (*FindOrderListResponse) Reset ¶
func (x *FindOrderListResponse) Reset()
func (*FindOrderListResponse) String ¶
func (x *FindOrderListResponse) String() string
type GenOrderTxCodeRequest ¶
type GenOrderTxCodeRequest struct { Uid int64 `protobuf:"varint,1,opt,name=uid,proto3" json:"uid,omitempty"` // contains filtered or unexported fields }
func (*GenOrderTxCodeRequest) Descriptor
deprecated
func (*GenOrderTxCodeRequest) Descriptor() ([]byte, []int)
Deprecated: Use GenOrderTxCodeRequest.ProtoReflect.Descriptor instead.
func (*GenOrderTxCodeRequest) GetUid ¶
func (x *GenOrderTxCodeRequest) GetUid() int64
func (*GenOrderTxCodeRequest) ProtoMessage ¶
func (*GenOrderTxCodeRequest) ProtoMessage()
func (*GenOrderTxCodeRequest) ProtoReflect ¶
func (x *GenOrderTxCodeRequest) ProtoReflect() protoreflect.Message
func (*GenOrderTxCodeRequest) Reset ¶
func (x *GenOrderTxCodeRequest) Reset()
func (*GenOrderTxCodeRequest) String ¶
func (x *GenOrderTxCodeRequest) String() string
type GenOrderTxCodeResponse ¶
type GenOrderTxCodeResponse struct { Common *CommonResponse `protobuf:"bytes,1,opt,name=common,proto3" json:"common,omitempty"` OrderTxCode string `protobuf:"bytes,2,opt,name=order_tx_code,json=orderTxCode,proto3" json:"order_tx_code,omitempty"` // contains filtered or unexported fields }
func (*GenOrderTxCodeResponse) Descriptor
deprecated
func (*GenOrderTxCodeResponse) Descriptor() ([]byte, []int)
Deprecated: Use GenOrderTxCodeResponse.ProtoReflect.Descriptor instead.
func (*GenOrderTxCodeResponse) GetCommon ¶
func (x *GenOrderTxCodeResponse) GetCommon() *CommonResponse
func (*GenOrderTxCodeResponse) GetOrderTxCode ¶
func (x *GenOrderTxCodeResponse) GetOrderTxCode() string
func (*GenOrderTxCodeResponse) ProtoMessage ¶
func (*GenOrderTxCodeResponse) ProtoMessage()
func (*GenOrderTxCodeResponse) ProtoReflect ¶
func (x *GenOrderTxCodeResponse) ProtoReflect() protoreflect.Message
func (*GenOrderTxCodeResponse) Reset ¶
func (x *GenOrderTxCodeResponse) Reset()
func (*GenOrderTxCodeResponse) String ¶
func (x *GenOrderTxCodeResponse) String() string
type GetOrderDetailRequest ¶
type GetOrderDetailRequest struct { TxCode string `protobuf:"bytes,1,opt,name=tx_code,json=txCode,proto3" json:"tx_code,omitempty"` // contains filtered or unexported fields }
func (*GetOrderDetailRequest) Descriptor
deprecated
func (*GetOrderDetailRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetOrderDetailRequest.ProtoReflect.Descriptor instead.
func (*GetOrderDetailRequest) GetTxCode ¶
func (x *GetOrderDetailRequest) GetTxCode() string
func (*GetOrderDetailRequest) ProtoMessage ¶
func (*GetOrderDetailRequest) ProtoMessage()
func (*GetOrderDetailRequest) ProtoReflect ¶
func (x *GetOrderDetailRequest) ProtoReflect() protoreflect.Message
func (*GetOrderDetailRequest) Reset ¶
func (x *GetOrderDetailRequest) Reset()
func (*GetOrderDetailRequest) String ¶
func (x *GetOrderDetailRequest) String() string
type GetOrderDetailResponse ¶
type GetOrderDetailResponse struct { Common *CommonResponse `protobuf:"bytes,1,opt,name=common,proto3" json:"common,omitempty"` Account string `protobuf:"bytes,4,opt,name=account,proto3" json:"account,omitempty"` // 订单涉及的用户 CoinType CoinType `protobuf:"varint,2,opt,name=coin_type,json=coinType,proto3,enum=order_business.CoinType" json:"coin_type,omitempty"` // 币种 List []*ShopOrderDetail `protobuf:"bytes,90,rep,name=list,proto3" json:"list,omitempty"` // contains filtered or unexported fields }
func (*GetOrderDetailResponse) Descriptor
deprecated
func (*GetOrderDetailResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetOrderDetailResponse.ProtoReflect.Descriptor instead.
func (*GetOrderDetailResponse) GetAccount ¶
func (x *GetOrderDetailResponse) GetAccount() string
func (*GetOrderDetailResponse) GetCoinType ¶
func (x *GetOrderDetailResponse) GetCoinType() CoinType
func (*GetOrderDetailResponse) GetCommon ¶
func (x *GetOrderDetailResponse) GetCommon() *CommonResponse
func (*GetOrderDetailResponse) GetList ¶
func (x *GetOrderDetailResponse) GetList() []*ShopOrderDetail
func (*GetOrderDetailResponse) ProtoMessage ¶
func (*GetOrderDetailResponse) ProtoMessage()
func (*GetOrderDetailResponse) ProtoReflect ¶
func (x *GetOrderDetailResponse) ProtoReflect() protoreflect.Message
func (*GetOrderDetailResponse) Reset ¶
func (x *GetOrderDetailResponse) Reset()
func (*GetOrderDetailResponse) String ¶
func (x *GetOrderDetailResponse) String() string
type GetOrderSkuRequest ¶
type GetOrderSkuRequest struct { TxCode string `protobuf:"bytes,1,opt,name=tx_code,json=txCode,proto3" json:"tx_code,omitempty"` // contains filtered or unexported fields }
func (*GetOrderSkuRequest) Descriptor
deprecated
func (*GetOrderSkuRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetOrderSkuRequest.ProtoReflect.Descriptor instead.
func (*GetOrderSkuRequest) GetTxCode ¶
func (x *GetOrderSkuRequest) GetTxCode() string
func (*GetOrderSkuRequest) ProtoMessage ¶
func (*GetOrderSkuRequest) ProtoMessage()
func (*GetOrderSkuRequest) ProtoReflect ¶
func (x *GetOrderSkuRequest) ProtoReflect() protoreflect.Message
func (*GetOrderSkuRequest) Reset ¶
func (x *GetOrderSkuRequest) Reset()
func (*GetOrderSkuRequest) String ¶
func (x *GetOrderSkuRequest) String() string
type GetOrderSkuResponse ¶
type GetOrderSkuResponse struct { Common *CommonResponse `protobuf:"bytes,1,opt,name=common,proto3" json:"common,omitempty"` OrderList []*OrderSku `protobuf:"bytes,2,rep,name=order_list,json=orderList,proto3" json:"order_list,omitempty"` // contains filtered or unexported fields }
func (*GetOrderSkuResponse) Descriptor
deprecated
func (*GetOrderSkuResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetOrderSkuResponse.ProtoReflect.Descriptor instead.
func (*GetOrderSkuResponse) GetCommon ¶
func (x *GetOrderSkuResponse) GetCommon() *CommonResponse
func (*GetOrderSkuResponse) GetOrderList ¶
func (x *GetOrderSkuResponse) GetOrderList() []*OrderSku
func (*GetOrderSkuResponse) ProtoMessage ¶
func (*GetOrderSkuResponse) ProtoMessage()
func (*GetOrderSkuResponse) ProtoReflect ¶
func (x *GetOrderSkuResponse) ProtoReflect() protoreflect.Message
func (*GetOrderSkuResponse) Reset ¶
func (x *GetOrderSkuResponse) Reset()
func (*GetOrderSkuResponse) String ¶
func (x *GetOrderSkuResponse) String() string
type InspectShopOrderRequest ¶
type InspectShopOrderRequest struct { Uid int64 `protobuf:"varint,1,opt,name=uid,proto3" json:"uid,omitempty"` ShopId int64 `protobuf:"varint,2,opt,name=shop_id,json=shopId,proto3" json:"shop_id,omitempty"` OrderCode string `protobuf:"bytes,3,opt,name=order_code,json=orderCode,proto3" json:"order_code,omitempty"` // contains filtered or unexported fields }
func (*InspectShopOrderRequest) Descriptor
deprecated
func (*InspectShopOrderRequest) Descriptor() ([]byte, []int)
Deprecated: Use InspectShopOrderRequest.ProtoReflect.Descriptor instead.
func (*InspectShopOrderRequest) GetOrderCode ¶
func (x *InspectShopOrderRequest) GetOrderCode() string
func (*InspectShopOrderRequest) GetShopId ¶
func (x *InspectShopOrderRequest) GetShopId() int64
func (*InspectShopOrderRequest) GetUid ¶
func (x *InspectShopOrderRequest) GetUid() int64
func (*InspectShopOrderRequest) ProtoMessage ¶
func (*InspectShopOrderRequest) ProtoMessage()
func (*InspectShopOrderRequest) ProtoReflect ¶
func (x *InspectShopOrderRequest) ProtoReflect() protoreflect.Message
func (*InspectShopOrderRequest) Reset ¶
func (x *InspectShopOrderRequest) Reset()
func (*InspectShopOrderRequest) String ¶
func (x *InspectShopOrderRequest) String() string
type InspectShopOrderResponse ¶
type InspectShopOrderResponse struct { Common *CommonResponse `protobuf:"bytes,1,opt,name=common,proto3" json:"common,omitempty"` // contains filtered or unexported fields }
func (*InspectShopOrderResponse) Descriptor
deprecated
func (*InspectShopOrderResponse) Descriptor() ([]byte, []int)
Deprecated: Use InspectShopOrderResponse.ProtoReflect.Descriptor instead.
func (*InspectShopOrderResponse) GetCommon ¶
func (x *InspectShopOrderResponse) GetCommon() *CommonResponse
func (*InspectShopOrderResponse) ProtoMessage ¶
func (*InspectShopOrderResponse) ProtoMessage()
func (*InspectShopOrderResponse) ProtoReflect ¶
func (x *InspectShopOrderResponse) ProtoReflect() protoreflect.Message
func (*InspectShopOrderResponse) Reset ¶
func (x *InspectShopOrderResponse) Reset()
func (*InspectShopOrderResponse) String ¶
func (x *InspectShopOrderResponse) String() string
type OperationMeta ¶
type OperationMeta struct { OpUid int64 `protobuf:"varint,1,opt,name=op_uid,json=opUid,proto3" json:"op_uid,omitempty"` OpIp string `protobuf:"bytes,2,opt,name=op_ip,json=opIp,proto3" json:"op_ip,omitempty"` OpPlatform string `protobuf:"bytes,3,opt,name=op_platform,json=opPlatform,proto3" json:"op_platform,omitempty"` // 操作平台 OpDevice string `protobuf:"bytes,4,opt,name=op_device,json=opDevice,proto3" json:"op_device,omitempty"` // 操作设备 // contains filtered or unexported fields }
func (*OperationMeta) Descriptor
deprecated
func (*OperationMeta) Descriptor() ([]byte, []int)
Deprecated: Use OperationMeta.ProtoReflect.Descriptor instead.
func (*OperationMeta) GetOpDevice ¶
func (x *OperationMeta) GetOpDevice() string
func (*OperationMeta) GetOpIp ¶
func (x *OperationMeta) GetOpIp() string
func (*OperationMeta) GetOpPlatform ¶
func (x *OperationMeta) GetOpPlatform() string
func (*OperationMeta) GetOpUid ¶
func (x *OperationMeta) GetOpUid() int64
func (*OperationMeta) ProtoMessage ¶
func (*OperationMeta) ProtoMessage()
func (*OperationMeta) ProtoReflect ¶
func (x *OperationMeta) ProtoReflect() protoreflect.Message
func (*OperationMeta) Reset ¶
func (x *OperationMeta) Reset()
func (*OperationMeta) String ¶
func (x *OperationMeta) String() string
type OperationType ¶
type OperationType int32
const ( OperationType_CREATE OperationType = 0 OperationType_UPDATE OperationType = 1 OperationType_DELETE OperationType = 2 OperationType_AUDIT OperationType = 3 OperationType_PUT_AWAY OperationType = 4 )
func (OperationType) Descriptor ¶
func (OperationType) Descriptor() protoreflect.EnumDescriptor
func (OperationType) Enum ¶
func (x OperationType) Enum() *OperationType
func (OperationType) EnumDescriptor
deprecated
func (OperationType) EnumDescriptor() ([]byte, []int)
Deprecated: Use OperationType.Descriptor instead.
func (OperationType) Number ¶
func (x OperationType) Number() protoreflect.EnumNumber
func (OperationType) String ¶
func (x OperationType) String() string
func (OperationType) Type ¶
func (OperationType) Type() protoreflect.EnumType
type OrderBusinessServiceClient ¶
type OrderBusinessServiceClient interface { // 生成唯一订单事务号 GenOrderTxCode(ctx context.Context, in *GenOrderTxCodeRequest, opts ...grpc.CallOption) (*GenOrderTxCodeResponse, error) // 检查外部订单号是否存在 CheckOrderExist(ctx context.Context, in *CheckOrderExistRequest, opts ...grpc.CallOption) (*CheckOrderExistResponse, error) // 创建订单 CreateOrder(ctx context.Context, in *CreateOrderRequest, opts ...grpc.CallOption) (*CreateOrderResponse, error) // 获取订单详情 GetOrderDetail(ctx context.Context, in *GetOrderDetailRequest, opts ...grpc.CallOption) (*GetOrderDetailResponse, error) // 获取订单商品 GetOrderSku(ctx context.Context, in *GetOrderSkuRequest, opts ...grpc.CallOption) (*GetOrderSkuResponse, error) // 更新订单状态 UpdateOrderState(ctx context.Context, in *UpdateOrderStateRequest, opts ...grpc.CallOption) (*UpdateOrderStateResponse, error) // 订单支付通知 OrderTradeNotice(ctx context.Context, in *OrderTradeNoticeRequest, opts ...grpc.CallOption) (*OrderTradeNoticeResponse, error) // 订单状态检查 CheckOrderState(ctx context.Context, in *CheckOrderStateRequest, opts ...grpc.CallOption) (*CheckOrderStateResponse, error) // 获取订单 FindOrderList(ctx context.Context, in *FindOrderListRequest, opts ...grpc.CallOption) (*FindOrderListResponse, error) // 店铺订单存在检查 InspectShopOrder(ctx context.Context, in *InspectShopOrderRequest, opts ...grpc.CallOption) (*InspectShopOrderResponse, error) }
OrderBusinessServiceClient is the client API for OrderBusinessService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewOrderBusinessServiceClient ¶
func NewOrderBusinessServiceClient(cc grpc.ClientConnInterface) OrderBusinessServiceClient
type OrderBusinessServiceServer ¶
type OrderBusinessServiceServer interface { // 生成唯一订单事务号 GenOrderTxCode(context.Context, *GenOrderTxCodeRequest) (*GenOrderTxCodeResponse, error) // 检查外部订单号是否存在 CheckOrderExist(context.Context, *CheckOrderExistRequest) (*CheckOrderExistResponse, error) // 创建订单 CreateOrder(context.Context, *CreateOrderRequest) (*CreateOrderResponse, error) // 获取订单详情 GetOrderDetail(context.Context, *GetOrderDetailRequest) (*GetOrderDetailResponse, error) // 获取订单商品 GetOrderSku(context.Context, *GetOrderSkuRequest) (*GetOrderSkuResponse, error) // 更新订单状态 UpdateOrderState(context.Context, *UpdateOrderStateRequest) (*UpdateOrderStateResponse, error) // 订单支付通知 OrderTradeNotice(context.Context, *OrderTradeNoticeRequest) (*OrderTradeNoticeResponse, error) // 订单状态检查 CheckOrderState(context.Context, *CheckOrderStateRequest) (*CheckOrderStateResponse, error) // 获取订单 FindOrderList(context.Context, *FindOrderListRequest) (*FindOrderListResponse, error) // 店铺订单存在检查 InspectShopOrder(context.Context, *InspectShopOrderRequest) (*InspectShopOrderResponse, error) }
OrderBusinessServiceServer is the server API for OrderBusinessService service.
type OrderDeliveryInfo ¶
type OrderDeliveryInfo struct { UserDeliveryId int32 `protobuf:"varint,1,opt,name=user_delivery_id,json=userDeliveryId,proto3" json:"user_delivery_id,omitempty"` // 用户收货地址 // contains filtered or unexported fields }
func (*OrderDeliveryInfo) Descriptor
deprecated
func (*OrderDeliveryInfo) Descriptor() ([]byte, []int)
Deprecated: Use OrderDeliveryInfo.ProtoReflect.Descriptor instead.
func (*OrderDeliveryInfo) GetUserDeliveryId ¶
func (x *OrderDeliveryInfo) GetUserDeliveryId() int32
func (*OrderDeliveryInfo) ProtoMessage ¶
func (*OrderDeliveryInfo) ProtoMessage()
func (*OrderDeliveryInfo) ProtoReflect ¶
func (x *OrderDeliveryInfo) ProtoReflect() protoreflect.Message
func (*OrderDeliveryInfo) Reset ¶
func (x *OrderDeliveryInfo) Reset()
func (*OrderDeliveryInfo) String ¶
func (x *OrderDeliveryInfo) String() string
type OrderDetail ¶
type OrderDetail struct { ShopDetail []*OrderShopDetail `protobuf:"bytes,1,rep,name=shop_detail,json=shopDetail,proto3" json:"shop_detail,omitempty"` // contains filtered or unexported fields }
func (*OrderDetail) Descriptor
deprecated
func (*OrderDetail) Descriptor() ([]byte, []int)
Deprecated: Use OrderDetail.ProtoReflect.Descriptor instead.
func (*OrderDetail) GetShopDetail ¶
func (x *OrderDetail) GetShopDetail() []*OrderShopDetail
func (*OrderDetail) ProtoMessage ¶
func (*OrderDetail) ProtoMessage()
func (*OrderDetail) ProtoReflect ¶
func (x *OrderDetail) ProtoReflect() protoreflect.Message
func (*OrderDetail) Reset ¶
func (x *OrderDetail) Reset()
func (*OrderDetail) String ¶
func (x *OrderDetail) String() string
type OrderEntry ¶
type OrderEntry struct { OrderCode string `protobuf:"bytes,10,opt,name=order_code,json=orderCode,proto3" json:"order_code,omitempty"` // 订单号 TimeExpire string `protobuf:"bytes,11,opt,name=time_expire,json=timeExpire,proto3" json:"time_expire,omitempty"` // 订单有效时间 // contains filtered or unexported fields }
func (*OrderEntry) Descriptor
deprecated
func (*OrderEntry) Descriptor() ([]byte, []int)
Deprecated: Use OrderEntry.ProtoReflect.Descriptor instead.
func (*OrderEntry) GetOrderCode ¶
func (x *OrderEntry) GetOrderCode() string
func (*OrderEntry) GetTimeExpire ¶
func (x *OrderEntry) GetTimeExpire() string
func (*OrderEntry) ProtoMessage ¶
func (*OrderEntry) ProtoMessage()
func (*OrderEntry) ProtoReflect ¶
func (x *OrderEntry) ProtoReflect() protoreflect.Message
func (*OrderEntry) Reset ¶
func (x *OrderEntry) Reset()
func (*OrderEntry) String ¶
func (x *OrderEntry) String() string
type OrderGoods ¶
type OrderGoods struct { SkuCode string `protobuf:"bytes,2,opt,name=sku_code,json=skuCode,proto3" json:"sku_code,omitempty"` Price string `protobuf:"bytes,3,opt,name=price,proto3" json:"price,omitempty"` Amount int64 `protobuf:"varint,4,opt,name=amount,proto3" json:"amount,omitempty"` Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"` Reduction string `protobuf:"bytes,6,opt,name=reduction,proto3" json:"reduction,omitempty"` Version int64 `protobuf:"varint,7,opt,name=version,proto3" json:"version,omitempty"` // 商品价格版本,应对商品价格调整 // contains filtered or unexported fields }
func (*OrderGoods) Descriptor
deprecated
func (*OrderGoods) Descriptor() ([]byte, []int)
Deprecated: Use OrderGoods.ProtoReflect.Descriptor instead.
func (*OrderGoods) GetAmount ¶
func (x *OrderGoods) GetAmount() int64
func (*OrderGoods) GetName ¶
func (x *OrderGoods) GetName() string
func (*OrderGoods) GetPrice ¶
func (x *OrderGoods) GetPrice() string
func (*OrderGoods) GetReduction ¶
func (x *OrderGoods) GetReduction() string
func (*OrderGoods) GetSkuCode ¶
func (x *OrderGoods) GetSkuCode() string
func (*OrderGoods) GetVersion ¶
func (x *OrderGoods) GetVersion() int64
func (*OrderGoods) ProtoMessage ¶
func (*OrderGoods) ProtoMessage()
func (*OrderGoods) ProtoReflect ¶
func (x *OrderGoods) ProtoReflect() protoreflect.Message
func (*OrderGoods) Reset ¶
func (x *OrderGoods) Reset()
func (*OrderGoods) String ¶
func (x *OrderGoods) String() string
type OrderListEntry ¶
type OrderListEntry struct { OrderCode string `protobuf:"bytes,1,opt,name=order_code,json=orderCode,proto3" json:"order_code,omitempty"` Uid int64 `protobuf:"varint,2,opt,name=uid,proto3" json:"uid,omitempty"` ShopId int64 `protobuf:"varint,3,opt,name=shop_id,json=shopId,proto3" json:"shop_id,omitempty"` Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` ClientIp string `protobuf:"bytes,5,opt,name=client_ip,json=clientIp,proto3" json:"client_ip,omitempty"` DeviceCode string `protobuf:"bytes,6,opt,name=device_code,json=deviceCode,proto3" json:"device_code,omitempty"` State OrderStateType `protobuf:"varint,7,opt,name=state,proto3,enum=order_business.OrderStateType" json:"state,omitempty"` PayState OrderPayStateType `protobuf:"varint,8,opt,name=pay_state,json=payState,proto3,enum=order_business.OrderPayStateType" json:"pay_state,omitempty"` Money string `protobuf:"bytes,9,opt,name=money,proto3" json:"money,omitempty"` CreateTime string `protobuf:"bytes,10,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // contains filtered or unexported fields }
func (*OrderListEntry) Descriptor
deprecated
func (*OrderListEntry) Descriptor() ([]byte, []int)
Deprecated: Use OrderListEntry.ProtoReflect.Descriptor instead.
func (*OrderListEntry) GetClientIp ¶
func (x *OrderListEntry) GetClientIp() string
func (*OrderListEntry) GetCreateTime ¶
func (x *OrderListEntry) GetCreateTime() string
func (*OrderListEntry) GetDescription ¶
func (x *OrderListEntry) GetDescription() string
func (*OrderListEntry) GetDeviceCode ¶
func (x *OrderListEntry) GetDeviceCode() string
func (*OrderListEntry) GetMoney ¶
func (x *OrderListEntry) GetMoney() string
func (*OrderListEntry) GetOrderCode ¶
func (x *OrderListEntry) GetOrderCode() string
func (*OrderListEntry) GetPayState ¶
func (x *OrderListEntry) GetPayState() OrderPayStateType
func (*OrderListEntry) GetShopId ¶
func (x *OrderListEntry) GetShopId() int64
func (*OrderListEntry) GetState ¶
func (x *OrderListEntry) GetState() OrderStateType
func (*OrderListEntry) GetUid ¶
func (x *OrderListEntry) GetUid() int64
func (*OrderListEntry) ProtoMessage ¶
func (*OrderListEntry) ProtoMessage()
func (*OrderListEntry) ProtoReflect ¶
func (x *OrderListEntry) ProtoReflect() protoreflect.Message
func (*OrderListEntry) Reset ¶
func (x *OrderListEntry) Reset()
func (*OrderListEntry) String ¶
func (x *OrderListEntry) String() string
type OrderPayStateType ¶
type OrderPayStateType int32
const ( OrderPayStateType_PAY_READY OrderPayStateType = 0 // 支付就绪,未支付 OrderPayStateType_PAY_RUN OrderPayStateType = 1 // 正在支付中 OrderPayStateType_PAY_FAILED OrderPayStateType = 2 // 支付失败 OrderPayStateType_PAY_SUCCESS OrderPayStateType = 3 // 支付成功 OrderPayStateType_PAY_CANCEL OrderPayStateType = 4 // 支付取消 )
func (OrderPayStateType) Descriptor ¶
func (OrderPayStateType) Descriptor() protoreflect.EnumDescriptor
func (OrderPayStateType) Enum ¶
func (x OrderPayStateType) Enum() *OrderPayStateType
func (OrderPayStateType) EnumDescriptor
deprecated
func (OrderPayStateType) EnumDescriptor() ([]byte, []int)
Deprecated: Use OrderPayStateType.Descriptor instead.
func (OrderPayStateType) Number ¶
func (x OrderPayStateType) Number() protoreflect.EnumNumber
func (OrderPayStateType) String ¶
func (x OrderPayStateType) String() string
func (OrderPayStateType) Type ¶
func (OrderPayStateType) Type() protoreflect.EnumType
type OrderSceneInfo ¶
type OrderSceneInfo struct { StoreInfo *StoreInfo `protobuf:"bytes,999,opt,name=store_info,json=storeInfo,proto3" json:"store_info,omitempty"` // contains filtered or unexported fields }
支付场景信息
func (*OrderSceneInfo) Descriptor
deprecated
func (*OrderSceneInfo) Descriptor() ([]byte, []int)
Deprecated: Use OrderSceneInfo.ProtoReflect.Descriptor instead.
func (*OrderSceneInfo) GetStoreInfo ¶
func (x *OrderSceneInfo) GetStoreInfo() *StoreInfo
func (*OrderSceneInfo) ProtoMessage ¶
func (*OrderSceneInfo) ProtoMessage()
func (*OrderSceneInfo) ProtoReflect ¶
func (x *OrderSceneInfo) ProtoReflect() protoreflect.Message
func (*OrderSceneInfo) Reset ¶
func (x *OrderSceneInfo) Reset()
func (*OrderSceneInfo) String ¶
func (x *OrderSceneInfo) String() string
type OrderShopDetail ¶
type OrderShopDetail struct { ShopId int64 `protobuf:"varint,1,opt,name=shop_id,json=shopId,proto3" json:"shop_id,omitempty"` CoinType CoinType `protobuf:"varint,6,opt,name=coin_type,json=coinType,proto3,enum=order_business.CoinType" json:"coin_type,omitempty"` // 同一个店铺使用一种币结算 Goods []*OrderGoods `protobuf:"bytes,7,rep,name=goods,proto3" json:"goods,omitempty"` // 商品列表 SceneInfo *OrderSceneInfo `protobuf:"bytes,199,opt,name=scene_info,json=sceneInfo,proto3" json:"scene_info,omitempty"` // 场景 // contains filtered or unexported fields }
同一个门店的商品
func (*OrderShopDetail) Descriptor
deprecated
func (*OrderShopDetail) Descriptor() ([]byte, []int)
Deprecated: Use OrderShopDetail.ProtoReflect.Descriptor instead.
func (*OrderShopDetail) GetCoinType ¶
func (x *OrderShopDetail) GetCoinType() CoinType
func (*OrderShopDetail) GetGoods ¶
func (x *OrderShopDetail) GetGoods() []*OrderGoods
func (*OrderShopDetail) GetSceneInfo ¶
func (x *OrderShopDetail) GetSceneInfo() *OrderSceneInfo
func (*OrderShopDetail) GetShopId ¶
func (x *OrderShopDetail) GetShopId() int64
func (*OrderShopDetail) ProtoMessage ¶
func (*OrderShopDetail) ProtoMessage()
func (*OrderShopDetail) ProtoReflect ¶
func (x *OrderShopDetail) ProtoReflect() protoreflect.Message
func (*OrderShopDetail) Reset ¶
func (x *OrderShopDetail) Reset()
func (*OrderShopDetail) String ¶
func (x *OrderShopDetail) String() string
type OrderSku ¶
type OrderSku struct { OrderCode string `protobuf:"bytes,1,opt,name=order_code,json=orderCode,proto3" json:"order_code,omitempty"` Goods []*OrderGoods `protobuf:"bytes,2,rep,name=goods,proto3" json:"goods,omitempty"` // 商品列表 // contains filtered or unexported fields }
func (*OrderSku) Descriptor
deprecated
func (*OrderSku) GetGoods ¶
func (x *OrderSku) GetGoods() []*OrderGoods
func (*OrderSku) GetOrderCode ¶
func (*OrderSku) ProtoMessage ¶
func (*OrderSku) ProtoMessage()
func (*OrderSku) ProtoReflect ¶
func (x *OrderSku) ProtoReflect() protoreflect.Message
type OrderState ¶
type OrderState struct { OrderCode string `protobuf:"bytes,1,opt,name=order_code,json=orderCode,proto3" json:"order_code,omitempty"` PayState OrderPayStateType `protobuf:"varint,2,opt,name=pay_state,json=payState,proto3,enum=order_business.OrderPayStateType" json:"pay_state,omitempty"` State OrderStateType `protobuf:"varint,3,opt,name=state,proto3,enum=order_business.OrderStateType" json:"state,omitempty"` IsExist bool `protobuf:"varint,4,opt,name=is_exist,json=isExist,proto3" json:"is_exist,omitempty"` // contains filtered or unexported fields }
func (*OrderState) Descriptor
deprecated
func (*OrderState) Descriptor() ([]byte, []int)
Deprecated: Use OrderState.ProtoReflect.Descriptor instead.
func (*OrderState) GetIsExist ¶
func (x *OrderState) GetIsExist() bool
func (*OrderState) GetOrderCode ¶
func (x *OrderState) GetOrderCode() string
func (*OrderState) GetPayState ¶
func (x *OrderState) GetPayState() OrderPayStateType
func (*OrderState) GetState ¶
func (x *OrderState) GetState() OrderStateType
func (*OrderState) ProtoMessage ¶
func (*OrderState) ProtoMessage()
func (*OrderState) ProtoReflect ¶
func (x *OrderState) ProtoReflect() protoreflect.Message
func (*OrderState) Reset ¶
func (x *OrderState) Reset()
func (*OrderState) String ¶
func (x *OrderState) String() string
type OrderStateEntry ¶
type OrderStateEntry struct { OrderCode string `protobuf:"bytes,1,opt,name=order_code,json=orderCode,proto3" json:"order_code,omitempty"` State OrderStateType `protobuf:"varint,2,opt,name=state,proto3,enum=order_business.OrderStateType" json:"state,omitempty"` PayState OrderPayStateType `protobuf:"varint,3,opt,name=pay_state,json=payState,proto3,enum=order_business.OrderPayStateType" json:"pay_state,omitempty"` // contains filtered or unexported fields }
func (*OrderStateEntry) Descriptor
deprecated
func (*OrderStateEntry) Descriptor() ([]byte, []int)
Deprecated: Use OrderStateEntry.ProtoReflect.Descriptor instead.
func (*OrderStateEntry) GetOrderCode ¶
func (x *OrderStateEntry) GetOrderCode() string
func (*OrderStateEntry) GetPayState ¶
func (x *OrderStateEntry) GetPayState() OrderPayStateType
func (*OrderStateEntry) GetState ¶
func (x *OrderStateEntry) GetState() OrderStateType
func (*OrderStateEntry) ProtoMessage ¶
func (*OrderStateEntry) ProtoMessage()
func (*OrderStateEntry) ProtoReflect ¶
func (x *OrderStateEntry) ProtoReflect() protoreflect.Message
func (*OrderStateEntry) Reset ¶
func (x *OrderStateEntry) Reset()
func (*OrderStateEntry) String ¶
func (x *OrderStateEntry) String() string
type OrderStateType ¶
type OrderStateType int32
const ( OrderStateType_ORDER_EFFECTIVE OrderStateType = 0 // 有效 OrderStateType_ORDER_LOCKED OrderStateType = 1 // 锁定中 OrderStateType_ORDER_INVALID OrderStateType = 2 // 无效 )
func (OrderStateType) Descriptor ¶
func (OrderStateType) Descriptor() protoreflect.EnumDescriptor
func (OrderStateType) Enum ¶
func (x OrderStateType) Enum() *OrderStateType
func (OrderStateType) EnumDescriptor
deprecated
func (OrderStateType) EnumDescriptor() ([]byte, []int)
Deprecated: Use OrderStateType.Descriptor instead.
func (OrderStateType) Number ¶
func (x OrderStateType) Number() protoreflect.EnumNumber
func (OrderStateType) String ¶
func (x OrderStateType) String() string
func (OrderStateType) Type ¶
func (OrderStateType) Type() protoreflect.EnumType
type OrderTradeNoticeRequest ¶
type OrderTradeNoticeRequest struct { Uid int64 `protobuf:"varint,1,opt,name=uid,proto3" json:"uid,omitempty"` OrderTxCode string `protobuf:"bytes,2,opt,name=order_tx_code,json=orderTxCode,proto3" json:"order_tx_code,omitempty"` // 订单交易号 PayId string `protobuf:"bytes,3,opt,name=pay_id,json=payId,proto3" json:"pay_id,omitempty"` // 支付ID(支付后产生) // contains filtered or unexported fields }
func (*OrderTradeNoticeRequest) Descriptor
deprecated
func (*OrderTradeNoticeRequest) Descriptor() ([]byte, []int)
Deprecated: Use OrderTradeNoticeRequest.ProtoReflect.Descriptor instead.
func (*OrderTradeNoticeRequest) GetOrderTxCode ¶
func (x *OrderTradeNoticeRequest) GetOrderTxCode() string
func (*OrderTradeNoticeRequest) GetPayId ¶
func (x *OrderTradeNoticeRequest) GetPayId() string
func (*OrderTradeNoticeRequest) GetUid ¶
func (x *OrderTradeNoticeRequest) GetUid() int64
func (*OrderTradeNoticeRequest) ProtoMessage ¶
func (*OrderTradeNoticeRequest) ProtoMessage()
func (*OrderTradeNoticeRequest) ProtoReflect ¶
func (x *OrderTradeNoticeRequest) ProtoReflect() protoreflect.Message
func (*OrderTradeNoticeRequest) Reset ¶
func (x *OrderTradeNoticeRequest) Reset()
func (*OrderTradeNoticeRequest) String ¶
func (x *OrderTradeNoticeRequest) String() string
type OrderTradeNoticeResponse ¶
type OrderTradeNoticeResponse struct { Common *CommonResponse `protobuf:"bytes,1,opt,name=common,proto3" json:"common,omitempty"` // contains filtered or unexported fields }
func (*OrderTradeNoticeResponse) Descriptor
deprecated
func (*OrderTradeNoticeResponse) Descriptor() ([]byte, []int)
Deprecated: Use OrderTradeNoticeResponse.ProtoReflect.Descriptor instead.
func (*OrderTradeNoticeResponse) GetCommon ¶
func (x *OrderTradeNoticeResponse) GetCommon() *CommonResponse
func (*OrderTradeNoticeResponse) ProtoMessage ¶
func (*OrderTradeNoticeResponse) ProtoMessage()
func (*OrderTradeNoticeResponse) ProtoReflect ¶
func (x *OrderTradeNoticeResponse) ProtoReflect() protoreflect.Message
func (*OrderTradeNoticeResponse) Reset ¶
func (x *OrderTradeNoticeResponse) Reset()
func (*OrderTradeNoticeResponse) String ¶
func (x *OrderTradeNoticeResponse) String() string
type PageMeta ¶
type PageMeta struct { PageNum int32 `protobuf:"varint,1,opt,name=page_num,json=pageNum,proto3" json:"page_num,omitempty"` PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // contains filtered or unexported fields }
func (*PageMeta) Descriptor
deprecated
func (*PageMeta) GetPageNum ¶
func (*PageMeta) GetPageSize ¶
func (*PageMeta) ProtoMessage ¶
func (*PageMeta) ProtoMessage()
func (*PageMeta) ProtoReflect ¶
func (x *PageMeta) ProtoReflect() protoreflect.Message
type RetCode ¶
type RetCode int32
const ( RetCode_SUCCESS RetCode = 0 RetCode_ERROR RetCode = 500 RetCode_ERR_REQUEST_DATA_FORMAT RetCode = 40000 RetCode_USER_NOT_EXIST RetCode = 50001 RetCode_USER_EXIST RetCode = 50002 RetCode_MERCHANT_NOT_EXIST RetCode = 50003 RetCode_MERCHANT_EXIST RetCode = 50004 RetCode_SHOP_NOT_EXIST RetCode = 50005 RetCode_SHOP_EXIST RetCode = 50006 RetCode_SKU_NOT_EXIST RetCode = 50007 RetCode_SKU_EXIST RetCode = 50008 RetCode_SKU_AMOUNT_NOT_ENOUGH RetCode = 50009 RetCode_TRANSACTION_FAILED RetCode = 50010 RetCode_ORDER_NOT_EXIST RetCode = 50011 RetCode_ORDER_EXIST RetCode = 50012 RetCode_ORDER_STATE_PROHIBIT RetCode = 50013 // 订单状态不允许修改 RetCode_ORDER_STATE_LOCKED RetCode = 50014 // 订单处于锁定状态 RetCode_OPERATION_NOT_EFFECT RetCode = 50015 // 操作未生效 RetCode_ORDER_TX_CODE_EMPTY RetCode = 50016 // 订单事务号为空 RetCode_ORDER_DELIVERY_NOT_EXIST RetCode = 50017 // 订单交付信息不存在 RetCode_ORDER_TX_CODE_NOT_EXIST RetCode = 50018 // 订单交易号不存在 RetCode_SKU_PRICE_VERSION_NOT_EXIST RetCode = 50019 // 商品价格版本不存在或不符合规则 RetCode_ORDER_PAY_COMPLETED RetCode = 50020 // 订单支付完成 RetCode_ORDER_EXPIRE RetCode = 50021 // 订单过期 RetCode_ORDER_STATE_INVALID RetCode = 50022 // 订单无效 RetCode_REQUEST_DATA_TOO_MUCH RetCode = 50023 // 请求数据太多 )
func (RetCode) Descriptor ¶
func (RetCode) Descriptor() protoreflect.EnumDescriptor
func (RetCode) EnumDescriptor
deprecated
func (RetCode) Number ¶
func (x RetCode) Number() protoreflect.EnumNumber
func (RetCode) Type ¶
func (RetCode) Type() protoreflect.EnumType
type ShopOrderDetail ¶
type ShopOrderDetail struct { OrderCode string `protobuf:"bytes,1,opt,name=order_code,json=orderCode,proto3" json:"order_code,omitempty"` Merchant string `protobuf:"bytes,2,opt,name=merchant,proto3" json:"merchant,omitempty"` // 店铺商户,店铺主体 TimeExpire string `protobuf:"bytes,3,opt,name=time_expire,json=timeExpire,proto3" json:"time_expire,omitempty"` // 订单有效期 NotifyUrl string `protobuf:"bytes,4,opt,name=notify_url,json=notifyUrl,proto3" json:"notify_url,omitempty"` // 订单支付成功通知 Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"` // 订单描述 Detail *TradeGoodsDetail `protobuf:"bytes,199,opt,name=detail,proto3" json:"detail,omitempty"` // contains filtered or unexported fields }
func (*ShopOrderDetail) Descriptor
deprecated
func (*ShopOrderDetail) Descriptor() ([]byte, []int)
Deprecated: Use ShopOrderDetail.ProtoReflect.Descriptor instead.
func (*ShopOrderDetail) GetDescription ¶
func (x *ShopOrderDetail) GetDescription() string
func (*ShopOrderDetail) GetDetail ¶
func (x *ShopOrderDetail) GetDetail() *TradeGoodsDetail
func (*ShopOrderDetail) GetMerchant ¶
func (x *ShopOrderDetail) GetMerchant() string
func (*ShopOrderDetail) GetNotifyUrl ¶
func (x *ShopOrderDetail) GetNotifyUrl() string
func (*ShopOrderDetail) GetOrderCode ¶
func (x *ShopOrderDetail) GetOrderCode() string
func (*ShopOrderDetail) GetTimeExpire ¶
func (x *ShopOrderDetail) GetTimeExpire() string
func (*ShopOrderDetail) ProtoMessage ¶
func (*ShopOrderDetail) ProtoMessage()
func (*ShopOrderDetail) ProtoReflect ¶
func (x *ShopOrderDetail) ProtoReflect() protoreflect.Message
func (*ShopOrderDetail) Reset ¶
func (x *ShopOrderDetail) Reset()
func (*ShopOrderDetail) String ¶
func (x *ShopOrderDetail) String() string
type StoreInfo ¶
type StoreInfo struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 门店编号 Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // 门店名称 AreaCode string `protobuf:"bytes,3,opt,name=area_code,json=areaCode,proto3" json:"area_code,omitempty"` // 地区编码 Address string `protobuf:"bytes,4,opt,name=address,proto3" json:"address,omitempty"` // 详细地址 // contains filtered or unexported fields }
门店信息
func (*StoreInfo) Descriptor
deprecated
func (*StoreInfo) GetAddress ¶
func (*StoreInfo) GetAreaCode ¶
func (*StoreInfo) ProtoMessage ¶
func (*StoreInfo) ProtoMessage()
func (*StoreInfo) ProtoReflect ¶
func (x *StoreInfo) ProtoReflect() protoreflect.Message
type TradeGoodsDetail ¶
type TradeGoodsDetail struct { Money string `protobuf:"bytes,1,opt,name=money,proto3" json:"money,omitempty"` // 需要支付金额 // contains filtered or unexported fields }
func (*TradeGoodsDetail) Descriptor
deprecated
func (*TradeGoodsDetail) Descriptor() ([]byte, []int)
Deprecated: Use TradeGoodsDetail.ProtoReflect.Descriptor instead.
func (*TradeGoodsDetail) GetMoney ¶
func (x *TradeGoodsDetail) GetMoney() string
func (*TradeGoodsDetail) ProtoMessage ¶
func (*TradeGoodsDetail) ProtoMessage()
func (*TradeGoodsDetail) ProtoReflect ¶
func (x *TradeGoodsDetail) ProtoReflect() protoreflect.Message
func (*TradeGoodsDetail) Reset ¶
func (x *TradeGoodsDetail) Reset()
func (*TradeGoodsDetail) String ¶
func (x *TradeGoodsDetail) String() string
type UnimplementedOrderBusinessServiceServer ¶
type UnimplementedOrderBusinessServiceServer struct { }
UnimplementedOrderBusinessServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedOrderBusinessServiceServer) CheckOrderExist ¶
func (*UnimplementedOrderBusinessServiceServer) CheckOrderExist(context.Context, *CheckOrderExistRequest) (*CheckOrderExistResponse, error)
func (*UnimplementedOrderBusinessServiceServer) CheckOrderState ¶
func (*UnimplementedOrderBusinessServiceServer) CheckOrderState(context.Context, *CheckOrderStateRequest) (*CheckOrderStateResponse, error)
func (*UnimplementedOrderBusinessServiceServer) CreateOrder ¶
func (*UnimplementedOrderBusinessServiceServer) CreateOrder(context.Context, *CreateOrderRequest) (*CreateOrderResponse, error)
func (*UnimplementedOrderBusinessServiceServer) FindOrderList ¶
func (*UnimplementedOrderBusinessServiceServer) FindOrderList(context.Context, *FindOrderListRequest) (*FindOrderListResponse, error)
func (*UnimplementedOrderBusinessServiceServer) GenOrderTxCode ¶
func (*UnimplementedOrderBusinessServiceServer) GenOrderTxCode(context.Context, *GenOrderTxCodeRequest) (*GenOrderTxCodeResponse, error)
func (*UnimplementedOrderBusinessServiceServer) GetOrderDetail ¶
func (*UnimplementedOrderBusinessServiceServer) GetOrderDetail(context.Context, *GetOrderDetailRequest) (*GetOrderDetailResponse, error)
func (*UnimplementedOrderBusinessServiceServer) GetOrderSku ¶
func (*UnimplementedOrderBusinessServiceServer) GetOrderSku(context.Context, *GetOrderSkuRequest) (*GetOrderSkuResponse, error)
func (*UnimplementedOrderBusinessServiceServer) InspectShopOrder ¶
func (*UnimplementedOrderBusinessServiceServer) InspectShopOrder(context.Context, *InspectShopOrderRequest) (*InspectShopOrderResponse, error)
func (*UnimplementedOrderBusinessServiceServer) OrderTradeNotice ¶
func (*UnimplementedOrderBusinessServiceServer) OrderTradeNotice(context.Context, *OrderTradeNoticeRequest) (*OrderTradeNoticeResponse, error)
func (*UnimplementedOrderBusinessServiceServer) UpdateOrderState ¶
func (*UnimplementedOrderBusinessServiceServer) UpdateOrderState(context.Context, *UpdateOrderStateRequest) (*UpdateOrderStateResponse, error)
type UpdateOrderStateRequest ¶
type UpdateOrderStateRequest struct { EntryList []*OrderStateEntry `protobuf:"bytes,1,rep,name=entry_list,json=entryList,proto3" json:"entry_list,omitempty"` OperationMeta *OperationMeta `protobuf:"bytes,2,opt,name=operation_meta,json=operationMeta,proto3" json:"operation_meta,omitempty"` // contains filtered or unexported fields }
func (*UpdateOrderStateRequest) Descriptor
deprecated
func (*UpdateOrderStateRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateOrderStateRequest.ProtoReflect.Descriptor instead.
func (*UpdateOrderStateRequest) GetEntryList ¶
func (x *UpdateOrderStateRequest) GetEntryList() []*OrderStateEntry
func (*UpdateOrderStateRequest) GetOperationMeta ¶
func (x *UpdateOrderStateRequest) GetOperationMeta() *OperationMeta
func (*UpdateOrderStateRequest) ProtoMessage ¶
func (*UpdateOrderStateRequest) ProtoMessage()
func (*UpdateOrderStateRequest) ProtoReflect ¶
func (x *UpdateOrderStateRequest) ProtoReflect() protoreflect.Message
func (*UpdateOrderStateRequest) Reset ¶
func (x *UpdateOrderStateRequest) Reset()
func (*UpdateOrderStateRequest) String ¶
func (x *UpdateOrderStateRequest) String() string
type UpdateOrderStateResponse ¶
type UpdateOrderStateResponse struct { Common *CommonResponse `protobuf:"bytes,1,opt,name=common,proto3" json:"common,omitempty"` // contains filtered or unexported fields }
func (*UpdateOrderStateResponse) Descriptor
deprecated
func (*UpdateOrderStateResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateOrderStateResponse.ProtoReflect.Descriptor instead.
func (*UpdateOrderStateResponse) GetCommon ¶
func (x *UpdateOrderStateResponse) GetCommon() *CommonResponse
func (*UpdateOrderStateResponse) ProtoMessage ¶
func (*UpdateOrderStateResponse) ProtoMessage()
func (*UpdateOrderStateResponse) ProtoReflect ¶
func (x *UpdateOrderStateResponse) ProtoReflect() protoreflect.Message
func (*UpdateOrderStateResponse) Reset ¶
func (x *UpdateOrderStateResponse) Reset()
func (*UpdateOrderStateResponse) String ¶
func (x *UpdateOrderStateResponse) String() string