用户端可以添加WAF 黑白名单

This commit is contained in:
刘祥超
2021-01-03 20:18:21 +08:00
parent 68a039529d
commit c060e8900b
8 changed files with 367 additions and 28 deletions

View File

@@ -0,0 +1,21 @@
package errors
type DetailedError struct {
msg string
code string
}
func (this *DetailedError) Error() string {
return this.msg
}
func (this *DetailedError) Code() string {
return this.code
}
func NewDetailedError(code string, error string) *DetailedError {
return &DetailedError{
msg: error,
code: code,
}
}