package com.rongwei.bscommon.sys.feign;

import com.rongwei.bscommon.sys.config.FeignConfiguration;
import com.rongwei.rwcommon.base.R;
import com.rongwei.rwcommonentity.commonservers.vo.SysSerialVo;
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;

/**
 * @author shangmi
 * @title RwAdminFeign
 * @date 2023/12/6 11:38
 * @description rw-admin api接口
 */
@FeignClient(value = "rw-admin",configuration = FeignConfiguration.class,fallback = RwAdminFeginImpl.class,contextId = "equ-admin")
public interface RwAdminFeign {


    /**
     * 获得编号
     *
     * @param sysSerialVo
     * @return {@link R}
     * @date 2024/1/3 13:22
     * @author shangmi
     *
     */

    @PostMapping("/sys/generalCRUD/getSerialNumberCode")
    R getSerialNumberCode(@RequestBody SysSerialVo sysSerialVo);


    /**
     * 通过ID查询module
     *
     * @param id
     * @return {@link R}
     * @date 2024/1/5 13:55
     * @author shangmi
     *
     */
    @GetMapping("/sys/sysmodule/info/{id}")
    R infoSysModule(@PathVariable("id") String id);


    /**
     * 通过pagePart id查询菜单
     *
     * @param id
     * @return {@link R}
     * @date 2024/1/8 11:53
     * @author shangmi
     *
     */

    @GetMapping("/sys/page/part/info/{id}")
    R infoPagePart(@PathVariable("id") String id);
}
