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