feat: 重构内容列表接口,使用过滤器结构体简化参数传递;更新相关服务和测试用例
This commit is contained in:
@@ -38,7 +38,7 @@ func (e *AppError) copy() *AppError {
|
||||
func (e *AppError) WithCause(err error) *AppError {
|
||||
newErr := e.copy()
|
||||
newErr.originalErr = err
|
||||
|
||||
|
||||
// 记录调用者位置
|
||||
if _, file, line, ok := runtime.Caller(1); ok {
|
||||
newErr.file = fmt.Sprintf("%s:%d", file, line)
|
||||
@@ -90,4 +90,4 @@ func NewError(code ErrorCode, statusCode int, message string) *AppError {
|
||||
Message: message,
|
||||
StatusCode: statusCode,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user