| | |
| | | |
| | | import com.xinquan.common.core.constant.ServiceNameConstants; |
| | | import com.xinquan.common.core.domain.R; |
| | | import com.xinquan.system.api.domain.SysRole; |
| | | import com.xinquan.system.api.domain.SysUser; |
| | | import com.xinquan.common.core.web.domain.AjaxResult; |
| | | import com.xinquan.system.api.domain.*; |
| | | import com.xinquan.system.api.factory.SysUserFallbackFactory; |
| | | import java.util.List; |
| | | |
| | | import io.swagger.annotations.ApiOperation; |
| | | 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; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | @FeignClient(contextId = "sysUserClient", value = ServiceNameConstants.SYSTEM_SERVICE, fallbackFactory = SysUserFallbackFactory.class) |
| | | public interface SysUserClient { |
| | | @GetMapping("/system/role/roleInfoFromUserId/{userId}") |
| | | public R<List<SysMenu>> roleInfoFromUserId(@PathVariable("userId") Long userId); |
| | | |
| | | @PostMapping("/system/tree-level-setting/getTreeGroup") |
| | | @ApiOperation(value = "获取树苗音频等级列表",tags = "管理后台-树苗音频设置") |
| | | public R<List<TreeLevelSetting>> getTreeGroup(); |
| | | @PostMapping("/user/getSysUser") |
| | | R<SysUser> getSysUser(Long userId); |
| | | |
| | | /** |
| | | * 获取分佣比例设置 |
| | | * @return |
| | | */ |
| | | @PostMapping("/system/commission/rule/getCommission") |
| | | public R<CommissionRule> getCommission(); |
| | | |
| | | @PostMapping("/user/updateSysUser") |
| | | R<Boolean> updateSysUser(@RequestBody SysUser sysUser); |
| | | |