package com.inspect.patrol.service;

import com.alibaba.fastjson.JSONObject;
import com.inspect.base.core.web.domain.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("inspect-metadata")
public interface BasedataPatrolPointService {
    @PostMapping({"/patrolpointmnt/patrolpoint"})
    AjaxResult add(@RequestBody JSONObject jsonObject);

    @PostMapping({"/patrolpointmnt/patrolpoint/edit"})
    AjaxResult edit(@RequestBody JSONObject jsonObject);

    @PostMapping({"/patrolpointmnt/patrolpoint/remove/{patrolpointIds}"})
    AjaxResult remove(@PathVariable("patrolpointIds") Long[] pointIds);

    @GetMapping({"/patrolpointmnt/patrolpoint/upPatrolpointModel"})
    void UpPatrolPointModel(@RequestParam("basedataPatrolpoint") JSONObject jsonObject);
}
