package com.crm.manager.service.ib;

import com.crm.rely.backend.core.dto.base.BaseDropDownDto;
import com.crm.rely.backend.core.dto.base.BaseResultDto;
import com.crm.rely.backend.core.dto.base.BaseResultWithPagerDto;
import com.crm.rely.backend.core.dto.ib.point.SysPointDto;
import com.crm.rely.backend.core.dto.ib.point.SysPointPointsDto;
import com.crm.rely.backend.core.entity.base.SingleLongEntity;
import com.crm.rely.backend.core.entity.ib.point.SysPointAddEntity;
import com.crm.rely.backend.core.entity.ib.point.SysPointListEntity;
import com.crm.rely.backend.core.entity.ib.point.SysPointUpdateEntity;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.List;

/**
 * Created by max on 2020/8/25.
 */
@FeignClient(value = "IB-SERVICE", path = "/manage/service/sys/point")
public interface SysPointFeignService {

    @PostMapping("/list")
    BaseResultWithPagerDto<List<SysPointDto>> getList(SysPointListEntity entity) throws Exception;

    @PostMapping("/single")
    BaseResultDto<SysPointDto> getOne(SingleLongEntity entity) throws Exception;

    @PostMapping("/update")
    BaseResultDto<Object> update(SysPointUpdateEntity entity) throws Exception;

    @PostMapping("/points")
    BaseResultDto<SysPointPointsDto> points() throws Exception;

    @PostMapping("/area/ddList")
    BaseResultDto<List<BaseDropDownDto>> areaDdList() throws Exception;

    @PostMapping("/add")
    BaseResultDto<Object> add(SysPointAddEntity entity) throws Exception;

}
