27 lines
1012 B
Java
27 lines
1012 B
Java
package cryptosky.me.pricing.graphql.mutations;
|
|
|
|
import com.coxautodev.graphql.tools.GraphQLMutationResolver;
|
|
import cryptosky.me.pricing.models.entities.BtcPriceModel;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.stereotype.Component;
|
|
|
|
import cryptosky.me.pricing.service.PriceService;
|
|
|
|
@Component
|
|
public class BtcPriceMutation implements GraphQLMutationResolver {
|
|
|
|
@Autowired
|
|
private PriceService priceService;
|
|
|
|
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 c_price,
|
|
final float volume ) {
|
|
return this.priceService.createBtc(createdDate, type, av_price, h_price, l_price, o_price, c_price, volume);
|
|
}
|
|
|
|
}
|