Skip to content

制定統一 error response struct #5

@syhlion

Description

@syhlion
ErrorResponse struct {
Code int `json:"code"`
Message string `json:"message"`
}
func (e ErrorResponse) Error() string{
return fmt.Sprintf("[%d] %s", e.Code,e.Message)
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions