|
@@ -3,15 +3,9 @@ package com.zanxiang.game.module.manage.controller;
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
import com.zanxiang.erp.security.annotation.PreAuthorize;
|
|
import com.zanxiang.erp.security.annotation.PreAuthorize;
|
|
import com.zanxiang.game.module.base.domain.ResultVO;
|
|
import com.zanxiang.game.module.base.domain.ResultVO;
|
|
-import com.zanxiang.game.module.manage.domain.params.UserListParam;
|
|
|
|
-import com.zanxiang.game.module.manage.domain.params.UserLoginLogParam;
|
|
|
|
-import com.zanxiang.game.module.manage.domain.params.UserOrderListParam;
|
|
|
|
-import com.zanxiang.game.module.manage.domain.params.UserUpdateParam;
|
|
|
|
|
|
+import com.zanxiang.game.module.manage.domain.params.*;
|
|
import com.zanxiang.game.module.manage.domain.vo.*;
|
|
import com.zanxiang.game.module.manage.domain.vo.*;
|
|
-import com.zanxiang.game.module.manage.service.IOrderService;
|
|
|
|
-import com.zanxiang.game.module.manage.service.IUserAddressService;
|
|
|
|
-import com.zanxiang.game.module.manage.service.IUserLoginLogService;
|
|
|
|
-import com.zanxiang.game.module.manage.service.IUserService;
|
|
|
|
|
|
+import com.zanxiang.game.module.manage.service.*;
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.ApiOperation;
|
|
import io.swagger.annotations.ApiOperation;
|
|
import io.swagger.annotations.ApiResponse;
|
|
import io.swagger.annotations.ApiResponse;
|
|
@@ -46,6 +40,15 @@ public class UserController {
|
|
@Autowired
|
|
@Autowired
|
|
private IOrderService orderService;
|
|
private IOrderService orderService;
|
|
|
|
|
|
|
|
+ @Autowired
|
|
|
|
+ private IGameUserService gameUserService;
|
|
|
|
+
|
|
|
|
+ @Autowired
|
|
|
|
+ private IGameUserRoleService gameUserRoleService;
|
|
|
|
+
|
|
|
|
+ @Autowired
|
|
|
|
+ private IUserCardService userCardService;
|
|
|
|
+
|
|
@ApiOperation(value = "玩家列表")
|
|
@ApiOperation(value = "玩家列表")
|
|
@PostMapping(value = "/list")
|
|
@PostMapping(value = "/list")
|
|
@PreAuthorize(permissionKey = "sdk:user:list")
|
|
@PreAuthorize(permissionKey = "sdk:user:list")
|
|
@@ -93,4 +96,36 @@ public class UserController {
|
|
public ResultVO<List<UserAddressVO>> list(@RequestParam Long userId) {
|
|
public ResultVO<List<UserAddressVO>> list(@RequestParam Long userId) {
|
|
return ResultVO.ok(userAddressService.list(userId));
|
|
return ResultVO.ok(userAddressService.list(userId));
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ @ApiOperation(value = "玩家游戏列表")
|
|
|
|
+ @PostMapping(value = "/game/list")
|
|
|
|
+ @PreAuthorize(permissionKey = "sdk:user:gameList")
|
|
|
|
+ @ApiResponses(value = {@ApiResponse(code = 200, message = "成功", response = GameUserListVO.class)})
|
|
|
|
+ public ResultVO<IPage<GameUserListVO>> gameUserList(@Validated @RequestBody GameUserListParam param) {
|
|
|
|
+ return ResultVO.ok(gameUserService.gameUserList(param));
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @ApiOperation(value = "玩家游戏角色")
|
|
|
|
+ @GetMapping(value = "/game/role/list")
|
|
|
|
+ @PreAuthorize(permissionKey = "sdk:user:gameRoleList")
|
|
|
|
+ @ApiResponses(value = {@ApiResponse(code = 200, message = "成功", response = GameUserRoleVO.class, responseContainer = "list")})
|
|
|
|
+ public ResultVO<List<GameUserRoleVO>> roleList(@RequestParam Long userId) {
|
|
|
|
+ return ResultVO.ok(gameUserRoleService.roleList(userId));
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @ApiOperation(value = "玩家游戏角色列表")
|
|
|
|
+ @PostMapping(value = "/role/list")
|
|
|
|
+ @PreAuthorize(permissionKey = "sdk:user:roleList")
|
|
|
|
+ @ApiResponses(value = {@ApiResponse(code = 200, message = "成功", response = GameUserRoleListVO.class)})
|
|
|
|
+ public ResultVO<IPage<GameUserRoleListVO>> roleList(@Validated @RequestBody GameUserRoleListParam param) {
|
|
|
|
+ return ResultVO.ok(gameUserRoleService.list(param));
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @ApiOperation(value = "玩家实名认证列表")
|
|
|
|
+ @PostMapping(value = "/card/list")
|
|
|
|
+ @PreAuthorize(permissionKey = "sdk:userCard:list")
|
|
|
|
+ @ApiResponses(value = {@ApiResponse(code = 200, message = "成功", response = UserCardVO.class)})
|
|
|
|
+ public ResultVO<IPage<UserCardVO>> authList(@Validated @RequestBody UserNameAuthListParam param) {
|
|
|
|
+ return ResultVO.ok(userCardService.getUserCardList(param));
|
|
|
|
+ }
|
|
}
|
|
}
|