Files
servicebase/pkg/dto/request/UserIapRechargePreCheckRequest.go
2025-11-19 14:24:13 +08:00

25 lines
429 B
Go

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
}