package com.red.circle.other.inner.endpoint.sys.api;

import com.red.circle.framework.dto.ResultResponse;
import com.red.circle.other.inner.model.cmd.sys.CustomerServiceConfigCmd;
import com.red.circle.other.inner.model.dto.sys.SysCustomerServiceConfigDTO;
import java.util.List;
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;

/**
 * 客服.
 *
 * @author pengliang on 2023/5/24
 */
public interface SysCustomerServiceClientApi {

  String API_PREFIX = "/customer-service/client";

  @PostMapping("/add")
  ResultResponse<Void> add(@RequestBody CustomerServiceConfigCmd param);

  @PostMapping("/update")
  ResultResponse<Void> update(@RequestBody CustomerServiceConfigCmd param);

  @GetMapping("/delete")
  ResultResponse<Void> delete(@RequestParam("id") Long id);

  @GetMapping("/list")
  ResultResponse<List<SysCustomerServiceConfigDTO>> list(
      @RequestParam("sysOrigin") String sysOrigin,
      @RequestParam("region") String region);
}
