|
@@ -1,5 +1,8 @@
|
|
|
package com.zanxiang.game.module.manage.controller.api;
|
|
|
|
|
|
+import com.zanxiang.game.back.base.ServerInfo;
|
|
|
+import com.zanxiang.game.back.base.pojo.dto.TtAppUserBackQueryRpcDTO;
|
|
|
+import com.zanxiang.game.back.base.rpc.ITtAppBackRpc;
|
|
|
import com.zanxiang.game.module.manage.pojo.params.ChatSubmitParam;
|
|
|
import com.zanxiang.game.module.manage.pojo.params.OpenGameServerParam;
|
|
|
import com.zanxiang.game.module.manage.service.api.CpServerApiService;
|
|
@@ -9,12 +12,10 @@ import io.swagger.annotations.ApiOperation;
|
|
|
import io.swagger.annotations.ApiResponse;
|
|
|
import io.swagger.annotations.ApiResponses;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
+import org.apache.dubbo.config.annotation.DubboReference;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
-import org.springframework.web.bind.annotation.PostMapping;
|
|
|
-import org.springframework.web.bind.annotation.RequestBody;
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
/**
|
|
|
* @author : lingfeng
|
|
@@ -30,6 +31,19 @@ public class CpServerApi {
|
|
|
@Autowired
|
|
|
private CpServerApiService cpServerApiService;
|
|
|
|
|
|
+ @DubboReference(providedBy = ServerInfo.SERVER_DUBBO_NAME)
|
|
|
+ private ITtAppBackRpc ttAppBackRpc;
|
|
|
+
|
|
|
+
|
|
|
+ @ApiOperation(value = "test")
|
|
|
+ @GetMapping(value = "/test")
|
|
|
+ @ApiResponses(value = {@ApiResponse(code = 200, message = "成功", response = Boolean.class)})
|
|
|
+ public ResultVO<Boolean> test() {
|
|
|
+ ttAppBackRpc.userBackQuery(new TtAppUserBackQueryRpcDTO());
|
|
|
+ return ResultVO.ok();
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
@ApiOperation(value = "cp提交游戏聊天记录")
|
|
|
@PostMapping(value = "/chat/msg/submit")
|
|
|
@ApiResponses(value = {@ApiResponse(code = 200, message = "成功", response = Boolean.class)})
|