package com.yuchen.saas.visitor.api.feign;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yuchen.saas.visitor.api.entity.NewPmgBatParkVisitor;
import org.nest.springwrap.core.launch.app.AppNameConstant;
import org.nest.springwrap.core.tool.api.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Set;

/**
 * @ClassName VisitorClient
 * @Description 访客 feign 接口
 * @Author 张逸飞
 * @Date 2022/6/16 15:50
 */
@FeignClient(
		value = AppNameConstant.SAAS_VISITOR,
		fallback = HikIscPeoplePrivilegeFeignClientFallback.class
)
public interface HikIscPeoplePrivilegeFeignClient {


	/**
	 * 分组权限,人员关联
	 * @return
	 */
	@GetMapping("/hikIsc/groupList")
	R <Set<Long>>groupList(@RequestParam("privilegeId") Long privilegeId, @RequestParam("peopleIds") List<Long> peopleIds);


	/**
	 * privilegeId分也查找关联关系
	 * @return
	 */
	@GetMapping("/hikIsc/groupPage")
	R groupPage(@RequestParam("privilegeId") Long privilegeId, @RequestParam("current")Integer current, @RequestParam("size")Integer size);

}
