|
|
@ -6,10 +6,9 @@ import awesome.group.game.service.MatrixService; |
|
|
|
import awesome.group.game.service.bo.MatrixAdvRecordEditBo; |
|
|
|
import awesome.group.game.service.common.response.R; |
|
|
|
import jakarta.annotation.Resource; |
|
|
|
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.*; |
|
|
|
|
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
@RestController |
|
|
|
@RequestMapping("/api/game/matrix") |
|
|
@ -23,4 +22,10 @@ public class MatrixController { |
|
|
|
matrixService.saveRecord(bo, RequestContext.getIpAddr(RequestContext.getRequest())); |
|
|
|
return new R<>(R.CODE_SUCCESS, "ok", null); |
|
|
|
} |
|
|
|
|
|
|
|
@GetMapping("/whiteList") |
|
|
|
@RestApi |
|
|
|
public R<List<String>> whiteList(){ |
|
|
|
return new R<>(R.CODE_SUCCESS, "ok", matrixService.whiteList()); |
|
|
|
} |
|
|
|
} |
|
|
|