29 lines
1.1 KiB
Java

package cryptosky.me.graphql.pricing.mutations;
import com.coxautodev.graphql.tools.GraphQLMutationResolver;
import cryptosky.me.graphql.pricing.models.entities.BtcPriceModel;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import cryptosky.me.graphql.pricing.service.BtcPriceService;
@Component
public class BtcPriceMutation implements GraphQLMutationResolver {
@Autowired
private BtcPriceService btcPriceService;
public BtcPriceModel createBtc(final String createdDate, final String type,
final float av_price,
final float h_price,
final float l_price,
final float o_price,
final float a_price,
final float b_price,
final float c_price,
final float volume ) {
return this.btcPriceService.createBtc(createdDate, type, av_price, h_price, l_price, a_price, b_price, o_price, c_price, volume);
}
}