package org.springblade.party.feign;

import io.swagger.annotations.ApiParam;
import org.springblade.core.tool.api.R;
import org.springblade.party.entity.ActivityEnroll;
import org.springblade.party.vo.ActivityEnrollVO;
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-04-19
 */
@FeignClient(value = "cyzh-smart-party",path = "/feign/activityenroll")
public interface IActivityEnrollClient  {

	/**
	 * 详情
	 */
	@GetMapping("/detail")
    ActivityEnrollVO detail(@SpringQueryMap ActivityEnroll activityEnroll);

	/**
	 * 查询
	 */
	@GetMapping("/list")
    List<ActivityEnrollVO> list(@SpringQueryMap ActivityEnroll activityEnroll);



	/**
	 * 新增
	 */
	@PostMapping("/save")
	R save(@Valid @RequestBody ActivityEnroll activityEnroll);

	/**
	 * 修改
	 */
	@PostMapping("/update")
    boolean update(@Valid @RequestBody ActivityEnroll activityEnroll);

	/**
	 * 新增或修改
	 */
	@PostMapping("/submit")
    boolean submit(@Valid @RequestBody ActivityEnroll activityEnroll);


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

	/**
	 * 取消报名
	 */
	@PostMapping("/cancel")
	R cancel(@Valid @RequestBody ActivityEnroll activityEnroll);

}
