refactor(api): remove unused ErrorCode type

This commit is contained in:
yusing
2025-09-14 20:50:07 +08:00
parent ea7bd0d19a
commit 025ebab1ce

View File

@@ -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]
}