package org.springblade.system.expand.feign;

import io.swagger.annotations.ApiParam;
import org.springblade.system.expand.entity.WxConf;
import org.springblade.system.expand.vo.WxConfVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import javax.validation.Valid;
import java.util.List;

/**
 * 微信配置参数 Feign
 *
 * @author lianghanqiang
 * @since 2021-04-23
 */
@FeignClient(value = "blade-system-expand",path = "/feign/wxconf")
public interface IWxConfClient  {

	/**
	 * 详情
	 */
	@GetMapping("/detail")
	WxConf detail(@SpringQueryMap WxConf wxConf);

	/**
	 * 查询 微信配置参数
	 */
	@GetMapping("/list")
    List<WxConf> list(@SpringQueryMap WxConf wxConf);


	/**
	 * 新增 微信配置参数
	 */
	@PostMapping("/save")
	boolean save(@Valid @RequestBody WxConf wxConf);

	/**
	 * 修改 微信配置参数
	 */
	@PostMapping("/update")
    boolean update(@Valid @RequestBody WxConf wxConf);

	/**
	 * 新增或修改 微信配置参数
	 */
	@PostMapping("/submit")
    boolean submit(@Valid @RequestBody WxConf wxConf);


	/**
	 * 删除 微信配置参数
	 */
	@PostMapping("/remove")
    boolean remove(@ApiParam(value = "主键集合", required = true) @RequestParam String ids);

}
