Versions in this module Expand all Collapse all v1 v1.0.1 Apr 13, 2021 Changes in this version + var AccountType_name = map[int32]string + var AccountType_value = map[string]int32 + var CoinType_name = map[int32]string + var CoinType_value = map[string]int32 + var File_proto_micro_mall_pay_proto_pay_business_pay_business_proto protoreflect.FileDescriptor + var OperationType_name = map[int32]string + var OperationType_value = map[string]int32 + var RetCode_name = map[int32]string + var RetCode_value = map[string]int32 + var TradeType_name = map[int32]string + var TradeType_value = map[string]int32 + func RegisterPayBusinessServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error + func RegisterPayBusinessServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client PayBusinessServiceClient) error + func RegisterPayBusinessServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error) + func RegisterPayBusinessServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server PayBusinessServiceServer) error + func RegisterPayBusinessServiceServer(s *grpc.Server, srv PayBusinessServiceServer) + type AccountChargeRequest struct + AccountType AccountType + Amount string + CoinType CoinType + OpMeta *OperationMeta + OutTradeNo string + Owner []string + func (*AccountChargeRequest) Descriptor() ([]byte, []int) + func (*AccountChargeRequest) ProtoMessage() + func (x *AccountChargeRequest) GetAccountType() AccountType + func (x *AccountChargeRequest) GetAmount() string + func (x *AccountChargeRequest) GetCoinType() CoinType + func (x *AccountChargeRequest) GetOpMeta() *OperationMeta + func (x *AccountChargeRequest) GetOutTradeNo() string + func (x *AccountChargeRequest) GetOwner() []string + func (x *AccountChargeRequest) ProtoReflect() protoreflect.Message + func (x *AccountChargeRequest) Reset() + func (x *AccountChargeRequest) String() string + type AccountChargeResponse struct + Common *CommonResponse + func (*AccountChargeResponse) Descriptor() ([]byte, []int) + func (*AccountChargeResponse) ProtoMessage() + func (x *AccountChargeResponse) GetCommon() *CommonResponse + func (x *AccountChargeResponse) ProtoReflect() protoreflect.Message + func (x *AccountChargeResponse) Reset() + func (x *AccountChargeResponse) String() string + type AccountEntry struct + AccountType AccountType + Balance string + CoinType CoinType + Owner string + func (*AccountEntry) Descriptor() ([]byte, []int) + func (*AccountEntry) ProtoMessage() + func (x *AccountEntry) GetAccountType() AccountType + func (x *AccountEntry) GetBalance() string + func (x *AccountEntry) GetCoinType() CoinType + func (x *AccountEntry) GetOwner() string + func (x *AccountEntry) ProtoReflect() protoreflect.Message + func (x *AccountEntry) Reset() + func (x *AccountEntry) String() string + type AccountType int32 + const AccountType_Company + const AccountType_Person + const AccountType_System + func (AccountType) Descriptor() protoreflect.EnumDescriptor + func (AccountType) EnumDescriptor() ([]byte, []int) + func (AccountType) Type() protoreflect.EnumType + func (x AccountType) Enum() *AccountType + func (x AccountType) Number() protoreflect.EnumNumber + func (x AccountType) String() string + type CoinType int32 + const CoinType_CNY + const CoinType_USD + func (CoinType) Descriptor() protoreflect.EnumDescriptor + func (CoinType) EnumDescriptor() ([]byte, []int) + func (CoinType) Type() protoreflect.EnumType + func (x CoinType) Enum() *CoinType + func (x CoinType) Number() protoreflect.EnumNumber + func (x CoinType) String() string + type CommonResponse struct + Code RetCode + Msg string + func (*CommonResponse) Descriptor() ([]byte, []int) + func (*CommonResponse) ProtoMessage() + func (x *CommonResponse) GetCode() RetCode + func (x *CommonResponse) GetMsg() string + func (x *CommonResponse) ProtoReflect() protoreflect.Message + func (x *CommonResponse) Reset() + func (x *CommonResponse) String() string + type CreateAccountRequest struct + AccountType AccountType + Balance string + CoinType CoinType + Owner string + func (*CreateAccountRequest) Descriptor() ([]byte, []int) + func (*CreateAccountRequest) ProtoMessage() + func (x *CreateAccountRequest) GetAccountType() AccountType + func (x *CreateAccountRequest) GetBalance() string + func (x *CreateAccountRequest) GetCoinType() CoinType + func (x *CreateAccountRequest) GetOwner() string + func (x *CreateAccountRequest) ProtoReflect() protoreflect.Message + func (x *CreateAccountRequest) Reset() + func (x *CreateAccountRequest) String() string + type CreateAccountResponse struct + AccountCode string + Common *CommonResponse + func (*CreateAccountResponse) Descriptor() ([]byte, []int) + func (*CreateAccountResponse) ProtoMessage() + func (x *CreateAccountResponse) GetAccountCode() string + func (x *CreateAccountResponse) GetCommon() *CommonResponse + func (x *CreateAccountResponse) ProtoReflect() protoreflect.Message + func (x *CreateAccountResponse) Reset() + func (x *CreateAccountResponse) String() string + type FindAccountRequest struct + AccountType AccountType + CoinType CoinType + Owner []string + func (*FindAccountRequest) Descriptor() ([]byte, []int) + func (*FindAccountRequest) ProtoMessage() + func (x *FindAccountRequest) GetAccountType() AccountType + func (x *FindAccountRequest) GetCoinType() CoinType + func (x *FindAccountRequest) GetOwner() []string + func (x *FindAccountRequest) ProtoReflect() protoreflect.Message + func (x *FindAccountRequest) Reset() + func (x *FindAccountRequest) String() string + type FindAccountResponse struct + Common *CommonResponse + EntryList []*AccountEntry + func (*FindAccountResponse) Descriptor() ([]byte, []int) + func (*FindAccountResponse) ProtoMessage() + func (x *FindAccountResponse) GetCommon() *CommonResponse + func (x *FindAccountResponse) GetEntryList() []*AccountEntry + func (x *FindAccountResponse) ProtoReflect() protoreflect.Message + func (x *FindAccountResponse) Reset() + func (x *FindAccountResponse) String() string + type GetTradeUUIDRequest struct + ClientId string + TradeType TradeType + Uid int64 + func (*GetTradeUUIDRequest) Descriptor() ([]byte, []int) + func (*GetTradeUUIDRequest) ProtoMessage() + func (x *GetTradeUUIDRequest) GetClientId() string + func (x *GetTradeUUIDRequest) GetTradeType() TradeType + func (x *GetTradeUUIDRequest) GetUid() int64 + func (x *GetTradeUUIDRequest) ProtoReflect() protoreflect.Message + func (x *GetTradeUUIDRequest) Reset() + func (x *GetTradeUUIDRequest) String() string + type GetTradeUUIDResponse struct + Common *CommonResponse + Uuid string + func (*GetTradeUUIDResponse) Descriptor() ([]byte, []int) + func (*GetTradeUUIDResponse) ProtoMessage() + func (x *GetTradeUUIDResponse) GetCommon() *CommonResponse + func (x *GetTradeUUIDResponse) GetUuid() string + func (x *GetTradeUUIDResponse) ProtoReflect() protoreflect.Message + func (x *GetTradeUUIDResponse) Reset() + func (x *GetTradeUUIDResponse) String() string + type OperationMeta struct + OpDevice string + OpIp string + OpPlatform string + OpUid int64 + func (*OperationMeta) Descriptor() ([]byte, []int) + func (*OperationMeta) ProtoMessage() + func (x *OperationMeta) GetOpDevice() string + func (x *OperationMeta) GetOpIp() string + func (x *OperationMeta) GetOpPlatform() string + func (x *OperationMeta) GetOpUid() int64 + func (x *OperationMeta) ProtoReflect() protoreflect.Message + func (x *OperationMeta) Reset() + func (x *OperationMeta) String() string + type OperationType int32 + const OperationType_AUDIT + const OperationType_CREATE + const OperationType_DELETE + const OperationType_PUT_AWAY + const OperationType_UPDATE + func (OperationType) Descriptor() protoreflect.EnumDescriptor + func (OperationType) EnumDescriptor() ([]byte, []int) + func (OperationType) Type() protoreflect.EnumType + func (x OperationType) Enum() *OperationType + func (x OperationType) Number() protoreflect.EnumNumber + func (x OperationType) String() string + type PayBusinessServiceClient interface + AccountCharge func(ctx context.Context, in *AccountChargeRequest, opts ...grpc.CallOption) (*AccountChargeResponse, error) + CreateAccount func(ctx context.Context, in *CreateAccountRequest, opts ...grpc.CallOption) (*CreateAccountResponse, error) + FindAccount func(ctx context.Context, in *FindAccountRequest, opts ...grpc.CallOption) (*FindAccountResponse, error) + GetTradeUUID func(ctx context.Context, in *GetTradeUUIDRequest, opts ...grpc.CallOption) (*GetTradeUUIDResponse, error) + TradePay func(ctx context.Context, in *TradePayRequest, opts ...grpc.CallOption) (*TradePayResponse, error) + func NewPayBusinessServiceClient(cc grpc.ClientConnInterface) PayBusinessServiceClient + type PayBusinessServiceServer interface + AccountCharge func(context.Context, *AccountChargeRequest) (*AccountChargeResponse, error) + CreateAccount func(context.Context, *CreateAccountRequest) (*CreateAccountResponse, error) + FindAccount func(context.Context, *FindAccountRequest) (*FindAccountResponse, error) + GetTradeUUID func(context.Context, *GetTradeUUIDRequest) (*GetTradeUUIDResponse, error) + TradePay func(context.Context, *TradePayRequest) (*TradePayResponse, error) + type RetCode int32 + const RetCode_ACCOUNT_EXIST + const RetCode_ACCOUNT_LOCK + const RetCode_DECIMAL_PARSE_ERR + const RetCode_ERROR + const RetCode_MERCHANT_ACCOUNT_NOT_EXIST + const RetCode_MERCHANT_ACCOUNT_STATE_LOCK + const RetCode_MERCHANT_BALANCE_NOT_ENOUGH + const RetCode_MERCHANT_EXIST + const RetCode_MERCHANT_NOT_EXIST + const RetCode_SHOP_EXIST + const RetCode_SHOP_NOT_EXIST + const RetCode_SKU_AMOUNT_NOT_ENOUGH + const RetCode_SKU_EXIST + const RetCode_SKU_NOT_EXIST + const RetCode_SUCCESS + const RetCode_TRADE_ORDER_NOT_MATCH_USER + const RetCode_TRADE_PAY_EXPIRE + const RetCode_TRADE_PAY_RUN + const RetCode_TRADE_PAY_SUCCESS + const RetCode_TRADE_UUID_EMPTY + const RetCode_TRANSACTION_FAILED + const RetCode_USER_ACCOUNT_NOT_EXIST + const RetCode_USER_ACCOUNT_STATE_INVALID + const RetCode_USER_ACCOUNT_STATE_LOCK + const RetCode_USER_BALANCE_NOT_ENOUGH + const RetCode_USER_CHARGE_RECORD_EXIST + const RetCode_USER_EXIST + const RetCode_USER_NOT_EXIST + func (RetCode) Descriptor() protoreflect.EnumDescriptor + func (RetCode) EnumDescriptor() ([]byte, []int) + func (RetCode) Type() protoreflect.EnumType + func (x RetCode) Enum() *RetCode + func (x RetCode) Number() protoreflect.EnumNumber + func (x RetCode) String() string + type TradeGoodsDetail struct + Amount string + Reduction string + func (*TradeGoodsDetail) Descriptor() ([]byte, []int) + func (*TradeGoodsDetail) ProtoMessage() + func (x *TradeGoodsDetail) GetAmount() string + func (x *TradeGoodsDetail) GetReduction() string + func (x *TradeGoodsDetail) ProtoReflect() protoreflect.Message + func (x *TradeGoodsDetail) Reset() + func (x *TradeGoodsDetail) String() string + type TradePayEntry struct + Attach string + Description string + Detail *TradeGoodsDetail + Merchant string + NotifyUrl string + OutTradeNo string + TimeExpire string + func (*TradePayEntry) Descriptor() ([]byte, []int) + func (*TradePayEntry) ProtoMessage() + func (x *TradePayEntry) GetAttach() string + func (x *TradePayEntry) GetDescription() string + func (x *TradePayEntry) GetDetail() *TradeGoodsDetail + func (x *TradePayEntry) GetMerchant() string + func (x *TradePayEntry) GetNotifyUrl() string + func (x *TradePayEntry) GetOutTradeNo() string + func (x *TradePayEntry) GetTimeExpire() string + func (x *TradePayEntry) ProtoReflect() protoreflect.Message + func (x *TradePayEntry) Reset() + func (x *TradePayEntry) String() string + type TradePayRequest struct + Account string + CoinType CoinType + EntryList []*TradePayEntry + OpIp string + OpUid int64 + OutTxCode string + func (*TradePayRequest) Descriptor() ([]byte, []int) + func (*TradePayRequest) ProtoMessage() + func (x *TradePayRequest) GetAccount() string + func (x *TradePayRequest) GetCoinType() CoinType + func (x *TradePayRequest) GetEntryList() []*TradePayEntry + func (x *TradePayRequest) GetOpIp() string + func (x *TradePayRequest) GetOpUid() int64 + func (x *TradePayRequest) GetOutTxCode() string + func (x *TradePayRequest) ProtoReflect() protoreflect.Message + func (x *TradePayRequest) Reset() + func (x *TradePayRequest) String() string + type TradePayResponse struct + Common *CommonResponse + TradeId string + func (*TradePayResponse) Descriptor() ([]byte, []int) + func (*TradePayResponse) ProtoMessage() + func (x *TradePayResponse) GetCommon() *CommonResponse + func (x *TradePayResponse) GetTradeId() string + func (x *TradePayResponse) ProtoReflect() protoreflect.Message + func (x *TradePayResponse) Reset() + func (x *TradePayResponse) String() string + type TradeType int32 + const TradeType_CHARGE + const TradeType_PAY + func (TradeType) Descriptor() protoreflect.EnumDescriptor + func (TradeType) EnumDescriptor() ([]byte, []int) + func (TradeType) Type() protoreflect.EnumType + func (x TradeType) Enum() *TradeType + func (x TradeType) Number() protoreflect.EnumNumber + func (x TradeType) String() string + type UnimplementedPayBusinessServiceServer struct + func (*UnimplementedPayBusinessServiceServer) AccountCharge(context.Context, *AccountChargeRequest) (*AccountChargeResponse, error) + func (*UnimplementedPayBusinessServiceServer) CreateAccount(context.Context, *CreateAccountRequest) (*CreateAccountResponse, error) + func (*UnimplementedPayBusinessServiceServer) FindAccount(context.Context, *FindAccountRequest) (*FindAccountResponse, error) + func (*UnimplementedPayBusinessServiceServer) GetTradeUUID(context.Context, *GetTradeUUIDRequest) (*GetTradeUUIDResponse, error) + func (*UnimplementedPayBusinessServiceServer) TradePay(context.Context, *TradePayRequest) (*TradePayResponse, error)