feat: update
This commit is contained in:
@@ -40,6 +40,11 @@ func (e *AppError) WithMsg(msg string) *AppError {
|
||||
return e
|
||||
}
|
||||
|
||||
func (e *AppError) WithMsgf(format string, args ...any) *AppError {
|
||||
msg := fmt.Sprintf(format, args...)
|
||||
return e.WithMsg(msg)
|
||||
}
|
||||
|
||||
// WithSQL 记录SQL信息
|
||||
func (e *AppError) WithSQL(sql string) *AppError {
|
||||
e.sql = sql
|
||||
|
||||
Reference in New Issue
Block a user