Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrInvalidRequestType = errors.New("invalid username, password")
)
Functions ¶
func MakeHealthCheckEndpoint ¶
MakeHealthCheckEndpoint 创建健康检查Endpoint
Types ¶
type HealthResponse ¶
type HealthResponse struct {
Status bool `json:"status"`
}
HealthResponse 健康检查响应结构
type UserEndpoints ¶
func (*UserEndpoints) HealthCheck ¶
func (ue *UserEndpoints) HealthCheck() bool
type UserRequest ¶
UserRequest define request struct
type UserResponse ¶
type UserResponse struct { Result bool `json:"result"` UserId int64 `json:"user_id"` Error error `json:"error"` }
UserResponse define response struct
Click to show internal directories.
Click to hide internal directories.