package com.ho.user.feignclient;

import com.ho.common.tools.constant.ContextConstant;
import com.ho.common.tools.exception.DataResult;
import com.ho.flow.entity.SendSmsConfig;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @Description flow模块的远程调用
 * Author yule
 * Date 2023/3/28 10:23
 */
@FeignClient(value = ContextConstant.FLOW_CENTER, fallback = FlowFeignClientFallback.class)
public interface FlowFeignClient {
    /**
     * 部署工作流
     * @param groupId 集团id
     */
    @PostMapping(value = ContextConstant.ROOT_CONTEXT +ContextConstant.FLOW_CONTEXT + "outerApi/deploymentWorkflow")
    DataResult deploymentWorkflow(@RequestBody Integer groupId);

    @PostMapping(value = ContextConstant.ROOT_CONTEXT +ContextConstant.FLOW_CONTEXT + "outerApi/updateSendSmsUserInfo")
    void updateSendSmsUserInfo(@RequestBody SendSmsConfig vo);
}
