package org.springblade.system.expand.feign;

import io.swagger.annotations.ApiParam;
import org.springblade.system.expand.entity.Operation;
import org.springblade.system.expand.vo.OperationVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
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-03-29
 */
@FeignClient(value = "blade-system-expand",path = "/feign/operation")
public interface IOperationClient  {

	/**
	 * 详情
	 */
	@GetMapping("/detail")
    OperationVO detail(@SpringQueryMap Operation operation);

	/**
	 * 查询 操作密码
	 */
	@GetMapping("/list")
    List<OperationVO> list(@SpringQueryMap Operation operation);



	/**
	 * 新增 操作密码
	 */
	@PostMapping("/save")
	boolean save(@Valid @RequestBody Operation operation);

	/**
	 * 修改 操作密码
	 */
	@PostMapping("/update")
    boolean update(@Valid @RequestBody Operation operation);

	/**
	 * 新增或修改 操作密码
	 */
	@PostMapping("/submit")
    boolean submit(@Valid @RequestBody Operation operation);


	/**
	 * 删除 操作密码
	 */
	@PostMapping("/remove")
    boolean remove(@ApiParam(value = "主键集合", required = true) @RequestParam String ids);


}
