mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-23 16:58:31 +02:00
refactor(api): remove unused ErrorCode type
This commit is contained in:
@@ -1,17 +0,0 @@
|
|||||||
package apitypes
|
|
||||||
|
|
||||||
type ErrorCode int
|
|
||||||
|
|
||||||
const (
|
|
||||||
ErrorCodeUnauthorized ErrorCode = iota + 1
|
|
||||||
ErrorCodeNotFound
|
|
||||||
ErrorCodeInternalServerError
|
|
||||||
)
|
|
||||||
|
|
||||||
func (e ErrorCode) String() string {
|
|
||||||
return []string{
|
|
||||||
"Unauthorized",
|
|
||||||
"Not Found",
|
|
||||||
"Internal Server Error",
|
|
||||||
}[e]
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user