feat(report):完成获取公示用数据接口的功能。

This commit is contained in:
徐涛
2022-08-24 11:26:17 +08:00
parent ad19169ac5
commit 4919c7152f
4 changed files with 289 additions and 0 deletions

View File

@@ -1,5 +1,7 @@
package exceptions
import "fmt"
type NotFoundError struct {
Message string
}
@@ -8,6 +10,10 @@ func NewNotFoundError(msg string) *NotFoundError {
return &NotFoundError{Message: msg}
}
func NewNotFoundErrorFromError(msg string, err error) *NotFoundError {
return &NotFoundError{Message: fmt.Sprintf("%s%v", msg, err)}
}
func (e NotFoundError) Error() string {
return e.Message
}