CatchTheLettersBackend/src/main/java/com/example/catchTheLetters/controller/LevelController.java

67 lines
1.8 KiB
Java
Raw Normal View History

package com.example.catchTheLetters.controller;
import com.example.catchTheLetters.entity.Level;
2024-04-10 07:03:57 +00:00
import com.example.catchTheLetters.model.vo.RankVo;
import com.example.catchTheLetters.entity.ScoreInfo;
import com.example.catchTheLetters.utils.R;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;
/**
* 关卡控制器
2024-04-10 07:15:36 +00:00
*
* @author spyn
*/
@RestController
@Slf4j
@Api(tags = "关卡API")
@RequestMapping("/level")
public class LevelController {
@ApiOperation(value = "关卡列表只返回ID、名称和类型")
@GetMapping("/list")
public R<Level> list() {
return null;
}
@ApiOperation(value = "关卡详情")
@GetMapping("/detail")
@ApiParam(name = "id", value = "关卡ID")
public R<Level> detail(Long id) {
return null;
}
@ApiOperation(value = "关卡创建web前端管理员提交")
@PostMapping("/create")
public R create(@RequestBody Level level) {
return null;
}
@ApiOperation(value = "关卡修改web前端管理员提交")
@PostMapping("/update")
public R update(@RequestBody Level level) {
return null;
}
@ApiOperation(value = "关卡删除web前端管理员提交")
@PostMapping("/delete")
public R delete(Long id) {
return null;
}
@ApiOperation(value = "获取某个关卡排行榜数据")
@GetMapping("/rank")
@ApiParam(name = "id", value = "关卡ID")
public R<RankVo> rank(Long id) {
return null;
}
@ApiOperation(value = "关卡结算游戏结束时提交一定要鉴别token")
@PostMapping("/settle")
public R settle(@RequestBody ScoreInfo scoreInfo) {
return null;
}
}