重命名包为 core
This commit is contained in:
19
web/core/errors.go
Normal file
19
web/core/errors.go
Normal file
@@ -0,0 +1,19 @@
|
||||
package core
|
||||
|
||||
type AuthUnAuthorizedErr string
|
||||
|
||||
func (e AuthUnAuthorizedErr) Error() string {
|
||||
return string(e)
|
||||
}
|
||||
|
||||
type AuthForbiddenErr string
|
||||
|
||||
func (e AuthForbiddenErr) Error() string {
|
||||
return string(e)
|
||||
}
|
||||
|
||||
type DataErr string
|
||||
|
||||
func (e DataErr) Error() string {
|
||||
return string(e)
|
||||
}
|
||||
Reference in New Issue
Block a user