增加是否制定错误码判断

This commit is contained in:
2023-09-28 00:40:57 +08:00
parent b4732e360b
commit 8c8c730a3b
2 changed files with 11 additions and 0 deletions

View File

@ -29,4 +29,6 @@ type IException interface {
GetHttpCode() int
// ToError 转换为内置error类型
ToError() error
// IsCode 是否为指定code
IsCode(code interface{}) bool
}