package inner import "errors" type ReturnWithdrawRevenueRequest struct { WithdrawId string StaffUserName string FailReason string } // 参数合法性检验 func (request *ReturnWithdrawRevenueRequest) CheckParameter() (err error) { if len(request.WithdrawId) == 0 { err = errors.New("WithdrawId不能为空") return } return }