package com.crm.manager.service.ib;

import com.crm.rely.backend.core.dto.base.BaseResultDto;
import com.crm.rely.backend.core.dto.ib.daily.DailyDataDto;
import com.crm.rely.backend.core.dto.ib.index.IndexAmountDto;
import com.crm.rely.backend.core.entity.ib.daily.DailyDataEntity;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.List;

/**
 * Created by max on 2020/8/18.
 */
@FeignClient(name = "IB-SERVICE", path = "/manage/service/index")
public interface IndexFeignService {

    @PostMapping("/daily/data")
    BaseResultDto<List<DailyDataDto>> dailyData(DailyDataEntity entity) throws Exception;

    @PostMapping("/account")
    BaseResultDto<IndexAmountDto> account() throws Exception;

    @PostMapping("/amount")
    BaseResultDto<DailyDataDto> amount(DailyDataEntity entity) throws Exception;

}
