IRole2.java 702 Bytes
package com.dituhui.pea.user;

import com.dituhui.pea.common.Result;
import com.dituhui.pea.pojo.RoleInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * 角色相关接口
 */
@FeignClient(value = "project-user", contextId = "role")
public interface IRole2 {

    /**
     * 添加角色
     *
     * @param roleInfo 角色信息
     * @return
     */
    @RequestMapping(value = "/pea-user/role/add2", method = RequestMethod.POST)
    Result<RoleInfo> addRole(@RequestBody RoleInfo roleInfo);

}