package common // Error 框架层处理错误 type Error struct { error } func (that *Error) GetError() error { return that.error } func (that *Error) SetError(err error) { that.error = err return }