Documentation ¶
Index ¶
- Variables
- type BatchGetCurationRequest
- func (*BatchGetCurationRequest) Descriptor() ([]byte, []int)deprecated
- func (x *BatchGetCurationRequest) GetIds() []int64
- func (*BatchGetCurationRequest) ProtoMessage()
- func (x *BatchGetCurationRequest) ProtoReflect() protoreflect.Message
- func (x *BatchGetCurationRequest) Reset()
- func (x *BatchGetCurationRequest) String() string
- type BatchGetCurationResponse
- func (*BatchGetCurationResponse) Descriptor() ([]byte, []int)deprecated
- func (x *BatchGetCurationResponse) GetCurations() []*GetCurationResponse
- func (*BatchGetCurationResponse) ProtoMessage()
- func (x *BatchGetCurationResponse) ProtoReflect() protoreflect.Message
- func (x *BatchGetCurationResponse) Reset()
- func (x *BatchGetCurationResponse) String() string
- type GetCurationRequest
- type GetCurationResponse
- func (*GetCurationResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetCurationResponse) GetArticles() []*v1.Article
- func (x *GetCurationResponse) GetId() int64
- func (x *GetCurationResponse) GetLabel() string
- func (x *GetCurationResponse) GetUpdateTime() *timestamppb.Timestamp
- func (*GetCurationResponse) ProtoMessage()
- func (x *GetCurationResponse) ProtoReflect() protoreflect.Message
- func (x *GetCurationResponse) Reset()
- func (x *GetCurationResponse) String() string
Constants ¶
This section is empty.
Variables ¶
var File_stroeer_curation_v1_core_curation_service_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type BatchGetCurationRequest ¶
type BatchGetCurationRequest struct { Ids []int64 `protobuf:"varint,1,rep,packed,name=ids,proto3" json:"ids,omitempty"` // contains filtered or unexported fields }
* # `⚙︎ BatchGetCuration`
Fetch multiple curations by their id and return the [`repeated stroeer.core.v1.Article`](Article.html) those curations contain. The response may be empty in case the curation does not contain any items. The ordering of items will the same ordering as the `ids` requested.
## BatchGetCurationRequest
| Field name | Type | Description | |------------------|-------------------------------------|--------------------------------------| | `ids` | `repeated int64` | the _ids_ of the lists to be fetched |
@CodeBlockStart protobuf
func (*BatchGetCurationRequest) Descriptor
deprecated
func (*BatchGetCurationRequest) Descriptor() ([]byte, []int)
Deprecated: Use BatchGetCurationRequest.ProtoReflect.Descriptor instead.
func (*BatchGetCurationRequest) GetIds ¶
func (x *BatchGetCurationRequest) GetIds() []int64
func (*BatchGetCurationRequest) ProtoMessage ¶
func (*BatchGetCurationRequest) ProtoMessage()
func (*BatchGetCurationRequest) ProtoReflect ¶
func (x *BatchGetCurationRequest) ProtoReflect() protoreflect.Message
func (*BatchGetCurationRequest) Reset ¶
func (x *BatchGetCurationRequest) Reset()
func (*BatchGetCurationRequest) String ¶
func (x *BatchGetCurationRequest) String() string
type BatchGetCurationResponse ¶
type BatchGetCurationResponse struct { Curations []*GetCurationResponse `protobuf:"bytes,1,rep,name=curations,proto3" json:"curations,omitempty"` // contains filtered or unexported fields }
* ## BatchGetCurationResponse
| Field name | Type | Description | |------------------|-------------------------------------|--------------------------------------------------------------------------------| | `curations` | [`GetCurationResponse`][cr] | a single response item that corresponds to _ids_ this service was called with. |
[cr]: #getcurationresponse
@CodeBlockStart protobuf
func (*BatchGetCurationResponse) Descriptor
deprecated
func (*BatchGetCurationResponse) Descriptor() ([]byte, []int)
Deprecated: Use BatchGetCurationResponse.ProtoReflect.Descriptor instead.
func (*BatchGetCurationResponse) GetCurations ¶
func (x *BatchGetCurationResponse) GetCurations() []*GetCurationResponse
func (*BatchGetCurationResponse) ProtoMessage ¶
func (*BatchGetCurationResponse) ProtoMessage()
func (*BatchGetCurationResponse) ProtoReflect ¶
func (x *BatchGetCurationResponse) ProtoReflect() protoreflect.Message
func (*BatchGetCurationResponse) Reset ¶
func (x *BatchGetCurationResponse) Reset()
func (*BatchGetCurationResponse) String ¶
func (x *BatchGetCurationResponse) String() string
type GetCurationRequest ¶
type GetCurationRequest struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
* # `⚙︎ GetCuration`
Fetch a curation by its id and return the [`repeated stroeer.core.v1.Article`](Article.html) this curation contains. The response may be empty in case the curation does not contain any items.
a `NOT_FOUND` status code will indicate the curation `id` does not exist.
## GetCurationRequest
| Field name | Type | Description | |------------------|----------|-------------------------------------------------------------| | `id` | `int64` | [required] id of the list to be fetched |
@CodeBlockStart protobuf
func (*GetCurationRequest) Descriptor
deprecated
func (*GetCurationRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetCurationRequest.ProtoReflect.Descriptor instead.
func (*GetCurationRequest) GetId ¶
func (x *GetCurationRequest) GetId() int64
func (*GetCurationRequest) ProtoMessage ¶
func (*GetCurationRequest) ProtoMessage()
func (*GetCurationRequest) ProtoReflect ¶
func (x *GetCurationRequest) ProtoReflect() protoreflect.Message
func (*GetCurationRequest) Reset ¶
func (x *GetCurationRequest) Reset()
func (*GetCurationRequest) String ¶
func (x *GetCurationRequest) String() string
type GetCurationResponse ¶
type GetCurationResponse struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Label string `protobuf:"bytes,2,opt,name=label,proto3" json:"label,omitempty"` UpdateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` Articles []*v1.Article `protobuf:"bytes,4,rep,name=articles,proto3" json:"articles,omitempty"` // contains filtered or unexported fields }
func (*GetCurationResponse) Descriptor
deprecated
func (*GetCurationResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetCurationResponse.ProtoReflect.Descriptor instead.
func (*GetCurationResponse) GetArticles ¶
func (x *GetCurationResponse) GetArticles() []*v1.Article
func (*GetCurationResponse) GetId ¶
func (x *GetCurationResponse) GetId() int64
func (*GetCurationResponse) GetLabel ¶
func (x *GetCurationResponse) GetLabel() string
func (*GetCurationResponse) GetUpdateTime ¶
func (x *GetCurationResponse) GetUpdateTime() *timestamppb.Timestamp
func (*GetCurationResponse) ProtoMessage ¶
func (*GetCurationResponse) ProtoMessage()
func (*GetCurationResponse) ProtoReflect ¶
func (x *GetCurationResponse) ProtoReflect() protoreflect.Message
func (*GetCurationResponse) Reset ¶
func (x *GetCurationResponse) Reset()
func (*GetCurationResponse) String ¶
func (x *GetCurationResponse) String() string