Documentation ¶
Index ¶
- Variables
- func NewWarehouseEndpoints() []*api.Endpoint
- func RegisterWarehouseHandler(s server.Server, hdlr WarehouseHandler, opts ...server.HandlerOption) error
- type DeleteResp
- type EarthCoordinate
- func (*EarthCoordinate) Descriptor() ([]byte, []int)deprecated
- func (x *EarthCoordinate) GetLatitude() uint32
- func (x *EarthCoordinate) GetLongitude() uint32
- func (*EarthCoordinate) ProtoMessage()
- func (x *EarthCoordinate) ProtoReflect() protoreflect.Message
- func (x *EarthCoordinate) Reset()
- func (x *EarthCoordinate) String() string
- type GeometricProperty
- func (*GeometricProperty) Descriptor() ([]byte, []int)deprecated
- func (x *GeometricProperty) GetEcord() *EarthCoordinate
- func (x *GeometricProperty) GetFloorNum() uint32
- func (x *GeometricProperty) GetHeight() uint32
- func (x *GeometricProperty) GetLength() uint32
- func (x *GeometricProperty) GetWidth() uint32
- func (*GeometricProperty) ProtoMessage()
- func (x *GeometricProperty) ProtoReflect() protoreflect.Message
- func (x *GeometricProperty) Reset()
- func (x *GeometricProperty) String() string
- type IdReq
- type LayoutReq
- func (*LayoutReq) Descriptor() ([]byte, []int)deprecated
- func (x *LayoutReq) GetData() []byte
- func (x *LayoutReq) GetName() string
- func (x *LayoutReq) GetSize() uint32
- func (*LayoutReq) ProtoMessage()
- func (x *LayoutReq) ProtoReflect() protoreflect.Message
- func (x *LayoutReq) Reset()
- func (x *LayoutReq) String() string
- type LayoutResp
- type OpReq
- type OpResp
- type Query
- func (*Query) Descriptor() ([]byte, []int)deprecated
- func (x *Query) GetLimit() uint32
- func (x *Query) GetOffset() uint32
- func (x *Query) GetPage() uint32
- func (x *Query) GetPerPage() uint32
- func (x *Query) GetQueryString() string
- func (*Query) ProtoMessage()
- func (x *Query) ProtoReflect() protoreflect.Message
- func (x *Query) Reset()
- func (x *Query) String() string
- type StatusType
- type WarehouseHandler
- type WarehouseReq
- func (*WarehouseReq) Descriptor() ([]byte, []int)deprecated
- func (x *WarehouseReq) GetId() uint32
- func (x *WarehouseReq) GetIkey() string
- func (x *WarehouseReq) GetLocation() string
- func (x *WarehouseReq) GetName() string
- func (x *WarehouseReq) GetProperty() *GeometricProperty
- func (x *WarehouseReq) GetStatus() StatusType
- func (*WarehouseReq) ProtoMessage()
- func (x *WarehouseReq) ProtoReflect() protoreflect.Message
- func (x *WarehouseReq) Reset()
- func (x *WarehouseReq) String() string
- type WarehouseResp
- func (*WarehouseResp) Descriptor() ([]byte, []int)deprecated
- func (x *WarehouseResp) GetId() uint32
- func (x *WarehouseResp) GetIkey() string
- func (x *WarehouseResp) GetLocation() string
- func (x *WarehouseResp) GetName() string
- func (x *WarehouseResp) GetProperty() *GeometricProperty
- func (x *WarehouseResp) GetStatus() StatusType
- func (*WarehouseResp) ProtoMessage()
- func (x *WarehouseResp) ProtoReflect() protoreflect.Message
- func (x *WarehouseResp) Reset()
- func (x *WarehouseResp) String() string
- type WarehouseService
- type WarehousesResp
- func (*WarehousesResp) Descriptor() ([]byte, []int)deprecated
- func (x *WarehousesResp) GetCurrpages() uint32
- func (x *WarehousesResp) GetTotalpages() uint32
- func (x *WarehousesResp) GetWarehouses() []*WarehouseResp
- func (*WarehousesResp) ProtoMessage()
- func (x *WarehousesResp) ProtoReflect() protoreflect.Message
- func (x *WarehousesResp) Reset()
- func (x *WarehousesResp) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( StatusType_name = map[int32]string{ 0: "INITIAL", 1: "RUN", 2: "SUSPEND", 3: "STOP", } StatusType_value = map[string]int32{ "INITIAL": 0, "RUN": 1, "SUSPEND": 2, "STOP": 3, } )
Enum value maps for StatusType.
View Source
var File_proto_warehouse_warehouse_proto protoreflect.FileDescriptor
Functions ¶
func NewWarehouseEndpoints ¶
func RegisterWarehouseHandler ¶
func RegisterWarehouseHandler(s server.Server, hdlr WarehouseHandler, opts ...server.HandlerOption) error
Types ¶
type DeleteResp ¶
type DeleteResp struct {
// contains filtered or unexported fields
}
func (*DeleteResp) Descriptor
deprecated
func (*DeleteResp) Descriptor() ([]byte, []int)
Deprecated: Use DeleteResp.ProtoReflect.Descriptor instead.
func (*DeleteResp) ProtoMessage ¶
func (*DeleteResp) ProtoMessage()
func (*DeleteResp) ProtoReflect ¶
func (x *DeleteResp) ProtoReflect() protoreflect.Message
func (*DeleteResp) Reset ¶
func (x *DeleteResp) Reset()
func (*DeleteResp) String ¶
func (x *DeleteResp) String() string
type EarthCoordinate ¶
type EarthCoordinate struct { Longitude uint32 `protobuf:"varint,1,opt,name=longitude,proto3" json:"longitude,omitempty"` Latitude uint32 `protobuf:"varint,2,opt,name=latitude,proto3" json:"latitude,omitempty"` // contains filtered or unexported fields }
func (*EarthCoordinate) Descriptor
deprecated
func (*EarthCoordinate) Descriptor() ([]byte, []int)
Deprecated: Use EarthCoordinate.ProtoReflect.Descriptor instead.
func (*EarthCoordinate) GetLatitude ¶
func (x *EarthCoordinate) GetLatitude() uint32
func (*EarthCoordinate) GetLongitude ¶
func (x *EarthCoordinate) GetLongitude() uint32
func (*EarthCoordinate) ProtoMessage ¶
func (*EarthCoordinate) ProtoMessage()
func (*EarthCoordinate) ProtoReflect ¶
func (x *EarthCoordinate) ProtoReflect() protoreflect.Message
func (*EarthCoordinate) Reset ¶
func (x *EarthCoordinate) Reset()
func (*EarthCoordinate) String ¶
func (x *EarthCoordinate) String() string
type GeometricProperty ¶
type GeometricProperty struct { Ecord *EarthCoordinate `protobuf:"bytes,1,opt,name=ecord,proto3" json:"ecord,omitempty"` FloorNum uint32 `protobuf:"varint,2,opt,name=floorNum,proto3" json:"floorNum,omitempty"` Length uint32 `protobuf:"varint,3,opt,name=length,proto3" json:"length,omitempty"` Width uint32 `protobuf:"varint,4,opt,name=width,proto3" json:"width,omitempty"` Height uint32 `protobuf:"varint,5,opt,name=height,proto3" json:"height,omitempty"` // contains filtered or unexported fields }
func (*GeometricProperty) Descriptor
deprecated
func (*GeometricProperty) Descriptor() ([]byte, []int)
Deprecated: Use GeometricProperty.ProtoReflect.Descriptor instead.
func (*GeometricProperty) GetEcord ¶
func (x *GeometricProperty) GetEcord() *EarthCoordinate
func (*GeometricProperty) GetFloorNum ¶
func (x *GeometricProperty) GetFloorNum() uint32
func (*GeometricProperty) GetHeight ¶
func (x *GeometricProperty) GetHeight() uint32
func (*GeometricProperty) GetLength ¶
func (x *GeometricProperty) GetLength() uint32
func (*GeometricProperty) GetWidth ¶
func (x *GeometricProperty) GetWidth() uint32
func (*GeometricProperty) ProtoMessage ¶
func (*GeometricProperty) ProtoMessage()
func (*GeometricProperty) ProtoReflect ¶
func (x *GeometricProperty) ProtoReflect() protoreflect.Message
func (*GeometricProperty) Reset ¶
func (x *GeometricProperty) Reset()
func (*GeometricProperty) String ¶
func (x *GeometricProperty) String() string
type IdReq ¶
type IdReq struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*IdReq) Descriptor
deprecated
func (*IdReq) ProtoMessage ¶
func (*IdReq) ProtoMessage()
func (*IdReq) ProtoReflect ¶
func (x *IdReq) ProtoReflect() protoreflect.Message
type LayoutReq ¶
type LayoutReq struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Size uint32 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"` Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*LayoutReq) Descriptor
deprecated
func (*LayoutReq) ProtoMessage ¶
func (*LayoutReq) ProtoMessage()
func (*LayoutReq) ProtoReflect ¶
func (x *LayoutReq) ProtoReflect() protoreflect.Message
type LayoutResp ¶
type LayoutResp struct {
// contains filtered or unexported fields
}
func (*LayoutResp) Descriptor
deprecated
func (*LayoutResp) Descriptor() ([]byte, []int)
Deprecated: Use LayoutResp.ProtoReflect.Descriptor instead.
func (*LayoutResp) ProtoMessage ¶
func (*LayoutResp) ProtoMessage()
func (*LayoutResp) ProtoReflect ¶
func (x *LayoutResp) ProtoReflect() protoreflect.Message
func (*LayoutResp) Reset ¶
func (x *LayoutResp) Reset()
func (*LayoutResp) String ¶
func (x *LayoutResp) String() string
type OpReq ¶
type OpReq struct { Op StatusType `protobuf:"varint,1,opt,name=op,proto3,enum=go.micro.srv.warehouse.StatusType" json:"op,omitempty"` // contains filtered or unexported fields }
func (*OpReq) Descriptor
deprecated
func (*OpReq) GetOp ¶
func (x *OpReq) GetOp() StatusType
func (*OpReq) ProtoMessage ¶
func (*OpReq) ProtoMessage()
func (*OpReq) ProtoReflect ¶
func (x *OpReq) ProtoReflect() protoreflect.Message
type OpResp ¶
type OpResp struct {
// contains filtered or unexported fields
}
func (*OpResp) Descriptor
deprecated
func (*OpResp) ProtoMessage ¶
func (*OpResp) ProtoMessage()
func (*OpResp) ProtoReflect ¶
func (x *OpResp) ProtoReflect() protoreflect.Message
type Query ¶
type Query struct { Limit uint32 `protobuf:"varint,1,opt,name=limit,proto3" json:"limit,omitempty"` Offset uint32 `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"` Page uint32 `protobuf:"varint,3,opt,name=page,proto3" json:"page,omitempty"` PerPage uint32 `protobuf:"varint,4,opt,name=per_page,json=perPage,proto3" json:"per_page,omitempty"` QueryString string `protobuf:"bytes,5,opt,name=queryString,proto3" json:"queryString,omitempty"` // contains filtered or unexported fields }
func (*Query) Descriptor
deprecated
func (*Query) GetPerPage ¶
func (*Query) GetQueryString ¶
func (*Query) ProtoMessage ¶
func (*Query) ProtoMessage()
func (*Query) ProtoReflect ¶
func (x *Query) ProtoReflect() protoreflect.Message
type StatusType ¶
type StatusType int32
const ( StatusType_INITIAL StatusType = 0 StatusType_RUN StatusType = 1 StatusType_SUSPEND StatusType = 2 StatusType_STOP StatusType = 3 )
func (StatusType) Descriptor ¶
func (StatusType) Descriptor() protoreflect.EnumDescriptor
func (StatusType) Enum ¶
func (x StatusType) Enum() *StatusType
func (StatusType) EnumDescriptor
deprecated
func (StatusType) EnumDescriptor() ([]byte, []int)
Deprecated: Use StatusType.Descriptor instead.
func (StatusType) Number ¶
func (x StatusType) Number() protoreflect.EnumNumber
func (StatusType) String ¶
func (x StatusType) String() string
func (StatusType) Type ¶
func (StatusType) Type() protoreflect.EnumType
type WarehouseHandler ¶
type WarehouseHandler interface { Create(context.Context, *WarehouseReq, *WarehouseResp) error // 修改仓库信息 Update(context.Context, *WarehouseReq, *WarehouseResp) error DeleteByID(context.Context, *IdReq, *DeleteResp) error GetByID(context.Context, *IdReq, *WarehouseResp) error //根据分页,条件查询等返回列表 GetQuery(context.Context, *Query, *WarehousesResp) error SetOperation(context.Context, *WarehouseReq, *WarehouseResp) error }
type WarehouseReq ¶
type WarehouseReq struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Location string `protobuf:"bytes,3,opt,name=location,proto3" json:"location,omitempty"` Status StatusType `protobuf:"varint,4,opt,name=status,proto3,enum=go.micro.srv.warehouse.StatusType" json:"status,omitempty"` Ikey string `protobuf:"bytes,5,opt,name=ikey,proto3" json:"ikey,omitempty"` Property *GeometricProperty `protobuf:"bytes,6,opt,name=property,proto3" json:"property,omitempty"` // contains filtered or unexported fields }
func (*WarehouseReq) Descriptor
deprecated
func (*WarehouseReq) Descriptor() ([]byte, []int)
Deprecated: Use WarehouseReq.ProtoReflect.Descriptor instead.
func (*WarehouseReq) GetId ¶
func (x *WarehouseReq) GetId() uint32
func (*WarehouseReq) GetIkey ¶
func (x *WarehouseReq) GetIkey() string
func (*WarehouseReq) GetLocation ¶
func (x *WarehouseReq) GetLocation() string
func (*WarehouseReq) GetName ¶
func (x *WarehouseReq) GetName() string
func (*WarehouseReq) GetProperty ¶
func (x *WarehouseReq) GetProperty() *GeometricProperty
func (*WarehouseReq) GetStatus ¶
func (x *WarehouseReq) GetStatus() StatusType
func (*WarehouseReq) ProtoMessage ¶
func (*WarehouseReq) ProtoMessage()
func (*WarehouseReq) ProtoReflect ¶
func (x *WarehouseReq) ProtoReflect() protoreflect.Message
func (*WarehouseReq) Reset ¶
func (x *WarehouseReq) Reset()
func (*WarehouseReq) String ¶
func (x *WarehouseReq) String() string
type WarehouseResp ¶
type WarehouseResp struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Location string `protobuf:"bytes,3,opt,name=location,proto3" json:"location,omitempty"` Status StatusType `protobuf:"varint,4,opt,name=status,proto3,enum=go.micro.srv.warehouse.StatusType" json:"status,omitempty"` Ikey string `protobuf:"bytes,5,opt,name=ikey,proto3" json:"ikey,omitempty"` Property *GeometricProperty `protobuf:"bytes,6,opt,name=property,proto3" json:"property,omitempty"` // contains filtered or unexported fields }
func (*WarehouseResp) Descriptor
deprecated
func (*WarehouseResp) Descriptor() ([]byte, []int)
Deprecated: Use WarehouseResp.ProtoReflect.Descriptor instead.
func (*WarehouseResp) GetId ¶
func (x *WarehouseResp) GetId() uint32
func (*WarehouseResp) GetIkey ¶
func (x *WarehouseResp) GetIkey() string
func (*WarehouseResp) GetLocation ¶
func (x *WarehouseResp) GetLocation() string
func (*WarehouseResp) GetName ¶
func (x *WarehouseResp) GetName() string
func (*WarehouseResp) GetProperty ¶
func (x *WarehouseResp) GetProperty() *GeometricProperty
func (*WarehouseResp) GetStatus ¶
func (x *WarehouseResp) GetStatus() StatusType
func (*WarehouseResp) ProtoMessage ¶
func (*WarehouseResp) ProtoMessage()
func (*WarehouseResp) ProtoReflect ¶
func (x *WarehouseResp) ProtoReflect() protoreflect.Message
func (*WarehouseResp) Reset ¶
func (x *WarehouseResp) Reset()
func (*WarehouseResp) String ¶
func (x *WarehouseResp) String() string
type WarehouseService ¶
type WarehouseService interface { Create(ctx context.Context, in *WarehouseReq, opts ...client.CallOption) (*WarehouseResp, error) // 修改仓库信息 Update(ctx context.Context, in *WarehouseReq, opts ...client.CallOption) (*WarehouseResp, error) DeleteByID(ctx context.Context, in *IdReq, opts ...client.CallOption) (*DeleteResp, error) GetByID(ctx context.Context, in *IdReq, opts ...client.CallOption) (*WarehouseResp, error) //根据分页,条件查询等返回列表 GetQuery(ctx context.Context, in *Query, opts ...client.CallOption) (*WarehousesResp, error) SetOperation(ctx context.Context, in *WarehouseReq, opts ...client.CallOption) (*WarehouseResp, error) }
func NewWarehouseService ¶
func NewWarehouseService(name string, c client.Client) WarehouseService
type WarehousesResp ¶
type WarehousesResp struct { Warehouses []*WarehouseResp `protobuf:"bytes,1,rep,name=warehouses,proto3" json:"warehouses,omitempty"` Totalpages uint32 `protobuf:"varint,2,opt,name=totalpages,proto3" json:"totalpages,omitempty"` Currpages uint32 `protobuf:"varint,3,opt,name=currpages,proto3" json:"currpages,omitempty"` // contains filtered or unexported fields }
func (*WarehousesResp) Descriptor
deprecated
func (*WarehousesResp) Descriptor() ([]byte, []int)
Deprecated: Use WarehousesResp.ProtoReflect.Descriptor instead.
func (*WarehousesResp) GetCurrpages ¶
func (x *WarehousesResp) GetCurrpages() uint32
func (*WarehousesResp) GetTotalpages ¶
func (x *WarehousesResp) GetTotalpages() uint32
func (*WarehousesResp) GetWarehouses ¶
func (x *WarehousesResp) GetWarehouses() []*WarehouseResp
func (*WarehousesResp) ProtoMessage ¶
func (*WarehousesResp) ProtoMessage()
func (*WarehousesResp) ProtoReflect ¶
func (x *WarehousesResp) ProtoReflect() protoreflect.Message
func (*WarehousesResp) Reset ¶
func (x *WarehousesResp) Reset()
func (*WarehousesResp) String ¶
func (x *WarehousesResp) String() string
Click to show internal directories.
Click to hide internal directories.