Documentation ¶
Index ¶
- func MakeCheckHealthy(ctx context.Context) endpoint.Endpoint
- func MakeCheckReadiness(ctx context.Context, usecase usecase.UsecaseI) endpoint.Endpoint
- func MakeCreateComment(ctx context.Context, usecase usecase.UsecaseI) endpoint.Endpoint
- func MakeCreateNewPost(ctx context.Context, usecase usecase.UsecaseI) endpoint.Endpoint
- func MakeGetCommentsByID(ctx context.Context, usecase usecase.UsecaseI) endpoint.Endpoint
- func MakeGetDetailUserPost(ctx context.Context, usecase usecase.UsecaseI) endpoint.Endpoint
- func MakeGetListUserPost(ctx context.Context, usecase usecase.UsecaseI) endpoint.Endpoint
- func MakeGetListUserPostByMe(ctx context.Context, usecase usecase.UsecaseI) endpoint.Endpoint
- func MakeLikeOrDislikePost(ctx context.Context, usecase usecase.UsecaseI) endpoint.Endpoint
- func MakeUpdateStatusOrTitle(ctx context.Context, usecase usecase.UsecaseI) endpoint.Endpoint
- func Validate(in interface{}) error
- type CommentsResponse
- type CreateCommentRequest
- type CreateNewPostRequest
- type GetByID
- type GetComment
- type GetListUserPostRequest
- type Image
- type Metadata
- type StatusResponse
- type UserPostDetail
- type UserPostWithMetadata
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeCheckReadiness ¶
func MakeCreateComment ¶
func MakeCreateNewPost ¶
func MakeGetCommentsByID ¶
func MakeGetDetailUserPost ¶
func MakeGetListUserPost ¶
func MakeGetListUserPostByMe ¶
func MakeLikeOrDislikePost ¶
func MakeUpdateStatusOrTitle ¶
Types ¶
type CommentsResponse ¶
type CreateCommentRequest ¶
type CreateNewPostRequest ¶
type GetComment ¶
type GetListUserPostRequest ¶
type GetListUserPostRequest struct { ActivityName *string `httpquery:"text"` Username *string `httpquery:"username"` Category *string `httpquery:"category"` Status *int64 `httpquery:"status"` Page *int64 `httpquery:"page"` Limit *int64 `httpquery:"limit"` SortBy string `httpquery:"sort_by"` OrderBy string `httpquery:"order_by"` Search *string `httpquery:"search"` DistrictID *int64 `httpquery:"kabkota_id"` }
type StatusResponse ¶
type UserPostDetail ¶
type UserPostDetail struct {
*model.UserPostResponse
}
type UserPostWithMetadata ¶
type UserPostWithMetadata struct { Data []*model.UserPostResponse `json:"items"` Metadata *Metadata `json:"_meta"` }
Click to show internal directories.
Click to hide internal directories.