package com.yaoyicloud.ai.pipeline.fc;

import java.util.List;

import com.aliyun.fc.runtime.Context;
import com.aliyun.fc.runtime.PojoRequestHandler;

public class ReadOssTestDataHandler implements PojoRequestHandler<ReadOssTestDataRequest, OssTestDataSet> {

	@Override
	public OssTestDataSet handleRequest(ReadOssTestDataRequest request, Context context) {
		System.out.println("Listing the files with prefix " + request.getOssPrefix());
		return new OssTestDataSet(List.of(request.getOssPrefix() + "1.jpg", request.getOssPrefix() + "2.jpg"));
	}

}
