Documentation ¶
Index ¶
- Variables
- func RegisterLayoutServer(s grpc.ServiceRegistrar, srv LayoutServer)
- type CreateReq
- func (*CreateReq) Descriptor() ([]byte, []int)deprecated
- func (x *CreateReq) GetLayoutName() string
- func (x *CreateReq) GetLocationId() int32
- func (x *CreateReq) GetMap() string
- func (x *CreateReq) GetPolicyCId() int32
- func (x *CreateReq) GetPolicyInfo() string
- func (x *CreateReq) GetSort() int32
- func (x *CreateReq) GetStatus() int32
- func (*CreateReq) ProtoMessage()
- func (x *CreateReq) ProtoReflect() protoreflect.Message
- func (x *CreateReq) Reset()
- func (x *CreateReq) String() string
- type CreateRes
- type DeleteReq
- type DeleteRes
- type GetListReq
- func (*GetListReq) Descriptor() ([]byte, []int)deprecated
- func (x *GetListReq) GetLayoutName() string
- func (x *GetListReq) GetPage() int32
- func (x *GetListReq) GetPageSize() int32
- func (x *GetListReq) GetSeatsMax() int32
- func (x *GetListReq) GetSeatsMin() int32
- func (x *GetListReq) GetStatus() int32
- func (*GetListReq) ProtoMessage()
- func (x *GetListReq) ProtoReflect() protoreflect.Message
- func (x *GetListReq) Reset()
- func (x *GetListReq) String() string
- type GetListRes
- func (*GetListRes) Descriptor() ([]byte, []int)deprecated
- func (x *GetListRes) GetLayouts() []*LayoutList
- func (x *GetListRes) GetTotal() int32
- func (*GetListRes) ProtoMessage()
- func (x *GetListRes) ProtoReflect() protoreflect.Message
- func (x *GetListRes) Reset()
- func (x *GetListRes) String() string
- type GetOneReq
- type GetOneRes
- func (*GetOneRes) Descriptor() ([]byte, []int)deprecated
- func (x *GetOneRes) GetLayout() *pbentity.Layout
- func (x *GetOneRes) GetLocationName() string
- func (x *GetOneRes) GetPolicyInfo() string
- func (*GetOneRes) ProtoMessage()
- func (x *GetOneRes) ProtoReflect() protoreflect.Message
- func (x *GetOneRes) Reset()
- func (x *GetOneRes) String() string
- type GetRuntimeLayoutMapReq
- func (*GetRuntimeLayoutMapReq) Descriptor() ([]byte, []int)deprecated
- func (x *GetRuntimeLayoutMapReq) GetLayoutId() int32
- func (*GetRuntimeLayoutMapReq) ProtoMessage()
- func (x *GetRuntimeLayoutMapReq) ProtoReflect() protoreflect.Message
- func (x *GetRuntimeLayoutMapReq) Reset()
- func (x *GetRuntimeLayoutMapReq) String() string
- type GetRuntimeLayoutMapRes
- func (*GetRuntimeLayoutMapRes) Descriptor() ([]byte, []int)deprecated
- func (x *GetRuntimeLayoutMapRes) GetMap() string
- func (*GetRuntimeLayoutMapRes) ProtoMessage()
- func (x *GetRuntimeLayoutMapRes) ProtoReflect() protoreflect.Message
- func (x *GetRuntimeLayoutMapRes) Reset()
- func (x *GetRuntimeLayoutMapRes) String() string
- type GetRuntimeLayoutReq
- func (*GetRuntimeLayoutReq) Descriptor() ([]byte, []int)deprecated
- func (x *GetRuntimeLayoutReq) GetLocationIds() []uint64
- func (*GetRuntimeLayoutReq) ProtoMessage()
- func (x *GetRuntimeLayoutReq) ProtoReflect() protoreflect.Message
- func (x *GetRuntimeLayoutReq) Reset()
- func (x *GetRuntimeLayoutReq) String() string
- type GetRuntimeLayoutRes
- func (*GetRuntimeLayoutRes) Descriptor() ([]byte, []int)deprecated
- func (x *GetRuntimeLayoutRes) GetLayouts() []*pbentity.Layout
- func (*GetRuntimeLayoutRes) ProtoMessage()
- func (x *GetRuntimeLayoutRes) ProtoReflect() protoreflect.Message
- func (x *GetRuntimeLayoutRes) Reset()
- func (x *GetRuntimeLayoutRes) String() string
- type InitLayoutReq
- type InitLayoutRes
- type LayoutClient
- type LayoutList
- func (*LayoutList) Descriptor() ([]byte, []int)deprecated
- func (x *LayoutList) GetId() int32
- func (x *LayoutList) GetLayoutName() string
- func (x *LayoutList) GetLocationId() int32
- func (x *LayoutList) GetSeats() int32
- func (x *LayoutList) GetSort() int32
- func (x *LayoutList) GetStatus() int32
- func (*LayoutList) ProtoMessage()
- func (x *LayoutList) ProtoReflect() protoreflect.Message
- func (x *LayoutList) Reset()
- func (x *LayoutList) String() string
- type LayoutServer
- type UnimplementedLayoutServer
- func (UnimplementedLayoutServer) Create(context.Context, *CreateReq) (*CreateRes, error)
- func (UnimplementedLayoutServer) Delete(context.Context, *DeleteReq) (*DeleteRes, error)
- func (UnimplementedLayoutServer) GetList(context.Context, *GetListReq) (*GetListRes, error)
- func (UnimplementedLayoutServer) GetOne(context.Context, *GetOneReq) (*GetOneRes, error)
- func (UnimplementedLayoutServer) GetRuntimeLayoutMap(context.Context, *GetRuntimeLayoutMapReq) (*GetRuntimeLayoutMapRes, error)
- func (UnimplementedLayoutServer) GetRuntimeLayouts(context.Context, *GetRuntimeLayoutReq) (*GetRuntimeLayoutRes, error)
- func (UnimplementedLayoutServer) InitLayout(context.Context, *InitLayoutReq) (*InitLayoutRes, error)
- func (UnimplementedLayoutServer) Update(context.Context, *UpdateReq) (*UpdateRes, error)
- type UnsafeLayoutServer
- type UpdateReq
- func (*UpdateReq) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateReq) GetId() int32
- func (x *UpdateReq) GetLayoutName() string
- func (x *UpdateReq) GetLocationId() int32
- func (x *UpdateReq) GetMap() string
- func (x *UpdateReq) GetPolicyCId() int32
- func (x *UpdateReq) GetPolicyInfo() string
- func (x *UpdateReq) GetSort() int32
- func (x *UpdateReq) GetStatus() int32
- func (*UpdateReq) ProtoMessage()
- func (x *UpdateReq) ProtoReflect() protoreflect.Message
- func (x *UpdateReq) Reset()
- func (x *UpdateReq) String() string
- type UpdateRes
Constants ¶
This section is empty.
Variables ¶
var File_layout_v1_layout_proto protoreflect.FileDescriptor
var Layout_ServiceDesc = grpc.ServiceDesc{ ServiceName: "layout.v1.Layout", HandlerType: (*LayoutServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Create", Handler: _Layout_Create_Handler, }, { MethodName: "GetOne", Handler: _Layout_GetOne_Handler, }, { MethodName: "GetList", Handler: _Layout_GetList_Handler, }, { MethodName: "Update", Handler: _Layout_Update_Handler, }, { MethodName: "Delete", Handler: _Layout_Delete_Handler, }, { MethodName: "GetRuntimeLayouts", Handler: _Layout_GetRuntimeLayouts_Handler, }, { MethodName: "GetRuntimeLayoutMap", Handler: _Layout_GetRuntimeLayoutMap_Handler, }, { MethodName: "InitLayout", Handler: _Layout_InitLayout_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "layout/v1/layout.proto", }
Layout_ServiceDesc is the grpc.ServiceDesc for Layout service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterLayoutServer ¶
func RegisterLayoutServer(s grpc.ServiceRegistrar, srv LayoutServer)
Types ¶
type CreateReq ¶
type CreateReq struct { LocationId int32 `protobuf:"varint,1,opt,name=LocationId,proto3" json:"LocationId,omitempty" v:"required"` // v:required PolicyCId int32 `protobuf:"varint,2,opt,name=PolicyCId,proto3" json:"PolicyCId,omitempty" v:"required"` // v:required // 如果已经使用了 PolicyCId,可以不传PolicyInfo PolicyInfo string `` // v:json /* 144-byte string literal not displayed */ LayoutName string `protobuf:"bytes,4,opt,name=LayoutName,proto3" json:"LayoutName,omitempty" v:"required"` // v:required Map string `protobuf:"bytes,5,opt,name=Map,proto3" json:"Map,omitempty" v:"json"` // v:json Status int32 `protobuf:"varint,6,opt,name=Status,proto3" json:"Status,omitempty" v:"required"` // v:required Sort int32 `protobuf:"varint,7,opt,name=Sort,proto3" json:"Sort,omitempty" v:"required"` // v:required // contains filtered or unexported fields }
func (*CreateReq) Descriptor
deprecated
func (*CreateReq) GetLayoutName ¶
func (*CreateReq) GetLocationId ¶
func (*CreateReq) GetPolicyCId ¶
func (*CreateReq) GetPolicyInfo ¶
func (*CreateReq) ProtoMessage ¶
func (*CreateReq) ProtoMessage()
func (*CreateReq) ProtoReflect ¶
func (x *CreateReq) ProtoReflect() protoreflect.Message
type CreateRes ¶
type CreateRes struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" v:"required"` // v:required // contains filtered or unexported fields }
func (*CreateRes) Descriptor
deprecated
func (*CreateRes) ProtoMessage ¶
func (*CreateRes) ProtoMessage()
func (*CreateRes) ProtoReflect ¶
func (x *CreateRes) ProtoReflect() protoreflect.Message
type DeleteReq ¶
type DeleteReq struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" v:"required"` // v:required // contains filtered or unexported fields }
func (*DeleteReq) Descriptor
deprecated
func (*DeleteReq) ProtoMessage ¶
func (*DeleteReq) ProtoMessage()
func (*DeleteReq) ProtoReflect ¶
func (x *DeleteReq) ProtoReflect() protoreflect.Message
type DeleteRes ¶
type DeleteRes struct { Empty *emptypb.Empty `protobuf:"bytes,1,opt,name=empty,proto3" json:"empty,omitempty"` // contains filtered or unexported fields }
func (*DeleteRes) Descriptor
deprecated
func (*DeleteRes) ProtoMessage ¶
func (*DeleteRes) ProtoMessage()
func (*DeleteRes) ProtoReflect ¶
func (x *DeleteRes) ProtoReflect() protoreflect.Message
type GetListReq ¶
type GetListReq struct { Page int32 `protobuf:"varint,1,opt,name=Page,proto3" json:"Page,omitempty" v:"required"` // v:required PageSize int32 `protobuf:"varint,2,opt,name=PageSize,proto3" json:"PageSize,omitempty" v:"required|max:100"` // v:required|max:100 LayoutName string `protobuf:"bytes,3,opt,name=LayoutName,proto3" json:"LayoutName,omitempty" v:"length:1,20"` // v:length:1,20 Status int32 `protobuf:"varint,4,opt,name=Status,proto3" json:"Status,omitempty"` SeatsMin int32 `protobuf:"varint,5,opt,name=SeatsMin,proto3" json:"SeatsMin,omitempty" v:"length:0,99999999"` // v:length:0,99999999 SeatsMax int32 `protobuf:"varint,6,opt,name=SeatsMax,proto3" json:"SeatsMax,omitempty" v:"length:1,99999999"` // v:length:1,99999999 // contains filtered or unexported fields }
func (*GetListReq) Descriptor
deprecated
func (*GetListReq) Descriptor() ([]byte, []int)
Deprecated: Use GetListReq.ProtoReflect.Descriptor instead.
func (*GetListReq) GetLayoutName ¶
func (x *GetListReq) GetLayoutName() string
func (*GetListReq) GetPage ¶
func (x *GetListReq) GetPage() int32
func (*GetListReq) GetPageSize ¶
func (x *GetListReq) GetPageSize() int32
func (*GetListReq) GetSeatsMax ¶
func (x *GetListReq) GetSeatsMax() int32
func (*GetListReq) GetSeatsMin ¶
func (x *GetListReq) GetSeatsMin() int32
func (*GetListReq) GetStatus ¶
func (x *GetListReq) GetStatus() int32
func (*GetListReq) ProtoMessage ¶
func (*GetListReq) ProtoMessage()
func (*GetListReq) ProtoReflect ¶
func (x *GetListReq) ProtoReflect() protoreflect.Message
func (*GetListReq) Reset ¶
func (x *GetListReq) Reset()
func (*GetListReq) String ¶
func (x *GetListReq) String() string
type GetListRes ¶
type GetListRes struct { Layouts []*LayoutList `protobuf:"bytes,1,rep,name=layouts,proto3" json:"layouts,omitempty"` Total int32 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"` // contains filtered or unexported fields }
func (*GetListRes) Descriptor
deprecated
func (*GetListRes) Descriptor() ([]byte, []int)
Deprecated: Use GetListRes.ProtoReflect.Descriptor instead.
func (*GetListRes) GetLayouts ¶
func (x *GetListRes) GetLayouts() []*LayoutList
func (*GetListRes) GetTotal ¶
func (x *GetListRes) GetTotal() int32
func (*GetListRes) ProtoMessage ¶
func (*GetListRes) ProtoMessage()
func (*GetListRes) ProtoReflect ¶
func (x *GetListRes) ProtoReflect() protoreflect.Message
func (*GetListRes) Reset ¶
func (x *GetListRes) Reset()
func (*GetListRes) String ¶
func (x *GetListRes) String() string
type GetOneReq ¶
type GetOneReq struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" v:"required"` // v:required // contains filtered or unexported fields }
func (*GetOneReq) Descriptor
deprecated
func (*GetOneReq) ProtoMessage ¶
func (*GetOneReq) ProtoMessage()
func (*GetOneReq) ProtoReflect ¶
func (x *GetOneReq) ProtoReflect() protoreflect.Message
type GetOneRes ¶
type GetOneRes struct { Layout *pbentity.Layout `protobuf:"bytes,1,opt,name=layout,proto3" json:"layout,omitempty"` PolicyInfo string `protobuf:"bytes,2,opt,name=PolicyInfo,proto3" json:"PolicyInfo,omitempty"` LocationName string `protobuf:"bytes,3,opt,name=LocationName,proto3" json:"LocationName,omitempty"` // contains filtered or unexported fields }
func (*GetOneRes) Descriptor
deprecated
func (*GetOneRes) GetLocationName ¶
func (*GetOneRes) GetPolicyInfo ¶
func (*GetOneRes) ProtoMessage ¶
func (*GetOneRes) ProtoMessage()
func (*GetOneRes) ProtoReflect ¶
func (x *GetOneRes) ProtoReflect() protoreflect.Message
type GetRuntimeLayoutMapReq ¶
type GetRuntimeLayoutMapReq struct { LayoutId int32 `protobuf:"varint,1,opt,name=layoutId,proto3" json:"layoutId,omitempty" v:"required"` // v:required // contains filtered or unexported fields }
func (*GetRuntimeLayoutMapReq) Descriptor
deprecated
func (*GetRuntimeLayoutMapReq) Descriptor() ([]byte, []int)
Deprecated: Use GetRuntimeLayoutMapReq.ProtoReflect.Descriptor instead.
func (*GetRuntimeLayoutMapReq) GetLayoutId ¶
func (x *GetRuntimeLayoutMapReq) GetLayoutId() int32
func (*GetRuntimeLayoutMapReq) ProtoMessage ¶
func (*GetRuntimeLayoutMapReq) ProtoMessage()
func (*GetRuntimeLayoutMapReq) ProtoReflect ¶
func (x *GetRuntimeLayoutMapReq) ProtoReflect() protoreflect.Message
func (*GetRuntimeLayoutMapReq) Reset ¶
func (x *GetRuntimeLayoutMapReq) Reset()
func (*GetRuntimeLayoutMapReq) String ¶
func (x *GetRuntimeLayoutMapReq) String() string
type GetRuntimeLayoutMapRes ¶
type GetRuntimeLayoutMapRes struct { Map string `protobuf:"bytes,1,opt,name=Map,proto3" json:"Map,omitempty"` // contains filtered or unexported fields }
func (*GetRuntimeLayoutMapRes) Descriptor
deprecated
func (*GetRuntimeLayoutMapRes) Descriptor() ([]byte, []int)
Deprecated: Use GetRuntimeLayoutMapRes.ProtoReflect.Descriptor instead.
func (*GetRuntimeLayoutMapRes) GetMap ¶
func (x *GetRuntimeLayoutMapRes) GetMap() string
func (*GetRuntimeLayoutMapRes) ProtoMessage ¶
func (*GetRuntimeLayoutMapRes) ProtoMessage()
func (*GetRuntimeLayoutMapRes) ProtoReflect ¶
func (x *GetRuntimeLayoutMapRes) ProtoReflect() protoreflect.Message
func (*GetRuntimeLayoutMapRes) Reset ¶
func (x *GetRuntimeLayoutMapRes) Reset()
func (*GetRuntimeLayoutMapRes) String ¶
func (x *GetRuntimeLayoutMapRes) String() string
type GetRuntimeLayoutReq ¶
type GetRuntimeLayoutReq struct { LocationIds []uint64 `protobuf:"varint,1,rep,packed,name=locationIds,proto3" json:"locationIds,omitempty" v:"required"` // v:required // contains filtered or unexported fields }
func (*GetRuntimeLayoutReq) Descriptor
deprecated
func (*GetRuntimeLayoutReq) Descriptor() ([]byte, []int)
Deprecated: Use GetRuntimeLayoutReq.ProtoReflect.Descriptor instead.
func (*GetRuntimeLayoutReq) GetLocationIds ¶
func (x *GetRuntimeLayoutReq) GetLocationIds() []uint64
func (*GetRuntimeLayoutReq) ProtoMessage ¶
func (*GetRuntimeLayoutReq) ProtoMessage()
func (*GetRuntimeLayoutReq) ProtoReflect ¶
func (x *GetRuntimeLayoutReq) ProtoReflect() protoreflect.Message
func (*GetRuntimeLayoutReq) Reset ¶
func (x *GetRuntimeLayoutReq) Reset()
func (*GetRuntimeLayoutReq) String ¶
func (x *GetRuntimeLayoutReq) String() string
type GetRuntimeLayoutRes ¶
type GetRuntimeLayoutRes struct { Layouts []*pbentity.Layout `protobuf:"bytes,1,rep,name=layouts,proto3" json:"layouts,omitempty"` // contains filtered or unexported fields }
func (*GetRuntimeLayoutRes) Descriptor
deprecated
func (*GetRuntimeLayoutRes) Descriptor() ([]byte, []int)
Deprecated: Use GetRuntimeLayoutRes.ProtoReflect.Descriptor instead.
func (*GetRuntimeLayoutRes) GetLayouts ¶
func (x *GetRuntimeLayoutRes) GetLayouts() []*pbentity.Layout
func (*GetRuntimeLayoutRes) ProtoMessage ¶
func (*GetRuntimeLayoutRes) ProtoMessage()
func (*GetRuntimeLayoutRes) ProtoReflect ¶
func (x *GetRuntimeLayoutRes) ProtoReflect() protoreflect.Message
func (*GetRuntimeLayoutRes) Reset ¶
func (x *GetRuntimeLayoutRes) Reset()
func (*GetRuntimeLayoutRes) String ¶
func (x *GetRuntimeLayoutRes) String() string
type InitLayoutReq ¶
type InitLayoutReq struct { LayoutId int64 `protobuf:"varint,1,opt,name=layoutId,proto3" json:"layoutId,omitempty" v:"required"` // v:required // contains filtered or unexported fields }
func (*InitLayoutReq) Descriptor
deprecated
func (*InitLayoutReq) Descriptor() ([]byte, []int)
Deprecated: Use InitLayoutReq.ProtoReflect.Descriptor instead.
func (*InitLayoutReq) GetLayoutId ¶
func (x *InitLayoutReq) GetLayoutId() int64
func (*InitLayoutReq) ProtoMessage ¶
func (*InitLayoutReq) ProtoMessage()
func (*InitLayoutReq) ProtoReflect ¶
func (x *InitLayoutReq) ProtoReflect() protoreflect.Message
func (*InitLayoutReq) Reset ¶
func (x *InitLayoutReq) Reset()
func (*InitLayoutReq) String ¶
func (x *InitLayoutReq) String() string
type InitLayoutRes ¶
type InitLayoutRes struct {
// contains filtered or unexported fields
}
func (*InitLayoutRes) Descriptor
deprecated
func (*InitLayoutRes) Descriptor() ([]byte, []int)
Deprecated: Use InitLayoutRes.ProtoReflect.Descriptor instead.
func (*InitLayoutRes) ProtoMessage ¶
func (*InitLayoutRes) ProtoMessage()
func (*InitLayoutRes) ProtoReflect ¶
func (x *InitLayoutRes) ProtoReflect() protoreflect.Message
func (*InitLayoutRes) Reset ¶
func (x *InitLayoutRes) Reset()
func (*InitLayoutRes) String ¶
func (x *InitLayoutRes) String() string
type LayoutClient ¶
type LayoutClient interface { Create(ctx context.Context, in *CreateReq, opts ...grpc.CallOption) (*CreateRes, error) GetOne(ctx context.Context, in *GetOneReq, opts ...grpc.CallOption) (*GetOneRes, error) GetList(ctx context.Context, in *GetListReq, opts ...grpc.CallOption) (*GetListRes, error) Update(ctx context.Context, in *UpdateReq, opts ...grpc.CallOption) (*UpdateRes, error) Delete(ctx context.Context, in *DeleteReq, opts ...grpc.CallOption) (*DeleteRes, error) GetRuntimeLayouts(ctx context.Context, in *GetRuntimeLayoutReq, opts ...grpc.CallOption) (*GetRuntimeLayoutRes, error) GetRuntimeLayoutMap(ctx context.Context, in *GetRuntimeLayoutMapReq, opts ...grpc.CallOption) (*GetRuntimeLayoutMapRes, error) InitLayout(ctx context.Context, in *InitLayoutReq, opts ...grpc.CallOption) (*InitLayoutRes, error) }
LayoutClient is the client API for Layout service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewLayoutClient ¶
func NewLayoutClient(cc grpc.ClientConnInterface) LayoutClient
type LayoutList ¶
type LayoutList struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` LocationId int32 `protobuf:"varint,2,opt,name=LocationId,proto3" json:"LocationId,omitempty"` LayoutName string `protobuf:"bytes,3,opt,name=LayoutName,proto3" json:"LayoutName,omitempty"` Status int32 `protobuf:"varint,4,opt,name=Status,proto3" json:"Status,omitempty"` Sort int32 `protobuf:"varint,5,opt,name=Sort,proto3" json:"Sort,omitempty"` Seats int32 `protobuf:"varint,6,opt,name=Seats,proto3" json:"Seats,omitempty"` // contains filtered or unexported fields }
func (*LayoutList) Descriptor
deprecated
func (*LayoutList) Descriptor() ([]byte, []int)
Deprecated: Use LayoutList.ProtoReflect.Descriptor instead.
func (*LayoutList) GetId ¶
func (x *LayoutList) GetId() int32
func (*LayoutList) GetLayoutName ¶
func (x *LayoutList) GetLayoutName() string
func (*LayoutList) GetLocationId ¶
func (x *LayoutList) GetLocationId() int32
func (*LayoutList) GetSeats ¶
func (x *LayoutList) GetSeats() int32
func (*LayoutList) GetSort ¶
func (x *LayoutList) GetSort() int32
func (*LayoutList) GetStatus ¶
func (x *LayoutList) GetStatus() int32
func (*LayoutList) ProtoMessage ¶
func (*LayoutList) ProtoMessage()
func (*LayoutList) ProtoReflect ¶
func (x *LayoutList) ProtoReflect() protoreflect.Message
func (*LayoutList) Reset ¶
func (x *LayoutList) Reset()
func (*LayoutList) String ¶
func (x *LayoutList) String() string
type LayoutServer ¶
type LayoutServer interface { Create(context.Context, *CreateReq) (*CreateRes, error) GetOne(context.Context, *GetOneReq) (*GetOneRes, error) GetList(context.Context, *GetListReq) (*GetListRes, error) Update(context.Context, *UpdateReq) (*UpdateRes, error) Delete(context.Context, *DeleteReq) (*DeleteRes, error) GetRuntimeLayouts(context.Context, *GetRuntimeLayoutReq) (*GetRuntimeLayoutRes, error) GetRuntimeLayoutMap(context.Context, *GetRuntimeLayoutMapReq) (*GetRuntimeLayoutMapRes, error) InitLayout(context.Context, *InitLayoutReq) (*InitLayoutRes, error) // contains filtered or unexported methods }
LayoutServer is the server API for Layout service. All implementations must embed UnimplementedLayoutServer for forward compatibility
type UnimplementedLayoutServer ¶
type UnimplementedLayoutServer struct { }
UnimplementedLayoutServer must be embedded to have forward compatible implementations.
func (UnimplementedLayoutServer) GetList ¶
func (UnimplementedLayoutServer) GetList(context.Context, *GetListReq) (*GetListRes, error)
func (UnimplementedLayoutServer) GetRuntimeLayoutMap ¶
func (UnimplementedLayoutServer) GetRuntimeLayoutMap(context.Context, *GetRuntimeLayoutMapReq) (*GetRuntimeLayoutMapRes, error)
func (UnimplementedLayoutServer) GetRuntimeLayouts ¶
func (UnimplementedLayoutServer) GetRuntimeLayouts(context.Context, *GetRuntimeLayoutReq) (*GetRuntimeLayoutRes, error)
func (UnimplementedLayoutServer) InitLayout ¶
func (UnimplementedLayoutServer) InitLayout(context.Context, *InitLayoutReq) (*InitLayoutRes, error)
type UnsafeLayoutServer ¶
type UnsafeLayoutServer interface {
// contains filtered or unexported methods
}
UnsafeLayoutServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to LayoutServer will result in compilation errors.
type UpdateReq ¶
type UpdateReq struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" v:"required"` // v:required LocationId int32 `protobuf:"varint,2,opt,name=LocationId,proto3" json:"LocationId,omitempty" v:"required"` // v:required PolicyCId int32 `protobuf:"varint,3,opt,name=PolicyCId,proto3" json:"PolicyCId,omitempty" v:"required"` // v:required PolicyInfo string `protobuf:"bytes,4,opt,name=PolicyInfo,proto3" json:"PolicyInfo,omitempty" v:"json"` // v:json LayoutName string `protobuf:"bytes,5,opt,name=LayoutName,proto3" json:"LayoutName,omitempty" v:"required"` // v:required Map string `protobuf:"bytes,6,opt,name=Map,proto3" json:"Map,omitempty" v:"json"` // v:json Status int32 `protobuf:"varint,7,opt,name=Status,proto3" json:"Status,omitempty" v:"required"` // v:required Sort int32 `protobuf:"varint,8,opt,name=Sort,proto3" json:"Sort,omitempty" v:"required"` // v:required // contains filtered or unexported fields }
func (*UpdateReq) Descriptor
deprecated
func (*UpdateReq) GetLayoutName ¶
func (*UpdateReq) GetLocationId ¶
func (*UpdateReq) GetPolicyCId ¶
func (*UpdateReq) GetPolicyInfo ¶
func (*UpdateReq) ProtoMessage ¶
func (*UpdateReq) ProtoMessage()
func (*UpdateReq) ProtoReflect ¶
func (x *UpdateReq) ProtoReflect() protoreflect.Message
type UpdateRes ¶
type UpdateRes struct { Empty *emptypb.Empty `protobuf:"bytes,1,opt,name=empty,proto3" json:"empty,omitempty"` // contains filtered or unexported fields }
func (*UpdateRes) Descriptor
deprecated
func (*UpdateRes) ProtoMessage ¶
func (*UpdateRes) ProtoMessage()
func (*UpdateRes) ProtoReflect ¶
func (x *UpdateRes) ProtoReflect() protoreflect.Message