master
hanmou 2023-12-08 11:22:02 +08:00
parent ebf29d73c8
commit d3e4e49d18
3 changed files with 6 additions and 3 deletions

View File

@ -1,4 +1,3 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4"> <project version="4">
<component name="CodeInsightWorkspaceSettings"> <component name="CodeInsightWorkspaceSettings">
<option name="optimizeImportsOnTheFly" value="true" /> <option name="optimizeImportsOnTheFly" value="true" />

View File

@ -4,6 +4,7 @@ import com.bwie.auth.service.AuthService;
import com.bwie.common.domain.dto.UserDTO; import com.bwie.common.domain.dto.UserDTO;
import com.bwie.common.domain.vo.UserJwt; import com.bwie.common.domain.vo.UserJwt;
import com.bwie.common.result.Result; import com.bwie.common.result.Result;
import lombok.extern.log4j.Log4j2;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.PostMapping;
@ -17,6 +18,7 @@ import org.springframework.web.bind.annotation.RestController;
* @Date 2023/12/5 9:26 * @Date 2023/12/5 9:26
*/ */
@RestController @RestController
@Log4j2
public class AuthController { public class AuthController {
@Autowired @Autowired
private AuthService authService; private AuthService authService;
@ -34,4 +36,8 @@ public class AuthController {
public Result outLogin(){ public Result outLogin(){
return Result.success(); return Result.success();
} }
@PostMapping("look")
public void look(){
}
} }

View File

@ -125,8 +125,6 @@ public class EsServiceImpl implements EsService {
.source(JSONObject.toJSONString(roomVo), XContentType.JSON) .source(JSONObject.toJSONString(roomVo), XContentType.JSON)
); );
}); });
try { try {
restHighLevelClient.bulk(bulkRequest, RequestOptions.DEFAULT); restHighLevelClient.bulk(bulkRequest, RequestOptions.DEFAULT);
} catch (IOException e) { } catch (IOException e) {