package com.xxfc.platform.app.feign;

import com.github.wxiaoqi.security.common.msg.ObjectRestResponse;
import com.xxfc.platform.app.entity.Cofig;
import com.xxfc.platform.app.entity.vo.WithDrawRuleVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * Created by ace on 2017/9/15.
 */
@FeignClient("xx-app")
public interface ConfigFeign {

    /**
     * 客服
     */
    public static final int TYPE_CUS_SER = 400;

    //旅游提前天数
    public  static final int TYPE_TOUR_DAYS=99;


    public  static final int TYPE_COMPANY_APPLY=110;

    public  static final int TYPE_BRANCH_COMPANY=111;

    public  static final int TYPE_COMPANY_CATH=89;

    public  static final int TYPE_VEHICLE_PUBLISH=96;

    @RequestMapping(value = "/cofig/app/unauth/types",method = RequestMethod.GET)
    ObjectRestResponse<List<Cofig>> getAllByType(@RequestParam("types") String types);

     @GetMapping("/cofig/app/unauth/withdraw_rule")
     WithDrawRuleVo getWithDrawRule();
}
