Documentation
¶
Overview ¶
Package logistics_business is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterLogisticsBusinessServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterLogisticsBusinessServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, ...) error
- func RegisterLogisticsBusinessServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterLogisticsBusinessServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, ...) error
- func RegisterLogisticsBusinessServiceServer(s *grpc.Server, srv LogisticsBusinessServiceServer)
- type ApplyLogisticsRequest
- func (*ApplyLogisticsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ApplyLogisticsRequest) GetCourier() string
- func (x *ApplyLogisticsRequest) GetCourierType() int32
- func (x *ApplyLogisticsRequest) GetCustomer() *CustomerInfo
- func (x *ApplyLogisticsRequest) GetGoods() []*GoodsInfo
- func (x *ApplyLogisticsRequest) GetOutTradeNo() string
- func (x *ApplyLogisticsRequest) GetReceiveType() int32
- func (x *ApplyLogisticsRequest) GetSendTime() string
- func (*ApplyLogisticsRequest) ProtoMessage()
- func (x *ApplyLogisticsRequest) ProtoReflect() protoreflect.Message
- func (x *ApplyLogisticsRequest) Reset()
- func (x *ApplyLogisticsRequest) String() string
- type ApplyLogisticsResponse
- func (*ApplyLogisticsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ApplyLogisticsResponse) GetCommon() *CommonResponse
- func (x *ApplyLogisticsResponse) GetLogisticsCode() string
- func (*ApplyLogisticsResponse) ProtoMessage()
- func (x *ApplyLogisticsResponse) ProtoReflect() protoreflect.Message
- func (x *ApplyLogisticsResponse) Reset()
- func (x *ApplyLogisticsResponse) String() string
- 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 CustomerInfo
- func (*CustomerInfo) Descriptor() ([]byte, []int)deprecated
- func (x *CustomerInfo) GetReceiveAddr() string
- func (x *CustomerInfo) GetReceivePhone() string
- func (x *CustomerInfo) GetReceiveUser() string
- func (x *CustomerInfo) GetSendAddr() string
- func (x *CustomerInfo) GetSendPhone() string
- func (x *CustomerInfo) GetSendTime() string
- func (x *CustomerInfo) GetSendUser() string
- func (*CustomerInfo) ProtoMessage()
- func (x *CustomerInfo) ProtoReflect() protoreflect.Message
- func (x *CustomerInfo) Reset()
- func (x *CustomerInfo) String() string
- type GoodsInfo
- func (*GoodsInfo) Descriptor() ([]byte, []int)deprecated
- func (x *GoodsInfo) GetCount() int64
- func (x *GoodsInfo) GetKind() string
- func (x *GoodsInfo) GetName() string
- func (x *GoodsInfo) GetSkuCode() string
- func (*GoodsInfo) ProtoMessage()
- func (x *GoodsInfo) ProtoReflect() protoreflect.Message
- func (x *GoodsInfo) Reset()
- func (x *GoodsInfo) String() string
- type LogisticsBusinessServiceClient
- type LogisticsBusinessServiceServer
- type LogisticsState
- func (*LogisticsState) Descriptor() ([]byte, []int)deprecated
- func (x *LogisticsState) GetCreateTime() string
- func (x *LogisticsState) GetDescription() string
- func (x *LogisticsState) GetFlag() string
- func (x *LogisticsState) GetId() int64
- func (x *LogisticsState) GetLocation() string
- func (x *LogisticsState) GetLogisticsCode() string
- func (x *LogisticsState) GetOperator() string
- func (x *LogisticsState) GetState() LogisticsStateType
- func (*LogisticsState) ProtoMessage()
- func (x *LogisticsState) ProtoReflect() protoreflect.Message
- func (x *LogisticsState) Reset()
- func (x *LogisticsState) String() string
- type LogisticsStateType
- func (LogisticsStateType) Descriptor() protoreflect.EnumDescriptor
- func (x LogisticsStateType) Enum() *LogisticsStateType
- func (LogisticsStateType) EnumDescriptor() ([]byte, []int)deprecated
- func (x LogisticsStateType) Number() protoreflect.EnumNumber
- func (x LogisticsStateType) String() string
- func (LogisticsStateType) Type() protoreflect.EnumType
- 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 QueryRecordRequest
- func (*QueryRecordRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryRecordRequest) GetLogisticsCode() string
- func (*QueryRecordRequest) ProtoMessage()
- func (x *QueryRecordRequest) ProtoReflect() protoreflect.Message
- func (x *QueryRecordRequest) Reset()
- func (x *QueryRecordRequest) String() string
- type QueryRecordResponse
- func (*QueryRecordResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryRecordResponse) GetCommon() *CommonResponse
- func (x *QueryRecordResponse) GetCourier() string
- func (x *QueryRecordResponse) GetCourierType() string
- func (x *QueryRecordResponse) GetCustomer() *CustomerInfo
- func (x *QueryRecordResponse) GetGoods() string
- func (x *QueryRecordResponse) GetReceiveType() string
- func (x *QueryRecordResponse) GetStateList() []*LogisticsState
- func (*QueryRecordResponse) ProtoMessage()
- func (x *QueryRecordResponse) ProtoReflect() protoreflect.Message
- func (x *QueryRecordResponse) Reset()
- func (x *QueryRecordResponse) String() string
- type RetCode
- type UnimplementedLogisticsBusinessServiceServer
- func (*UnimplementedLogisticsBusinessServiceServer) ApplyLogistics(context.Context, *ApplyLogisticsRequest) (*ApplyLogisticsResponse, error)
- func (*UnimplementedLogisticsBusinessServiceServer) QueryRecord(context.Context, *QueryRecordRequest) (*QueryRecordResponse, error)
- func (*UnimplementedLogisticsBusinessServiceServer) UpdateState(context.Context, *UpdateStateRequest) (*UpdateStateResponse, error)
- type UpdateStateRequest
- func (*UpdateStateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateStateRequest) GetLogisticsCode() string
- func (x *UpdateStateRequest) GetState() *LogisticsState
- func (*UpdateStateRequest) ProtoMessage()
- func (x *UpdateStateRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateStateRequest) Reset()
- func (x *UpdateStateRequest) String() string
- type UpdateStateResponse
- func (*UpdateStateResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateStateResponse) GetCommon() *CommonResponse
- func (*UpdateStateResponse) ProtoMessage()
- func (x *UpdateStateResponse) ProtoReflect() protoreflect.Message
- func (x *UpdateStateResponse) Reset()
- func (x *UpdateStateResponse) String() string
Constants ¶
This section is empty.
Variables ¶
var ( RetCode_name = map[int32]string{ 0: "SUCCESS", 500: "ERROR", 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", 600000: "USER_BALANCE_NOT_ENOUGH", 6000001: "MERCHANT_BALANCE_NOT_ENOUGH", 6000002: "ACCOUNT_LOCK", 6000003: "MERCHANT_ACCOUNT_NOT_EXIST", 6000004: "MERCHANT_ACCOUNT_STATE_LOCK", 6000005: "USER_ACCOUNT_NOT_EXIST", 6000006: "USER_ACCOUNT_STATE_LOCK", 6000007: "DECIMAL_PARSE_ERR", 6000008: "TRANSACTION_FAILED", 6000009: "ACCOUNT_EXIST", 6000010: "LOGISTICS_CODE_NOT_EXIST", 60000101: "LOGISTICS_CODE_EXIST", } RetCode_value = map[string]int32{ "SUCCESS": 0, "ERROR": 500, "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, "USER_BALANCE_NOT_ENOUGH": 600000, "MERCHANT_BALANCE_NOT_ENOUGH": 6000001, "ACCOUNT_LOCK": 6000002, "MERCHANT_ACCOUNT_NOT_EXIST": 6000003, "MERCHANT_ACCOUNT_STATE_LOCK": 6000004, "USER_ACCOUNT_NOT_EXIST": 6000005, "USER_ACCOUNT_STATE_LOCK": 6000006, "DECIMAL_PARSE_ERR": 6000007, "TRANSACTION_FAILED": 6000008, "ACCOUNT_EXIST": 6000009, "LOGISTICS_CODE_NOT_EXIST": 6000010, "LOGISTICS_CODE_EXIST": 60000101, } )
Enum value maps for RetCode.
var ( LogisticsStateType_name = map[int32]string{ 0: "INIT", 100: "MERCHANTS", 200: "WAREHOUSE", 201: "WAREHOUSE_SWITCH", 202: "WAREHOUSE_PREPARE", 300: "TRANSPORT", 301: "TRANSPORT_READY", 400: "DELIVERY", 500: "RECEIVE", 600: "EXCHANGE", 700: "RETURN", } LogisticsStateType_value = map[string]int32{ "INIT": 0, "MERCHANTS": 100, "WAREHOUSE": 200, "WAREHOUSE_SWITCH": 201, "WAREHOUSE_PREPARE": 202, "TRANSPORT": 300, "TRANSPORT_READY": 301, "DELIVERY": 400, "RECEIVE": 500, "EXCHANGE": 600, "RETURN": 700, } )
Enum value maps for LogisticsStateType.
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 File_proto_micro_mall_logistics_proto_logistics_business_logistics_business_proto protoreflect.FileDescriptor
Functions ¶
func RegisterLogisticsBusinessServiceHandler ¶
func RegisterLogisticsBusinessServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterLogisticsBusinessServiceHandler registers the http handlers for service LogisticsBusinessService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterLogisticsBusinessServiceHandlerClient ¶
func RegisterLogisticsBusinessServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client LogisticsBusinessServiceClient) error
RegisterLogisticsBusinessServiceHandlerClient registers the http handlers for service LogisticsBusinessService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "LogisticsBusinessServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "LogisticsBusinessServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "LogisticsBusinessServiceClient" to call the correct interceptors.
func RegisterLogisticsBusinessServiceHandlerFromEndpoint ¶
func RegisterLogisticsBusinessServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterLogisticsBusinessServiceHandlerFromEndpoint is same as RegisterLogisticsBusinessServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterLogisticsBusinessServiceHandlerServer ¶
func RegisterLogisticsBusinessServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server LogisticsBusinessServiceServer) error
RegisterLogisticsBusinessServiceHandlerServer registers the http handlers for service LogisticsBusinessService to "mux". UnaryRPC :call LogisticsBusinessServiceServer 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 RegisterLogisticsBusinessServiceHandlerFromEndpoint instead.
func RegisterLogisticsBusinessServiceServer ¶
func RegisterLogisticsBusinessServiceServer(s *grpc.Server, srv LogisticsBusinessServiceServer)
Types ¶
type ApplyLogisticsRequest ¶
type ApplyLogisticsRequest struct { OutTradeNo string `protobuf:"bytes,1,opt,name=out_trade_no,json=outTradeNo,proto3" json:"out_trade_no,omitempty"` // 外部交易号,订单号 Courier string `protobuf:"bytes,2,opt,name=courier,proto3" json:"courier,omitempty"` // 国内承运人 CourierType int32 `protobuf:"varint,3,opt,name=courier_type,json=courierType,proto3" json:"courier_type,omitempty"` // 承运方式,普通,空运,加急 ReceiveType int32 `protobuf:"varint,4,opt,name=receive_type,json=receiveType,proto3" json:"receive_type,omitempty"` SendTime string `protobuf:"bytes,5,opt,name=send_time,json=sendTime,proto3" json:"send_time,omitempty"` Customer *CustomerInfo `protobuf:"bytes,299,opt,name=customer,proto3" json:"customer,omitempty"` // 客户信息 Goods []*GoodsInfo `protobuf:"bytes,300,rep,name=goods,proto3" json:"goods,omitempty"` // 货物信息 // contains filtered or unexported fields }
func (*ApplyLogisticsRequest) Descriptor
deprecated
func (*ApplyLogisticsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ApplyLogisticsRequest.ProtoReflect.Descriptor instead.
func (*ApplyLogisticsRequest) GetCourier ¶
func (x *ApplyLogisticsRequest) GetCourier() string
func (*ApplyLogisticsRequest) GetCourierType ¶
func (x *ApplyLogisticsRequest) GetCourierType() int32
func (*ApplyLogisticsRequest) GetCustomer ¶
func (x *ApplyLogisticsRequest) GetCustomer() *CustomerInfo
func (*ApplyLogisticsRequest) GetGoods ¶
func (x *ApplyLogisticsRequest) GetGoods() []*GoodsInfo
func (*ApplyLogisticsRequest) GetOutTradeNo ¶
func (x *ApplyLogisticsRequest) GetOutTradeNo() string
func (*ApplyLogisticsRequest) GetReceiveType ¶
func (x *ApplyLogisticsRequest) GetReceiveType() int32
func (*ApplyLogisticsRequest) GetSendTime ¶
func (x *ApplyLogisticsRequest) GetSendTime() string
func (*ApplyLogisticsRequest) ProtoMessage ¶
func (*ApplyLogisticsRequest) ProtoMessage()
func (*ApplyLogisticsRequest) ProtoReflect ¶
func (x *ApplyLogisticsRequest) ProtoReflect() protoreflect.Message
func (*ApplyLogisticsRequest) Reset ¶
func (x *ApplyLogisticsRequest) Reset()
func (*ApplyLogisticsRequest) String ¶
func (x *ApplyLogisticsRequest) String() string
type ApplyLogisticsResponse ¶
type ApplyLogisticsResponse struct { Common *CommonResponse `protobuf:"bytes,1,opt,name=common,proto3" json:"common,omitempty"` LogisticsCode string `protobuf:"bytes,3,opt,name=logistics_code,json=logisticsCode,proto3" json:"logistics_code,omitempty"` // contains filtered or unexported fields }
func (*ApplyLogisticsResponse) Descriptor
deprecated
func (*ApplyLogisticsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ApplyLogisticsResponse.ProtoReflect.Descriptor instead.
func (*ApplyLogisticsResponse) GetCommon ¶
func (x *ApplyLogisticsResponse) GetCommon() *CommonResponse
func (*ApplyLogisticsResponse) GetLogisticsCode ¶
func (x *ApplyLogisticsResponse) GetLogisticsCode() string
func (*ApplyLogisticsResponse) ProtoMessage ¶
func (*ApplyLogisticsResponse) ProtoMessage()
func (*ApplyLogisticsResponse) ProtoReflect ¶
func (x *ApplyLogisticsResponse) ProtoReflect() protoreflect.Message
func (*ApplyLogisticsResponse) Reset ¶
func (x *ApplyLogisticsResponse) Reset()
func (*ApplyLogisticsResponse) String ¶
func (x *ApplyLogisticsResponse) String() string
type CommonResponse ¶
type CommonResponse struct { Code RetCode `protobuf:"varint,1,opt,name=code,proto3,enum=logistics_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 CustomerInfo ¶
type CustomerInfo struct { SendUser string `protobuf:"bytes,1,opt,name=send_user,json=sendUser,proto3" json:"send_user,omitempty"` SendAddr string `protobuf:"bytes,2,opt,name=send_addr,json=sendAddr,proto3" json:"send_addr,omitempty"` SendPhone string `protobuf:"bytes,3,opt,name=send_phone,json=sendPhone,proto3" json:"send_phone,omitempty"` SendTime string `protobuf:"bytes,4,opt,name=send_time,json=sendTime,proto3" json:"send_time,omitempty"` ReceiveUser string `protobuf:"bytes,31,opt,name=receive_user,json=receiveUser,proto3" json:"receive_user,omitempty"` ReceiveAddr string `protobuf:"bytes,32,opt,name=receive_addr,json=receiveAddr,proto3" json:"receive_addr,omitempty"` ReceivePhone string `protobuf:"bytes,33,opt,name=receive_phone,json=receivePhone,proto3" json:"receive_phone,omitempty"` // contains filtered or unexported fields }
func (*CustomerInfo) Descriptor
deprecated
func (*CustomerInfo) Descriptor() ([]byte, []int)
Deprecated: Use CustomerInfo.ProtoReflect.Descriptor instead.
func (*CustomerInfo) GetReceiveAddr ¶
func (x *CustomerInfo) GetReceiveAddr() string
func (*CustomerInfo) GetReceivePhone ¶
func (x *CustomerInfo) GetReceivePhone() string
func (*CustomerInfo) GetReceiveUser ¶
func (x *CustomerInfo) GetReceiveUser() string
func (*CustomerInfo) GetSendAddr ¶
func (x *CustomerInfo) GetSendAddr() string
func (*CustomerInfo) GetSendPhone ¶
func (x *CustomerInfo) GetSendPhone() string
func (*CustomerInfo) GetSendTime ¶
func (x *CustomerInfo) GetSendTime() string
func (*CustomerInfo) GetSendUser ¶
func (x *CustomerInfo) GetSendUser() string
func (*CustomerInfo) ProtoMessage ¶
func (*CustomerInfo) ProtoMessage()
func (*CustomerInfo) ProtoReflect ¶
func (x *CustomerInfo) ProtoReflect() protoreflect.Message
func (*CustomerInfo) Reset ¶
func (x *CustomerInfo) Reset()
func (*CustomerInfo) String ¶
func (x *CustomerInfo) String() string
type GoodsInfo ¶
type GoodsInfo struct { SkuCode string `protobuf:"bytes,1,opt,name=sku_code,json=skuCode,proto3" json:"sku_code,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Kind string `protobuf:"bytes,3,opt,name=kind,proto3" json:"kind,omitempty"` Count int64 `protobuf:"varint,4,opt,name=count,proto3" json:"count,omitempty"` // contains filtered or unexported fields }
func (*GoodsInfo) Descriptor
deprecated
func (*GoodsInfo) GetSkuCode ¶
func (*GoodsInfo) ProtoMessage ¶
func (*GoodsInfo) ProtoMessage()
func (*GoodsInfo) ProtoReflect ¶
func (x *GoodsInfo) ProtoReflect() protoreflect.Message
type LogisticsBusinessServiceClient ¶
type LogisticsBusinessServiceClient interface { // 申请物流 ApplyLogistics(ctx context.Context, in *ApplyLogisticsRequest, opts ...grpc.CallOption) (*ApplyLogisticsResponse, error) // 查询物流记录 QueryRecord(ctx context.Context, in *QueryRecordRequest, opts ...grpc.CallOption) (*QueryRecordResponse, error) // 更新物流状态 UpdateState(ctx context.Context, in *UpdateStateRequest, opts ...grpc.CallOption) (*UpdateStateResponse, error) }
LogisticsBusinessServiceClient is the client API for LogisticsBusinessService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewLogisticsBusinessServiceClient ¶
func NewLogisticsBusinessServiceClient(cc grpc.ClientConnInterface) LogisticsBusinessServiceClient
type LogisticsBusinessServiceServer ¶
type LogisticsBusinessServiceServer interface { // 申请物流 ApplyLogistics(context.Context, *ApplyLogisticsRequest) (*ApplyLogisticsResponse, error) // 查询物流记录 QueryRecord(context.Context, *QueryRecordRequest) (*QueryRecordResponse, error) // 更新物流状态 UpdateState(context.Context, *UpdateStateRequest) (*UpdateStateResponse, error) }
LogisticsBusinessServiceServer is the server API for LogisticsBusinessService service.
type LogisticsState ¶
type LogisticsState struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` LogisticsCode string `protobuf:"bytes,2,opt,name=logistics_code,json=logisticsCode,proto3" json:"logistics_code,omitempty"` State LogisticsStateType `protobuf:"varint,3,opt,name=state,proto3,enum=logistics_business.LogisticsStateType" json:"state,omitempty"` Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` Flag string `protobuf:"bytes,5,opt,name=flag,proto3" json:"flag,omitempty"` Operator string `protobuf:"bytes,6,opt,name=operator,proto3" json:"operator,omitempty"` Location string `protobuf:"bytes,7,opt,name=location,proto3" json:"location,omitempty"` CreateTime string `protobuf:"bytes,8,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // contains filtered or unexported fields }
func (*LogisticsState) Descriptor
deprecated
func (*LogisticsState) Descriptor() ([]byte, []int)
Deprecated: Use LogisticsState.ProtoReflect.Descriptor instead.
func (*LogisticsState) GetCreateTime ¶
func (x *LogisticsState) GetCreateTime() string
func (*LogisticsState) GetDescription ¶
func (x *LogisticsState) GetDescription() string
func (*LogisticsState) GetFlag ¶
func (x *LogisticsState) GetFlag() string
func (*LogisticsState) GetId ¶
func (x *LogisticsState) GetId() int64
func (*LogisticsState) GetLocation ¶
func (x *LogisticsState) GetLocation() string
func (*LogisticsState) GetLogisticsCode ¶
func (x *LogisticsState) GetLogisticsCode() string
func (*LogisticsState) GetOperator ¶
func (x *LogisticsState) GetOperator() string
func (*LogisticsState) GetState ¶
func (x *LogisticsState) GetState() LogisticsStateType
func (*LogisticsState) ProtoMessage ¶
func (*LogisticsState) ProtoMessage()
func (*LogisticsState) ProtoReflect ¶
func (x *LogisticsState) ProtoReflect() protoreflect.Message
func (*LogisticsState) Reset ¶
func (x *LogisticsState) Reset()
func (*LogisticsState) String ¶
func (x *LogisticsState) String() string
type LogisticsStateType ¶
type LogisticsStateType int32
const ( LogisticsStateType_INIT LogisticsStateType = 0 // 初始 LogisticsStateType_MERCHANTS LogisticsStateType = 100 // 商户 LogisticsStateType_WAREHOUSE LogisticsStateType = 200 // 仓库 LogisticsStateType_WAREHOUSE_SWITCH LogisticsStateType = 201 // 仓库调换 LogisticsStateType_WAREHOUSE_PREPARE LogisticsStateType = 202 // 仓库准备 LogisticsStateType_TRANSPORT LogisticsStateType = 300 // 物流 LogisticsStateType_TRANSPORT_READY LogisticsStateType = 301 // 物流就绪 LogisticsStateType_DELIVERY LogisticsStateType = 400 // 派送 LogisticsStateType_RECEIVE LogisticsStateType = 500 // 签收 LogisticsStateType_EXCHANGE LogisticsStateType = 600 // 换货 LogisticsStateType_RETURN LogisticsStateType = 700 // 退货 )
func (LogisticsStateType) Descriptor ¶
func (LogisticsStateType) Descriptor() protoreflect.EnumDescriptor
func (LogisticsStateType) Enum ¶
func (x LogisticsStateType) Enum() *LogisticsStateType
func (LogisticsStateType) EnumDescriptor
deprecated
func (LogisticsStateType) EnumDescriptor() ([]byte, []int)
Deprecated: Use LogisticsStateType.Descriptor instead.
func (LogisticsStateType) Number ¶
func (x LogisticsStateType) Number() protoreflect.EnumNumber
func (LogisticsStateType) String ¶
func (x LogisticsStateType) String() string
func (LogisticsStateType) Type ¶
func (LogisticsStateType) Type() protoreflect.EnumType
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 QueryRecordRequest ¶
type QueryRecordRequest struct { LogisticsCode string `protobuf:"bytes,1,opt,name=logistics_code,json=logisticsCode,proto3" json:"logistics_code,omitempty"` // contains filtered or unexported fields }
func (*QueryRecordRequest) Descriptor
deprecated
func (*QueryRecordRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryRecordRequest.ProtoReflect.Descriptor instead.
func (*QueryRecordRequest) GetLogisticsCode ¶
func (x *QueryRecordRequest) GetLogisticsCode() string
func (*QueryRecordRequest) ProtoMessage ¶
func (*QueryRecordRequest) ProtoMessage()
func (*QueryRecordRequest) ProtoReflect ¶
func (x *QueryRecordRequest) ProtoReflect() protoreflect.Message
func (*QueryRecordRequest) Reset ¶
func (x *QueryRecordRequest) Reset()
func (*QueryRecordRequest) String ¶
func (x *QueryRecordRequest) String() string
type QueryRecordResponse ¶
type QueryRecordResponse struct { Common *CommonResponse `protobuf:"bytes,1,opt,name=common,proto3" json:"common,omitempty"` Courier string `protobuf:"bytes,2,opt,name=courier,proto3" json:"courier,omitempty"` // 国内承运人 CourierType string `protobuf:"bytes,3,opt,name=courier_type,json=courierType,proto3" json:"courier_type,omitempty"` // 承运方式,普通,空运,加急 ReceiveType string `protobuf:"bytes,4,opt,name=receive_type,json=receiveType,proto3" json:"receive_type,omitempty"` Customer *CustomerInfo `protobuf:"bytes,299,opt,name=customer,proto3" json:"customer,omitempty"` // 客户信息 Goods string `protobuf:"bytes,300,opt,name=goods,proto3" json:"goods,omitempty"` // 货物信息 StateList []*LogisticsState `protobuf:"bytes,301,rep,name=state_list,json=stateList,proto3" json:"state_list,omitempty"` // contains filtered or unexported fields }
func (*QueryRecordResponse) Descriptor
deprecated
func (*QueryRecordResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryRecordResponse.ProtoReflect.Descriptor instead.
func (*QueryRecordResponse) GetCommon ¶
func (x *QueryRecordResponse) GetCommon() *CommonResponse
func (*QueryRecordResponse) GetCourier ¶
func (x *QueryRecordResponse) GetCourier() string
func (*QueryRecordResponse) GetCourierType ¶
func (x *QueryRecordResponse) GetCourierType() string
func (*QueryRecordResponse) GetCustomer ¶
func (x *QueryRecordResponse) GetCustomer() *CustomerInfo
func (*QueryRecordResponse) GetGoods ¶
func (x *QueryRecordResponse) GetGoods() string
func (*QueryRecordResponse) GetReceiveType ¶
func (x *QueryRecordResponse) GetReceiveType() string
func (*QueryRecordResponse) GetStateList ¶
func (x *QueryRecordResponse) GetStateList() []*LogisticsState
func (*QueryRecordResponse) ProtoMessage ¶
func (*QueryRecordResponse) ProtoMessage()
func (*QueryRecordResponse) ProtoReflect ¶
func (x *QueryRecordResponse) ProtoReflect() protoreflect.Message
func (*QueryRecordResponse) Reset ¶
func (x *QueryRecordResponse) Reset()
func (*QueryRecordResponse) String ¶
func (x *QueryRecordResponse) String() string
type RetCode ¶
type RetCode int32
const ( RetCode_SUCCESS RetCode = 0 RetCode_ERROR RetCode = 500 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_USER_BALANCE_NOT_ENOUGH RetCode = 600000 RetCode_MERCHANT_BALANCE_NOT_ENOUGH RetCode = 6000001 RetCode_ACCOUNT_LOCK RetCode = 6000002 RetCode_MERCHANT_ACCOUNT_NOT_EXIST RetCode = 6000003 RetCode_MERCHANT_ACCOUNT_STATE_LOCK RetCode = 6000004 RetCode_USER_ACCOUNT_NOT_EXIST RetCode = 6000005 RetCode_USER_ACCOUNT_STATE_LOCK RetCode = 6000006 RetCode_DECIMAL_PARSE_ERR RetCode = 6000007 RetCode_TRANSACTION_FAILED RetCode = 6000008 RetCode_ACCOUNT_EXIST RetCode = 6000009 RetCode_LOGISTICS_CODE_NOT_EXIST RetCode = 6000010 RetCode_LOGISTICS_CODE_EXIST RetCode = 60000101 )
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 UnimplementedLogisticsBusinessServiceServer ¶
type UnimplementedLogisticsBusinessServiceServer struct { }
UnimplementedLogisticsBusinessServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedLogisticsBusinessServiceServer) ApplyLogistics ¶
func (*UnimplementedLogisticsBusinessServiceServer) ApplyLogistics(context.Context, *ApplyLogisticsRequest) (*ApplyLogisticsResponse, error)
func (*UnimplementedLogisticsBusinessServiceServer) QueryRecord ¶
func (*UnimplementedLogisticsBusinessServiceServer) QueryRecord(context.Context, *QueryRecordRequest) (*QueryRecordResponse, error)
func (*UnimplementedLogisticsBusinessServiceServer) UpdateState ¶
func (*UnimplementedLogisticsBusinessServiceServer) UpdateState(context.Context, *UpdateStateRequest) (*UpdateStateResponse, error)
type UpdateStateRequest ¶
type UpdateStateRequest struct { LogisticsCode string `protobuf:"bytes,1,opt,name=logistics_code,json=logisticsCode,proto3" json:"logistics_code,omitempty"` State *LogisticsState `protobuf:"bytes,2,opt,name=state,proto3" json:"state,omitempty"` // contains filtered or unexported fields }
func (*UpdateStateRequest) Descriptor
deprecated
func (*UpdateStateRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateStateRequest.ProtoReflect.Descriptor instead.
func (*UpdateStateRequest) GetLogisticsCode ¶
func (x *UpdateStateRequest) GetLogisticsCode() string
func (*UpdateStateRequest) GetState ¶
func (x *UpdateStateRequest) GetState() *LogisticsState
func (*UpdateStateRequest) ProtoMessage ¶
func (*UpdateStateRequest) ProtoMessage()
func (*UpdateStateRequest) ProtoReflect ¶
func (x *UpdateStateRequest) ProtoReflect() protoreflect.Message
func (*UpdateStateRequest) Reset ¶
func (x *UpdateStateRequest) Reset()
func (*UpdateStateRequest) String ¶
func (x *UpdateStateRequest) String() string
type UpdateStateResponse ¶
type UpdateStateResponse struct { Common *CommonResponse `protobuf:"bytes,1,opt,name=common,proto3" json:"common,omitempty"` // contains filtered or unexported fields }
func (*UpdateStateResponse) Descriptor
deprecated
func (*UpdateStateResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateStateResponse.ProtoReflect.Descriptor instead.
func (*UpdateStateResponse) GetCommon ¶
func (x *UpdateStateResponse) GetCommon() *CommonResponse
func (*UpdateStateResponse) ProtoMessage ¶
func (*UpdateStateResponse) ProtoMessage()
func (*UpdateStateResponse) ProtoReflect ¶
func (x *UpdateStateResponse) ProtoReflect() protoreflect.Message
func (*UpdateStateResponse) Reset ¶
func (x *UpdateStateResponse) Reset()
func (*UpdateStateResponse) String ¶
func (x *UpdateStateResponse) String() string