Documentation ¶
Index ¶
- Variables
- func MakeCreateActivityEndpoint(svc service.ActivityService) endpoint.Endpoint
- func MakeCreateProductEndpoint(svc service.ProductService) endpoint.Endpoint
- func MakeGetActivityEndpoint(svc service.ActivityService) endpoint.Endpoint
- func MakeGetProductEndpoint(svc service.ProductService) endpoint.Endpoint
- func MakeHealthCheckEndpoint(svc service.Service) endpoint.Endpoint
- type CreateResponse
- type GetListRequest
- type GetResponse
- type HealthRequest
- type HealthResponse
- type SkAdminEndpoints
- type UserRequest
- type UserResponse
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrInvalidRequestType = errors.New("invalid username, password")
)
Functions ¶
func MakeCreateActivityEndpoint ¶
func MakeCreateActivityEndpoint(svc service.ActivityService) endpoint.Endpoint
func MakeCreateProductEndpoint ¶
func MakeCreateProductEndpoint(svc service.ProductService) endpoint.Endpoint
func MakeGetActivityEndpoint ¶
func MakeGetActivityEndpoint(svc service.ActivityService) endpoint.Endpoint
make endpoint
func MakeGetProductEndpoint ¶
func MakeGetProductEndpoint(svc service.ProductService) endpoint.Endpoint
make endpoint
Types ¶
type CreateResponse ¶
type CreateResponse struct {
Error error `json:"error"`
}
type GetListRequest ¶
type GetListRequest struct{}
type GetResponse ¶
type GetResponse struct { Result []gorose.Data `json:"result"` Error error `json:"error"` }
type HealthResponse ¶
type HealthResponse struct {
Status bool `json:"status"`
}
HealthResponse 健康检查响应结构
type SkAdminEndpoints ¶
type SkAdminEndpoints struct { GetActivityEndpoint endpoint.Endpoint CreateActivityEndpoint endpoint.Endpoint CreateProductEndpoint endpoint.Endpoint GetProductEndpoint endpoint.Endpoint HealthCheckEndpoint endpoint.Endpoint }
CalculateEndpoint define endpoint
func (SkAdminEndpoints) HealthCheck ¶
func (ue SkAdminEndpoints) HealthCheck() bool
type UserRequest ¶
UserRequest define request struct
Click to show internal directories.
Click to hide internal directories.