package com.yeejoin.amos.boot.module.jxiop.biz.fegin;

import com.yeejoin.amos.boot.biz.common.feign.MultipartSupportConfig;
import com.yeejoin.amos.boot.module.jxiop.api.dto.UserDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;
import org.typroject.tyboot.core.restful.utils.ResponseModel;

import java.util.List;

/**
 * @description:
 * @author: tw
 * @createDate: 2023/4/22
 */
@FeignClient(name ="${privilege.fegin.name:AMOS-API-PRIVILEGE}", path = "", configuration = {MultipartSupportConfig.class})
public interface PrivilegeFeignClient {



    @RequestMapping(value = "/privilege/v1/agencyuser", method = RequestMethod.POST)
    ResponseModel<Object> create(
            @RequestHeader("appKey") String appKey,
            @RequestHeader("product") String product,
            @RequestHeader("token") String token,
            @RequestBody UserDto var1);



    @RequestMapping(value = "/privilege/v1/agencyuser/{userId}", method = RequestMethod.PUT)
    ResponseModel<Object> update(
            @PathVariable("userId") String var2,
            @RequestHeader("appKey") String appKey,
            @RequestHeader("product") String product,
            @RequestHeader("token") String token,
            @RequestBody UserDto var1);



    @RequestMapping(value = "/privilege/v1/groupUser", method = RequestMethod.POST)
    ResponseModel<Object> groupUser(
            @RequestHeader("appKey") String appKey,
            @RequestHeader("product") String product,
            @RequestHeader("token") String token,
            @RequestParam("groupSeq") Long groupSeq, @RequestBody List<String> var2);

}
