package com.bjtdba.api.apiservice;

import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

@EnableFeignClients(clients = SystemService.class)
@FeignClient(name = "system-service",path = "/system_service")
public interface SystemService {
    /**
     * 轮播图
     * @param key
     * @return
     */
    @GetMapping("/nologin/banner/{key}")
    public Object banner(@PathVariable String key);

    /**
     * 4级地址接口
     * @return
     */
    @GetMapping("/city/new_lst")
    public Object new_lst();


    @GetMapping("/city/new_city_lst")
    public Object new_city_lst(@RequestParam Map<String,String> pmap);

    /**
     * 热门搜索
     * @param key
     * @return
     */
    @GetMapping("/nologin/common/{key}")
    public Object common(@PathVariable String key);

    /**
     * 查询反馈类型
     * @param Hmap
     * @return
     */
    @GetMapping("/feedbackCategory/feedback_type_new")
    public Object feedback_type_new(@RequestHeader Map<String,String> Hmap);


    /**
     * 添加反馈意见
     * @param Hmap
     * @param map
     * @return
     */
    @PostMapping("/feedbackCategory/feedback")
    public Object feedback(@RequestHeader Map<String,String> Hmap,@RequestBody Map<String,String> map);

    @GetMapping("/sysconfig/xiaoShare")
    public Object  queryByKey();

}
