package cn.ey.biz.module.system.api.app;

import cn.ey.biz.common.pojo.R;
import cn.ey.biz.module.system.api.app.dto.AppDTO;
import cn.ey.biz.module.system.enums.ApiConstants;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient(name = ApiConstants.NAME)
@Api(tags = "RPC 服务 - 系统应用")
public interface AppApi {

    String PREFIX = ApiConstants.PREFIX + "/app";

    @PostMapping(PREFIX + "/import")
    @ApiOperation("批量导入系统应用")
    R<?> createAppByList(@RequestBody List<AppDTO> apps);
}
