Discover Packages
github.com/leonardochristofer/go-grpc-article-service
article-service
domain
article
payload
package
Version:
v0.0.0-...-9df3d9d
Opens a new window with list of versions in this module.
Published: Aug 11, 2022
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type GetArticleRequest struct {
Id string `json:"id"`
}
type GetArticleResponse struct {
Id string `json:"id"`
Author *string `json:"author"`
Title *string `json:"title"`
Body *string `json:"body"`
CreatedAt *time .Time `json:"created_at"`
}
type GetListArticleRequest struct {
Sort []Sort `json:"sort"`
Offset int32 `json:"offset"`
Limit int32 `json:"limit" validate:"required,limit"`
Search string `json:"search"`
CreatedAt string `json:"created_at"`
Author string `json:"author"`
}
type Sort struct {
Field string `json:"field"`
SortBy string `json:"sort_by"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.