package request import "errors" type UserIapRechargePreCheckRequest struct { BaseRequest RechargeAmount string } // IAP充值 参数校验 func (request *UserIapRechargePreCheckRequest) CheckParameter() (err error) { if len(request.AccessToken) == 0 { err = errors.New("AccessToken不能为空") return } if len(request.RechargeAmount) == 0 { err = errors.New("RechargeAmount不能为空") return } return }