123
This commit is contained in:
@@ -154,4 +154,20 @@ public class UserController extends BaseController {
|
||||
public R<Void> remove(@NotNull(message = "主键不能为空") @PathVariable Long id) {
|
||||
return toAjax(userService.removeUser(id));
|
||||
}
|
||||
|
||||
@SaCheckPermission("cai:user:unBindInvite")
|
||||
@Log(title = "解绑用户邀请人", businessType = BusinessType.OTHER)
|
||||
@GetMapping("/unBindInvite")
|
||||
public R<Void> unBindInvite(Long userId) {
|
||||
userService.unBindInviteUser(userId);
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
@SaCheckPermission("cai:user:bindInvite")
|
||||
@Log(title = "绑定用户邀请人", businessType = BusinessType.OTHER)
|
||||
@GetMapping("/bindInvite")
|
||||
public R<Void> bindInvite(Long userId,String inviteUsercode) {
|
||||
userService.bindInviteUser(userId,inviteUsercode);
|
||||
return R.ok();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -29,6 +29,7 @@ import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.management.ObjectName;
|
||||
import java.util.List;
|
||||
|
||||
|
||||
@@ -59,9 +60,20 @@ public class IndexController {
|
||||
public R<AppHomeConfig> config(){
|
||||
AppHomeConfig config = new AppHomeConfig();
|
||||
config.setOssDomain(systemConfigManager.getSystemConfig(SystemConfigEnum.COS_DOMAIN));
|
||||
config.setOpenWithdraw(systemConfigManager.getSystemConfigOfBool(SystemConfigEnum.OPEN_WITHDRAW));
|
||||
return R.ok(config);
|
||||
}
|
||||
|
||||
|
||||
@GetMapping("/recommendFollows")
|
||||
@Operation(summary = "获取推荐关注列表")
|
||||
@Log(title = "获取推荐关注列表", businessType = BusinessType.OTHER, isSaveDb = false)
|
||||
public R<List<AnchorListVo>> recommendFollows(){
|
||||
Integer recommendFollowsLimit = systemConfigManager.getSystemConfigOfInt(SystemConfigEnum.HOME_RECOMMEND_FOLLOWS_LIMIT);
|
||||
List<AnchorListVo> vos = homeManager.recommendFollows(recommendFollowsLimit);
|
||||
return R.ok(vos);
|
||||
}
|
||||
|
||||
@GetMapping("/banner")
|
||||
@Operation(summary = "获取首页banner图")
|
||||
@Log(title = "获取首页banner图", businessType = BusinessType.OTHER, isSaveDb = false)
|
||||
|
||||
Reference in New Issue
Block a user