933 lines
29 KiB
Go
933 lines
29 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||
// versions:
|
||
// protoc-gen-go v1.36.6
|
||
// protoc (unknown)
|
||
// source: blocks.proto
|
||
|
||
package order
|
||
|
||
import (
|
||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||
reflect "reflect"
|
||
sync "sync"
|
||
unsafe "unsafe"
|
||
)
|
||
|
||
const (
|
||
// Verify that this generated code is sufficiently up-to-date.
|
||
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
||
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
||
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
||
)
|
||
|
||
type Empty struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *Empty) Reset() {
|
||
*x = Empty{}
|
||
mi := &file_blocks_proto_msgTypes[0]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *Empty) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*Empty) ProtoMessage() {}
|
||
|
||
func (x *Empty) ProtoReflect() protoreflect.Message {
|
||
mi := &file_blocks_proto_msgTypes[0]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use Empty.ProtoReflect.Descriptor instead.
|
||
func (*Empty) Descriptor() ([]byte, []int) {
|
||
return file_blocks_proto_rawDescGZIP(), []int{0}
|
||
}
|
||
|
||
type FetchRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
PageNo int64 `protobuf:"varint,1,opt,name=page_no,proto3" json:"page_no,omitempty"` // 页数
|
||
PageSize int64 `protobuf:"varint,2,opt,name=page_size,proto3" json:"page_size,omitempty"` // 每页记录数
|
||
Params map[string]string `protobuf:"bytes,3,rep,name=params,proto3" json:"params,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` // 条件参数,key=val,eg key:category_id=?,vlaue=11
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *FetchRequest) Reset() {
|
||
*x = FetchRequest{}
|
||
mi := &file_blocks_proto_msgTypes[1]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *FetchRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*FetchRequest) ProtoMessage() {}
|
||
|
||
func (x *FetchRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_blocks_proto_msgTypes[1]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use FetchRequest.ProtoReflect.Descriptor instead.
|
||
func (*FetchRequest) Descriptor() ([]byte, []int) {
|
||
return file_blocks_proto_rawDescGZIP(), []int{1}
|
||
}
|
||
|
||
func (x *FetchRequest) GetPageNo() int64 {
|
||
if x != nil {
|
||
return x.PageNo
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *FetchRequest) GetPageSize() int64 {
|
||
if x != nil {
|
||
return x.PageSize
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *FetchRequest) GetParams() map[string]string {
|
||
if x != nil {
|
||
return x.Params
|
||
}
|
||
return nil
|
||
}
|
||
|
||
type IdentRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 唯一ID
|
||
Identity string `protobuf:"bytes,2,opt,name=identity,proto3" json:"identity,omitempty"` // 唯一码
|
||
Reason string `protobuf:"bytes,3,opt,name=reason,proto3" json:"reason,omitempty"` // 退款原因
|
||
Approve int32 `protobuf:"varint,4,opt,name=approve,proto3" json:"approve,omitempty"` // 状态:-2:未通过,0:默认 1:申请退款 2:申请退货 3:申请退款退货 4:申请通过
|
||
Agency string `protobuf:"bytes,5,opt,name=agency,proto3" json:"agency,omitempty"` // 代理
|
||
StoreIdentity string `protobuf:"bytes,6,opt,name=store_identity,json=storeIdentity,proto3" json:"store_identity,omitempty"` // 店铺标识
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *IdentRequest) Reset() {
|
||
*x = IdentRequest{}
|
||
mi := &file_blocks_proto_msgTypes[2]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *IdentRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*IdentRequest) ProtoMessage() {}
|
||
|
||
func (x *IdentRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_blocks_proto_msgTypes[2]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use IdentRequest.ProtoReflect.Descriptor instead.
|
||
func (*IdentRequest) Descriptor() ([]byte, []int) {
|
||
return file_blocks_proto_rawDescGZIP(), []int{2}
|
||
}
|
||
|
||
func (x *IdentRequest) GetId() int64 {
|
||
if x != nil {
|
||
return x.Id
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *IdentRequest) GetIdentity() string {
|
||
if x != nil {
|
||
return x.Identity
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *IdentRequest) GetReason() string {
|
||
if x != nil {
|
||
return x.Reason
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *IdentRequest) GetApprove() int32 {
|
||
if x != nil {
|
||
return x.Approve
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *IdentRequest) GetAgency() string {
|
||
if x != nil {
|
||
return x.Agency
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *IdentRequest) GetStoreIdentity() string {
|
||
if x != nil {
|
||
return x.StoreIdentity
|
||
}
|
||
return ""
|
||
}
|
||
|
||
type StatusReply struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` // 状态码
|
||
Identity string `protobuf:"bytes,2,opt,name=identity,proto3" json:"identity,omitempty"` // 标识码
|
||
Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"` //状态说明
|
||
Timeseq int64 `protobuf:"varint,4,opt,name=timeseq,proto3" json:"timeseq,omitempty"` // 响应时间序列
|
||
Reason string `protobuf:"bytes,5,opt,name=reason,proto3" json:"reason,omitempty"` // 退款原因
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *StatusReply) Reset() {
|
||
*x = StatusReply{}
|
||
mi := &file_blocks_proto_msgTypes[3]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *StatusReply) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*StatusReply) ProtoMessage() {}
|
||
|
||
func (x *StatusReply) ProtoReflect() protoreflect.Message {
|
||
mi := &file_blocks_proto_msgTypes[3]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use StatusReply.ProtoReflect.Descriptor instead.
|
||
func (*StatusReply) Descriptor() ([]byte, []int) {
|
||
return file_blocks_proto_rawDescGZIP(), []int{3}
|
||
}
|
||
|
||
func (x *StatusReply) GetCode() int32 {
|
||
if x != nil {
|
||
return x.Code
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *StatusReply) GetIdentity() string {
|
||
if x != nil {
|
||
return x.Identity
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *StatusReply) GetMessage() string {
|
||
if x != nil {
|
||
return x.Message
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *StatusReply) GetTimeseq() int64 {
|
||
if x != nil {
|
||
return x.Timeseq
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *StatusReply) GetReason() string {
|
||
if x != nil {
|
||
return x.Reason
|
||
}
|
||
return ""
|
||
}
|
||
|
||
type OrderSummaryItem struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // ID
|
||
OrderNo string `protobuf:"bytes,2,opt,name=order_no,proto3" json:"order_no,omitempty"` // 订单编号
|
||
PartnerId int64 `protobuf:"varint,3,opt,name=partner_id,proto3" json:"partner_id,omitempty"` // 合伙人ID
|
||
Identity string `protobuf:"bytes,4,opt,name=identity,proto3" json:"identity,omitempty"` // 定单唯一标识
|
||
TotalPrice int64 `protobuf:"varint,7,opt,name=total_price,proto3" json:"total_price,omitempty"` // 总价
|
||
TransPrice int64 `protobuf:"varint,8,opt,name=trans_price,proto3" json:"trans_price,omitempty"` // 交易金额
|
||
RefundPrice int64 `protobuf:"varint,9,opt,name=refund_price,proto3" json:"refund_price,omitempty"` // 退款金额
|
||
LogisticsFee int64 `protobuf:"varint,11,opt,name=logistics_fee,proto3" json:"logistics_fee,omitempty"` // 物流费用
|
||
CouponAmount int64 `protobuf:"varint,12,opt,name=coupon_amount,proto3" json:"coupon_amount,omitempty"` // 优惠券金额
|
||
Remark string `protobuf:"bytes,13,opt,name=remark,proto3" json:"remark,omitempty"` // 备注
|
||
Status int32 `protobuf:"varint,14,opt,name=status,proto3" json:"status,omitempty"` // 订单状态:all全部订单,notarize确认中,sign签约中,signed签约完成,fulfil履约中,accomplish完成
|
||
LogisticsNumber string `protobuf:"bytes,15,opt,name=logistics_number,proto3" json:"logistics_number,omitempty"` // 物流号
|
||
AddressIdentity string `protobuf:"bytes,16,opt,name=address_identity,proto3" json:"address_identity,omitempty"` // 地址库唯一标识
|
||
County string `protobuf:"bytes,17,opt,name=county,proto3" json:"county,omitempty"` // 国家
|
||
Province string `protobuf:"bytes,18,opt,name=province,proto3" json:"province,omitempty"` // 省
|
||
City string `protobuf:"bytes,19,opt,name=city,proto3" json:"city,omitempty"` // 市
|
||
Area string `protobuf:"bytes,20,opt,name=area,proto3" json:"area,omitempty"` // 县
|
||
Address string `protobuf:"bytes,21,opt,name=address,proto3" json:"address,omitempty"` // 详细地址
|
||
Contact string `protobuf:"bytes,22,opt,name=contact,proto3" json:"contact,omitempty"` // 联系人
|
||
Phone string `protobuf:"bytes,23,opt,name=phone,proto3" json:"phone,omitempty"` // 联系电话
|
||
DeliveryTime string `protobuf:"bytes,24,opt,name=delivery_time,proto3" json:"delivery_time,omitempty"` // 配送时间
|
||
DeliveryIdentity string `protobuf:"bytes,25,opt,name=delivery_identity,proto3" json:"delivery_identity,omitempty"` // 配送工作人员唯一标识
|
||
PayType int32 `protobuf:"varint,26,opt,name=pay_type,proto3" json:"pay_type,omitempty"` // 支付类型:0:待支付,1:线下支付,2:微信 3:支付宝,4:余额
|
||
PayAmount int64 `protobuf:"varint,27,opt,name=pay_amount,proto3" json:"pay_amount,omitempty"` // 支付金额
|
||
PayTradeNo string `protobuf:"bytes,28,opt,name=pay_trade_no,proto3" json:"pay_trade_no,omitempty"` // 支付交易号
|
||
PayTime string `protobuf:"bytes,29,opt,name=pay_time,proto3" json:"pay_time,omitempty"` // 支付时间
|
||
PayRemark string `protobuf:"bytes,30,opt,name=pay_remark,proto3" json:"pay_remark,omitempty"` // 支付备注
|
||
Created string `protobuf:"bytes,31,opt,name=created,proto3" json:"created,omitempty"` // 创建时间
|
||
Updated string `protobuf:"bytes,32,opt,name=updated,proto3" json:"updated,omitempty"` // 最后创建时间
|
||
Details []*OrderDetails `protobuf:"bytes,33,rep,name=details,proto3" json:"details,omitempty"` //订单商品
|
||
Addr string `protobuf:"bytes,34,opt,name=addr,proto3" json:"addr,omitempty"` // 简单地址信息
|
||
CarIdentity string `protobuf:"bytes,35,opt,name=car_identity,proto3" json:"car_identity,omitempty"` // 配送车辆唯一标识
|
||
DeliveryAddress string `protobuf:"bytes,36,opt,name=delivery_address,proto3" json:"delivery_address,omitempty"` // 配送地址
|
||
Brand string `protobuf:"bytes,37,opt,name=brand,proto3" json:"brand,omitempty"` // 配送车辆品牌
|
||
Version string `protobuf:"bytes,38,opt,name=version,proto3" json:"version,omitempty"` // 配送车辆型号
|
||
LicenseNumber string `protobuf:"bytes,39,opt,name=license_number,proto3" json:"license_number,omitempty"` // 配送车辆车牌号
|
||
MemberName string `protobuf:"bytes,40,opt,name=member_name,proto3" json:"member_name,omitempty"` // 配送员姓名
|
||
MemberPhone string `protobuf:"bytes,41,opt,name=member_phone,proto3" json:"member_phone,omitempty"` // 配送员电话
|
||
Approve int32 `protobuf:"varint,42,opt,name=approve,proto3" json:"approve,omitempty"` // 审批
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *OrderSummaryItem) Reset() {
|
||
*x = OrderSummaryItem{}
|
||
mi := &file_blocks_proto_msgTypes[4]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *OrderSummaryItem) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*OrderSummaryItem) ProtoMessage() {}
|
||
|
||
func (x *OrderSummaryItem) ProtoReflect() protoreflect.Message {
|
||
mi := &file_blocks_proto_msgTypes[4]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use OrderSummaryItem.ProtoReflect.Descriptor instead.
|
||
func (*OrderSummaryItem) Descriptor() ([]byte, []int) {
|
||
return file_blocks_proto_rawDescGZIP(), []int{4}
|
||
}
|
||
|
||
func (x *OrderSummaryItem) GetId() int64 {
|
||
if x != nil {
|
||
return x.Id
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *OrderSummaryItem) GetOrderNo() string {
|
||
if x != nil {
|
||
return x.OrderNo
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *OrderSummaryItem) GetPartnerId() int64 {
|
||
if x != nil {
|
||
return x.PartnerId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *OrderSummaryItem) GetIdentity() string {
|
||
if x != nil {
|
||
return x.Identity
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *OrderSummaryItem) GetTotalPrice() int64 {
|
||
if x != nil {
|
||
return x.TotalPrice
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *OrderSummaryItem) GetTransPrice() int64 {
|
||
if x != nil {
|
||
return x.TransPrice
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *OrderSummaryItem) GetRefundPrice() int64 {
|
||
if x != nil {
|
||
return x.RefundPrice
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *OrderSummaryItem) GetLogisticsFee() int64 {
|
||
if x != nil {
|
||
return x.LogisticsFee
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *OrderSummaryItem) GetCouponAmount() int64 {
|
||
if x != nil {
|
||
return x.CouponAmount
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *OrderSummaryItem) GetRemark() string {
|
||
if x != nil {
|
||
return x.Remark
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *OrderSummaryItem) GetStatus() int32 {
|
||
if x != nil {
|
||
return x.Status
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *OrderSummaryItem) GetLogisticsNumber() string {
|
||
if x != nil {
|
||
return x.LogisticsNumber
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *OrderSummaryItem) GetAddressIdentity() string {
|
||
if x != nil {
|
||
return x.AddressIdentity
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *OrderSummaryItem) GetCounty() string {
|
||
if x != nil {
|
||
return x.County
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *OrderSummaryItem) GetProvince() string {
|
||
if x != nil {
|
||
return x.Province
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *OrderSummaryItem) GetCity() string {
|
||
if x != nil {
|
||
return x.City
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *OrderSummaryItem) GetArea() string {
|
||
if x != nil {
|
||
return x.Area
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *OrderSummaryItem) GetAddress() string {
|
||
if x != nil {
|
||
return x.Address
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *OrderSummaryItem) GetContact() string {
|
||
if x != nil {
|
||
return x.Contact
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *OrderSummaryItem) GetPhone() string {
|
||
if x != nil {
|
||
return x.Phone
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *OrderSummaryItem) GetDeliveryTime() string {
|
||
if x != nil {
|
||
return x.DeliveryTime
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *OrderSummaryItem) GetDeliveryIdentity() string {
|
||
if x != nil {
|
||
return x.DeliveryIdentity
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *OrderSummaryItem) GetPayType() int32 {
|
||
if x != nil {
|
||
return x.PayType
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *OrderSummaryItem) GetPayAmount() int64 {
|
||
if x != nil {
|
||
return x.PayAmount
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *OrderSummaryItem) GetPayTradeNo() string {
|
||
if x != nil {
|
||
return x.PayTradeNo
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *OrderSummaryItem) GetPayTime() string {
|
||
if x != nil {
|
||
return x.PayTime
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *OrderSummaryItem) GetPayRemark() string {
|
||
if x != nil {
|
||
return x.PayRemark
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *OrderSummaryItem) GetCreated() string {
|
||
if x != nil {
|
||
return x.Created
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *OrderSummaryItem) GetUpdated() string {
|
||
if x != nil {
|
||
return x.Updated
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *OrderSummaryItem) GetDetails() []*OrderDetails {
|
||
if x != nil {
|
||
return x.Details
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *OrderSummaryItem) GetAddr() string {
|
||
if x != nil {
|
||
return x.Addr
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *OrderSummaryItem) GetCarIdentity() string {
|
||
if x != nil {
|
||
return x.CarIdentity
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *OrderSummaryItem) GetDeliveryAddress() string {
|
||
if x != nil {
|
||
return x.DeliveryAddress
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *OrderSummaryItem) GetBrand() string {
|
||
if x != nil {
|
||
return x.Brand
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *OrderSummaryItem) GetVersion() string {
|
||
if x != nil {
|
||
return x.Version
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *OrderSummaryItem) GetLicenseNumber() string {
|
||
if x != nil {
|
||
return x.LicenseNumber
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *OrderSummaryItem) GetMemberName() string {
|
||
if x != nil {
|
||
return x.MemberName
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *OrderSummaryItem) GetMemberPhone() string {
|
||
if x != nil {
|
||
return x.MemberPhone
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *OrderSummaryItem) GetApprove() int32 {
|
||
if x != nil {
|
||
return x.Approve
|
||
}
|
||
return 0
|
||
}
|
||
|
||
type OrderDetails struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // ID
|
||
ProductId int64 `protobuf:"varint,2,opt,name=product_id,proto3" json:"product_id,omitempty"` // 商品规格ID
|
||
SpecNo string `protobuf:"bytes,3,opt,name=spec_no,proto3" json:"spec_no,omitempty"` // 商品规格编号
|
||
Spec string `protobuf:"bytes,4,opt,name=spec,proto3" json:"spec,omitempty"` // 商品规格名称
|
||
Type int64 `protobuf:"varint,5,opt,name=type,proto3" json:"type,omitempty"` // 商品类型
|
||
Title string `protobuf:"bytes,6,opt,name=title,proto3" json:"title,omitempty"` //商品名称
|
||
CoverImage string `protobuf:"bytes,7,opt,name=cover_image,proto3" json:"cover_image,omitempty"` //商品封面图片
|
||
SalesPrice int64 `protobuf:"varint,8,opt,name=sales_price,proto3" json:"sales_price,omitempty"` //商品销售价格
|
||
ProductArgs string `protobuf:"bytes,9,opt,name=product_args,proto3" json:"product_args,omitempty"` // 商品参数
|
||
Number int64 `protobuf:"varint,10,opt,name=number,proto3" json:"number,omitempty"` // 数量
|
||
UnitPrice int64 `protobuf:"varint,11,opt,name=unit_price,proto3" json:"unit_price,omitempty"` // 单价
|
||
SpecId int64 `protobuf:"varint,12,opt,name=spec_id,proto3" json:"spec_id,omitempty"` // 商品规格id
|
||
ProductIdentity string `protobuf:"bytes,13,opt,name=product_identity,proto3" json:"product_identity,omitempty"` // 产品唯一标识
|
||
GasTypes int64 `protobuf:"varint,14,opt,name=gas_types,proto3" json:"gas_types,omitempty"` // 商品类型:1其它商品 2按瓶计费,3 按kg计费
|
||
TotalPrice int64 `protobuf:"varint,15,opt,name=total_price,proto3" json:"total_price,omitempty"` // 总价
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *OrderDetails) Reset() {
|
||
*x = OrderDetails{}
|
||
mi := &file_blocks_proto_msgTypes[5]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *OrderDetails) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*OrderDetails) ProtoMessage() {}
|
||
|
||
func (x *OrderDetails) ProtoReflect() protoreflect.Message {
|
||
mi := &file_blocks_proto_msgTypes[5]
|
||
if x != nil {
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
if ms.LoadMessageInfo() == nil {
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
return ms
|
||
}
|
||
return mi.MessageOf(x)
|
||
}
|
||
|
||
// Deprecated: Use OrderDetails.ProtoReflect.Descriptor instead.
|
||
func (*OrderDetails) Descriptor() ([]byte, []int) {
|
||
return file_blocks_proto_rawDescGZIP(), []int{5}
|
||
}
|
||
|
||
func (x *OrderDetails) GetId() int64 {
|
||
if x != nil {
|
||
return x.Id
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *OrderDetails) GetProductId() int64 {
|
||
if x != nil {
|
||
return x.ProductId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *OrderDetails) GetSpecNo() string {
|
||
if x != nil {
|
||
return x.SpecNo
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *OrderDetails) GetSpec() string {
|
||
if x != nil {
|
||
return x.Spec
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *OrderDetails) GetType() int64 {
|
||
if x != nil {
|
||
return x.Type
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *OrderDetails) GetTitle() string {
|
||
if x != nil {
|
||
return x.Title
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *OrderDetails) GetCoverImage() string {
|
||
if x != nil {
|
||
return x.CoverImage
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *OrderDetails) GetSalesPrice() int64 {
|
||
if x != nil {
|
||
return x.SalesPrice
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *OrderDetails) GetProductArgs() string {
|
||
if x != nil {
|
||
return x.ProductArgs
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *OrderDetails) GetNumber() int64 {
|
||
if x != nil {
|
||
return x.Number
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *OrderDetails) GetUnitPrice() int64 {
|
||
if x != nil {
|
||
return x.UnitPrice
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *OrderDetails) GetSpecId() int64 {
|
||
if x != nil {
|
||
return x.SpecId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *OrderDetails) GetProductIdentity() string {
|
||
if x != nil {
|
||
return x.ProductIdentity
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *OrderDetails) GetGasTypes() int64 {
|
||
if x != nil {
|
||
return x.GasTypes
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *OrderDetails) GetTotalPrice() int64 {
|
||
if x != nil {
|
||
return x.TotalPrice
|
||
}
|
||
return 0
|
||
}
|
||
|
||
var File_blocks_proto protoreflect.FileDescriptor
|
||
|
||
const file_blocks_proto_rawDesc = "" +
|
||
"\n" +
|
||
"\x12order/blocks.proto\x12\x05order\"\a\n" +
|
||
"\x05Empty\"\xba\x01\n" +
|
||
"\fFetchRequest\x12\x18\n" +
|
||
"\apage_no\x18\x01 \x01(\x03R\apage_no\x12\x1c\n" +
|
||
"\tpage_size\x18\x02 \x01(\x03R\tpage_size\x127\n" +
|
||
"\x06params\x18\x03 \x03(\v2\x1f.order.FetchRequest.ParamsEntryR\x06params\x1a9\n" +
|
||
"\vParamsEntry\x12\x10\n" +
|
||
"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
|
||
"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"\xab\x01\n" +
|
||
"\fIdentRequest\x12\x0e\n" +
|
||
"\x02id\x18\x01 \x01(\x03R\x02id\x12\x1a\n" +
|
||
"\bidentity\x18\x02 \x01(\tR\bidentity\x12\x16\n" +
|
||
"\x06reason\x18\x03 \x01(\tR\x06reason\x12\x18\n" +
|
||
"\aapprove\x18\x04 \x01(\x05R\aapprove\x12\x16\n" +
|
||
"\x06agency\x18\x05 \x01(\tR\x06agency\x12%\n" +
|
||
"\x0estore_identity\x18\x06 \x01(\tR\rstoreIdentity\"\x89\x01\n" +
|
||
"\vStatusReply\x12\x12\n" +
|
||
"\x04code\x18\x01 \x01(\x05R\x04code\x12\x1a\n" +
|
||
"\bidentity\x18\x02 \x01(\tR\bidentity\x12\x18\n" +
|
||
"\amessage\x18\x03 \x01(\tR\amessage\x12\x18\n" +
|
||
"\atimeseq\x18\x04 \x01(\x03R\atimeseq\x12\x16\n" +
|
||
"\x06reason\x18\x05 \x01(\tR\x06reason\"\xcb\t\n" +
|
||
"\x10OrderSummaryItem\x12\x0e\n" +
|
||
"\x02id\x18\x01 \x01(\x03R\x02id\x12\x1a\n" +
|
||
"\border_no\x18\x02 \x01(\tR\border_no\x12\x1e\n" +
|
||
"\n" +
|
||
"partner_id\x18\x03 \x01(\x03R\n" +
|
||
"partner_id\x12\x1a\n" +
|
||
"\bidentity\x18\x04 \x01(\tR\bidentity\x12 \n" +
|
||
"\vtotal_price\x18\a \x01(\x03R\vtotal_price\x12 \n" +
|
||
"\vtrans_price\x18\b \x01(\x03R\vtrans_price\x12\"\n" +
|
||
"\frefund_price\x18\t \x01(\x03R\frefund_price\x12$\n" +
|
||
"\rlogistics_fee\x18\v \x01(\x03R\rlogistics_fee\x12$\n" +
|
||
"\rcoupon_amount\x18\f \x01(\x03R\rcoupon_amount\x12\x16\n" +
|
||
"\x06remark\x18\r \x01(\tR\x06remark\x12\x16\n" +
|
||
"\x06status\x18\x0e \x01(\x05R\x06status\x12*\n" +
|
||
"\x10logistics_number\x18\x0f \x01(\tR\x10logistics_number\x12*\n" +
|
||
"\x10address_identity\x18\x10 \x01(\tR\x10address_identity\x12\x16\n" +
|
||
"\x06county\x18\x11 \x01(\tR\x06county\x12\x1a\n" +
|
||
"\bprovince\x18\x12 \x01(\tR\bprovince\x12\x12\n" +
|
||
"\x04city\x18\x13 \x01(\tR\x04city\x12\x12\n" +
|
||
"\x04area\x18\x14 \x01(\tR\x04area\x12\x18\n" +
|
||
"\aaddress\x18\x15 \x01(\tR\aaddress\x12\x18\n" +
|
||
"\acontact\x18\x16 \x01(\tR\acontact\x12\x14\n" +
|
||
"\x05phone\x18\x17 \x01(\tR\x05phone\x12$\n" +
|
||
"\rdelivery_time\x18\x18 \x01(\tR\rdelivery_time\x12,\n" +
|
||
"\x11delivery_identity\x18\x19 \x01(\tR\x11delivery_identity\x12\x1a\n" +
|
||
"\bpay_type\x18\x1a \x01(\x05R\bpay_type\x12\x1e\n" +
|
||
"\n" +
|
||
"pay_amount\x18\x1b \x01(\x03R\n" +
|
||
"pay_amount\x12\"\n" +
|
||
"\fpay_trade_no\x18\x1c \x01(\tR\fpay_trade_no\x12\x1a\n" +
|
||
"\bpay_time\x18\x1d \x01(\tR\bpay_time\x12\x1e\n" +
|
||
"\n" +
|
||
"pay_remark\x18\x1e \x01(\tR\n" +
|
||
"pay_remark\x12\x18\n" +
|
||
"\acreated\x18\x1f \x01(\tR\acreated\x12\x18\n" +
|
||
"\aupdated\x18 \x01(\tR\aupdated\x12-\n" +
|
||
"\adetails\x18! \x03(\v2\x13.order.OrderDetailsR\adetails\x12\x12\n" +
|
||
"\x04addr\x18\" \x01(\tR\x04addr\x12\"\n" +
|
||
"\fcar_identity\x18# \x01(\tR\fcar_identity\x12*\n" +
|
||
"\x10delivery_address\x18$ \x01(\tR\x10delivery_address\x12\x14\n" +
|
||
"\x05brand\x18% \x01(\tR\x05brand\x12\x18\n" +
|
||
"\aversion\x18& \x01(\tR\aversion\x12&\n" +
|
||
"\x0elicense_number\x18' \x01(\tR\x0elicense_number\x12 \n" +
|
||
"\vmember_name\x18( \x01(\tR\vmember_name\x12\"\n" +
|
||
"\fmember_phone\x18) \x01(\tR\fmember_phone\x12\x18\n" +
|
||
"\aapprove\x18* \x01(\x05R\aapprove\"\xbc\x03\n" +
|
||
"\fOrderDetails\x12\x0e\n" +
|
||
"\x02id\x18\x01 \x01(\x03R\x02id\x12\x1e\n" +
|
||
"\n" +
|
||
"product_id\x18\x02 \x01(\x03R\n" +
|
||
"product_id\x12\x18\n" +
|
||
"\aspec_no\x18\x03 \x01(\tR\aspec_no\x12\x12\n" +
|
||
"\x04spec\x18\x04 \x01(\tR\x04spec\x12\x12\n" +
|
||
"\x04type\x18\x05 \x01(\x03R\x04type\x12\x14\n" +
|
||
"\x05title\x18\x06 \x01(\tR\x05title\x12 \n" +
|
||
"\vcover_image\x18\a \x01(\tR\vcover_image\x12 \n" +
|
||
"\vsales_price\x18\b \x01(\x03R\vsales_price\x12\"\n" +
|
||
"\fproduct_args\x18\t \x01(\tR\fproduct_args\x12\x16\n" +
|
||
"\x06number\x18\n" +
|
||
" \x01(\x03R\x06number\x12\x1e\n" +
|
||
"\n" +
|
||
"unit_price\x18\v \x01(\x03R\n" +
|
||
"unit_price\x12\x18\n" +
|
||
"\aspec_id\x18\f \x01(\x03R\aspec_id\x12*\n" +
|
||
"\x10product_identity\x18\r \x01(\tR\x10product_identity\x12\x1c\n" +
|
||
"\tgas_types\x18\x0e \x01(\x03R\tgas_types\x12 \n" +
|
||
"\vtotal_price\x18\x0f \x01(\x03R\vtotal_priceB\tZ\a./orderb\x06proto3"
|
||
|
||
var (
|
||
file_blocks_proto_rawDescOnce sync.Once
|
||
file_blocks_proto_rawDescData []byte
|
||
)
|
||
|
||
func file_blocks_proto_rawDescGZIP() []byte {
|
||
file_blocks_proto_rawDescOnce.Do(func() {
|
||
file_blocks_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_blocks_proto_rawDesc), len(file_blocks_proto_rawDesc)))
|
||
})
|
||
return file_blocks_proto_rawDescData
|
||
}
|
||
|
||
var file_blocks_proto_msgTypes = make([]protoimpl.MessageInfo, 7)
|
||
var file_blocks_proto_goTypes = []any{
|
||
(*Empty)(nil), // 0: order.Empty
|
||
(*FetchRequest)(nil), // 1: order.FetchRequest
|
||
(*IdentRequest)(nil), // 2: order.IdentRequest
|
||
(*StatusReply)(nil), // 3: order.StatusReply
|
||
(*OrderSummaryItem)(nil), // 4: order.OrderSummaryItem
|
||
(*OrderDetails)(nil), // 5: order.OrderDetails
|
||
nil, // 6: order.FetchRequest.ParamsEntry
|
||
}
|
||
var file_blocks_proto_depIdxs = []int32{
|
||
6, // 0: order.FetchRequest.params:type_name -> order.FetchRequest.ParamsEntry
|
||
5, // 1: order.OrderSummaryItem.details:type_name -> order.OrderDetails
|
||
2, // [2:2] is the sub-list for method output_type
|
||
2, // [2:2] is the sub-list for method input_type
|
||
2, // [2:2] is the sub-list for extension type_name
|
||
2, // [2:2] is the sub-list for extension extendee
|
||
0, // [0:2] is the sub-list for field type_name
|
||
}
|
||
|
||
func init() { file_blocks_proto_init() }
|
||
func file_blocks_proto_init() {
|
||
if File_blocks_proto != nil {
|
||
return
|
||
}
|
||
type x struct{}
|
||
out := protoimpl.TypeBuilder{
|
||
File: protoimpl.DescBuilder{
|
||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||
RawDescriptor: unsafe.Slice(unsafe.StringData(file_blocks_proto_rawDesc), len(file_blocks_proto_rawDesc)),
|
||
NumEnums: 0,
|
||
NumMessages: 7,
|
||
NumExtensions: 0,
|
||
NumServices: 0,
|
||
},
|
||
GoTypes: file_blocks_proto_goTypes,
|
||
DependencyIndexes: file_blocks_proto_depIdxs,
|
||
MessageInfos: file_blocks_proto_msgTypes,
|
||
}.Build()
|
||
File_blocks_proto = out.File
|
||
file_blocks_proto_goTypes = nil
|
||
file_blocks_proto_depIdxs = nil
|
||
}
|