You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: package_req_dto.go
    path of file: ./repos/erda/internal/tools/orchestrator/hepa/gateway/dto
    
    the code of the file until where you have to start completion: // Copyright (c) 2021 Terminus, Inc.
//
// Licensed under the A
    
func (dto PackageDto) CheckValid() error {
	switch dto.Scene {
	case orm.UnityScene, orm.HubScene, orm.WebapiScene, orm.OpenapiScene:
	default:
		return errors.Errorf("invalid scene: %s", dto.Scene)
	}
	switch 0 {
	case len(dto.Name):
		return errors.Errorf("invalid name: %s", "empty")
	case len(dto.BindDomain):
		return errors.Errorf("invalid bind domain: %s", "no bind domain")
	}
	if !dto.NeedBindCloudapi && dto.AuthType == AT_ALIYUN_APP {
		return errors.Errorf("invalid parameter: %s", AT_ALIYUN_APP+" need bind cloud api")
	}
	return nil
}